/* ============================================================
   kosten.css – Preisaushang-Seite
   ============================================================ */

/* ---- Hero ---- */
.kos-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}
.kos-hero-inner {
  position: relative;
  z-index: 1;
}
.kos-hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  border-top: 2px solid var(--ink-50);
  padding-top: 8px;
  margin-bottom: 1.25rem;
}
.kos-hero-title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 1rem;
}
.kos-hero-title em {
  font-style: normal;
  color: var(--accent);
}
.kos-hero-sub {
  font-size: 1.1rem;
  color: var(--ink-50);
  max-width: 480px;
  margin-bottom: 0;
}
.kos-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(223,174,98,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- Section wrapper ---- */
.kos-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.kos-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  border-top: 2px solid var(--ink-50);
  padding-top: 8px;
  margin-bottom: 2rem;
  display: inline-block;
}

/* ---- Table ---- */
.kos-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-alt);
}
.kos-table-wrap::-webkit-scrollbar {
  height: 6px;
}
.kos-table-wrap::-webkit-scrollbar-track {
  background: var(--dark);
}
.kos-table-wrap::-webkit-scrollbar-thumb {
  background: var(--ink-30);
  border-radius: 3px;
}

.kos-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

/* sticky first column */
.kos-table td:first-child,
.kos-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg-alt);
  min-width: 240px;
  max-width: 280px;
}
.kos-table .kos-group-row td:first-child {
  background: var(--dark);
}

/* Header row */
.kos-table thead tr {
  border-bottom: 1px solid var(--border);
}
.kos-table thead th:first-child {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.kos-th {
  text-align: center;
  padding: 16px 18px 12px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-top: 3px solid var(--accent);
  white-space: nowrap;
}

/* Body rows */
.kos-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.kos-table tbody tr:last-child {
  border-bottom: none;
}
.kos-table tbody tr:not(.kos-group-row):hover {
  background: rgba(255,255,255,0.02);
}
.kos-table tbody tr:not(.kos-group-row):hover td:first-child {
  background: rgba(255,255,255,0.02);
}

/* Group header rows */
.kos-group-row {
  background: var(--dark) !important;
}
.kos-group-row td {
  padding: 10px 20px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
  border-bottom: 1px solid var(--border);
}

/* Row label */
.kos-row-label {
  padding: 12px 20px;
  color: var(--ink-50);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Price cells */
.kos-price {
  text-align: center;
  padding: 12px 18px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Empty cells */
.kos-empty {
  text-align: center;
  padding: 12px 18px;
  color: var(--ink-30);
  font-size: 0.875rem;
}

/* Highlighted rows (fahrstunde) */
.kos-highlight-row td {
  background: rgba(223,174,98,0.03);
}
.kos-highlight-row td:first-child {
  background: rgba(223,174,98,0.03) !important;
}
.kos-highlight-row .kos-row-label {
  color: var(--ink);
  font-weight: 600;
}

/* ---- Bottom grid ---- */
.kos-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
@media (max-width: 700px) {
  .kos-bottom {
    grid-template-columns: 1fr;
  }
}

/* ---- Cards ---- */
.kos-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.kos-card-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
  border-top: 2px solid var(--ink-50);
  padding-top: 8px;
  margin-bottom: 1.25rem;
}

/* Mehrfach rows */
.kos-mehrfach-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--ink-50);
}
.kos-mehrfach-row:last-child {
  border-bottom: none;
}
.kos-mehrfach-row.has-data {
  color: var(--ink);
}
.kos-mehrfach-row .kmr-range {
  flex: 1;
}
.kos-mehrfach-row .kmr-price {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.kos-mehrfach-empty {
  color: var(--ink-30);
  font-size: 0.875rem;
  font-style: italic;
}

/* Seminar rows */
.kos-seminar-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}
.kos-seminar-row:last-child {
  border-bottom: none;
}
.kos-seminar-name {
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.4;
  flex: 1;
}
.kos-seminar-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.kos-seminar-price.free {
  color: var(--ink-50);
}

/* ---- Footnotes ---- */
.kos-footnotes {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}
.kos-footnotes p {
  font-size: 0.8rem;
  color: var(--ink-30);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}
.kos-footnotes p:last-child {
  margin-bottom: 0;
}

/* ---- Footer ---- */
.kos-footer {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--border);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.kos-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.kos-footer-copy {
  font-size: 0.8rem;
  color: var(--ink-30);
}
