/* ABLAUF TIMELINE */
.ablauf-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 3rem;
}

.ablauf-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--teal);
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ablauf-step:hover .step-circle {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(91, 158, 160, 0.2);
}

.step-content h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 200px;
  margin: 0 auto;
}

.ablauf-connector {
  flex: 0.7;
  height: 2px;
  background: linear-gradient(to right, var(--teal), rgba(91, 158, 160, 0.2));
  margin-top: 32px;
  position: relative;
  min-width: 30px;
}

.ablauf-connector::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 9px solid rgba(91, 158, 160, 0.4);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* Mobile: vertikale Timeline */
@media (max-width: 768px) {
  .ablauf-timeline {
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
  }

  .ablauf-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    gap: 1.3rem;
    padding-bottom: 2rem;
    position: relative;
  }

  .ablauf-step:last-child {
    padding-bottom: 0;
  }

  .step-circle {
    margin-bottom: 0;
    width: 54px;
    height: 54px;
    font-size: 1.5rem;
  }

  /* vertikale Verbindungslinie zwischen den Kreisen */
  .ablauf-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 26px;
    top: 54px;
    height: calc(100% - 54px);
    width: 2px;
    background: linear-gradient(to bottom, var(--teal), rgba(91, 158, 160, 0.2));
  }

  .step-content {
    padding-top: 0.6rem;
  }

  .step-content p {
    max-width: none;
    margin: 0;
  }

  .ablauf-connector {
    display: none;
  }
}

.stats-bar {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--dark2);
}

.stat {
  flex: 1;
  max-width: 200px;
  padding: 2rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-zahl {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--teal);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}


/* LEISTUNGS-KARTEN */
.karten {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 1000px) {
  .karten {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .karten {
    grid-template-columns: 1fr;
  }
}

.karte {
  background: var(--card);
  padding: 2rem;
  transition: background 0.2s;
}

.karte:hover {
  background: #1f2e42;
}

.karte-icon {
  color: var(--teal);
  margin-bottom: 1rem;
}

.karte h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.karte p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}


/* SPRACHEN */
.lang-liste {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 500px;
}

.lang-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.4rem;
  transition: border-color 0.2s, transform 0.15s;
}

.lang-row:hover {
  border-color: var(--teal);
  transform: translateX(5px);
}

.lang-row .name {
  font-family: var(--serif);
  font-size: 1.15rem;
  flex: 1;
}

.lang-row .level {
  font-size: 0.72rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(91, 158, 160, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
}


/* BEWERTUNGEN */
.bewertungen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Erst auf echtem Desktop (ab 1024px) drei nebeneinander */
@media (min-width: 1024px) {
  .bewertungen-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bewertung {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}

.sterne {
  color: var(--teal);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.bewertung p {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.autor {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.autor-kuerzel {
  width: 36px;
  height: 36px;
  background: rgba(91, 158, 160, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.85rem;
}

.autor strong {
  display: block;
  font-size: 0.85rem;
}

.autor span {
  color: var(--muted);
  font-size: 0.75rem;
}


/* KONTAKT */
.kontakt-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.kontakt-info p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}

.kontakt-btns {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
}

.oeffnung {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.2rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.oeffnung span:last-child {
  grid-column: 1 / -1;
}

/* IMPRESSUM & DATENSCHUTZ */
.impressum-wrap,
.datenschutz-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}

.impressum-wrap h1,
.datenschutz-wrap h1 {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.impressum-wrap h1 em,
.datenschutz-wrap h1 em {
  font-style: italic;
  color: var(--teal);
}

.impressum-wrap h2,
.datenschutz-wrap h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin: 2rem 0 0.5rem;
}

.impressum-wrap p,
.datenschutz-wrap p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.impressum-wrap a {
  color: var(--teal);
  text-decoration: none;
}

.impressum-wrap a:hover {
  text-decoration: underline;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back:hover {
  color: var(--teal);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.ueber-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

/* Falls kein Foto vorhanden ist: Text nutzt die volle Breite */
.ueber-wrap:not(:has(.ueber-foto)) {
  grid-template-columns: 1fr;
}

.ueber-foto {
  width: 100%;
  max-width: 280px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.ueber-text p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.ueber-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.ueber-detail {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  transition: border-color 0.2s, transform 0.15s;
}

.ueber-detail:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
}

.detail-wert {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text);
}

/* RESPONSIVE - alle 768px-Regeln zusammengefasst */
@media (max-width: 768px) {
  .ueber-wrap {
    grid-template-columns: 1fr;
  }

  .ueber-foto {
    max-width: 240px;
  }

  .kontakt-wrap {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    flex-wrap: wrap;
  }
}

/* KLEINE PHONES (≤480px) - Feinabstimmung */
@media (max-width: 480px) {
  /* Stats: sauberes 2x2-Raster statt unsauberem Umbruch */
  .stats-bar {
    flex-wrap: wrap;
  }

  .stat {
    flex: 1 1 50%;
    max-width: none;
    padding: 1.5rem 0.5rem;
  }

  /* untere Reihe ohne doppelte Trennlinie */
  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .stat-zahl {
    font-size: 2rem;
  }

  /* Karten: etwas weniger Innenabstand */
  .karte {
    padding: 1.6rem;
  }

  /* Kontakt-Buttons volle Breite + zentriert */
  .kontakt-btns .btn {
    text-align: center;
  }

  /* lange E-Mail/Telefon nicht überlaufen lassen */
  .info-row {
    flex-wrap: wrap;
    word-break: break-word;
  }

  .info-row a {
    word-break: break-all;
  }

  /* Detail-Kacheln einspaltig auf kleinen Phones */
  .ueber-details {
    grid-template-columns: 1fr;
  }
}