 /* RESET & BASICS */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --panel: #ffffff;
  --text: #0d1321;
  --muted: #4a5568;
  --brand: #6495ed;
  --brand-strong: #3366cc;
  --accent: #5a9bff;
  --shadow: 0 8px 24px rgba(15,23,42,.12);
  --radius: 16px;
  --container: 1200px;
}


/* ------------------------------------------------------------ */
/* ANKER / SPRUNGMARKEN: Abstand wegen fixiertem Header */
/* ------------------------------------------------------------ */

[id] {
  scroll-margin-top: 5.5rem;
}

@media (max-width: 820px) {
  [id] {
    scroll-margin-top: 6rem;
  }
}

@media (max-width: 480px) {
  [id] {
    scroll-margin-top: 5.5rem;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background: linear-gradient(to right, #f4f7ff, #ffffff);
  color: var(--text);
  padding-top: 4.5rem;      /* Platz für den fixen Header */
  padding-bottom: 4.5rem;   /* Platz für den fixen Button */
}


img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }


a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ------------------------------------------------------------ */
/* HEADER */
/* ------------------------------------------------------------ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--brand);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}


/* Grundlayout: 3 Bereiche – links (Burger), Mitte (Logo), rechts (Home) */
.nav {
  display: flex;
  align-items: center;
  padding: .52rem 0;
}

@media (max-width: 820px) {
  .nav {
   padding: .54rem 0;
  }
 }

/* Links: nur so breit wie der Burger */
.nav-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}

/* Mitte: Logo, nutzt den restlichen Platz */
.nav-center {
  display: flex;
  justify-content: center;
  text-align: center;
  flex: 1 1 auto;
}

/* Rechts: nur so breit wie der Home-Button */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

/* Titel verlinkt, aber ohne Link-Optik */
.header-title {
  text-decoration: none;
  color: #fff;
}

.header-title:hover {
  text-decoration: none;
}

/* Zweizeiliger Titel */
.ht-main,
.ht-sub {
  display: block;           /* Zeilenumbruch */
}

.ht-main {
  font-size: 1.79rem;
  font-weight: bold;
  font-style: italic;
  line-height: 1.05;
}

@media (max-width: 820px) {
  .ht-main {
   font-size: 1.69rem;
  }
 }

.ht-sub {
  font-size: 0.81rem;
  font-weight: bold;
  font-style: italic;
  line-height: 1.1;
}

@media (max-width: 820px) {
  .ht-sub {
   font-size: 0.76rem;
  }
 }

/* Home-Button */
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .3rem .4rem;
  border-radius: 8px;
  color: #fff;
}
.brand svg { display: block; }
.brand:hover,
.brand:focus-visible {
  background: rgba(255,255,255,.2);
  outline: none;
}

/* Hamburger-Menü */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .4rem .5rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.menu-toggle svg { display: block; }
.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
  outline: none;
}
.menu-toggle[aria-expanded="true"] {
  background: rgba(255,255,255,.18);
}


/* Screenreader-Menü */
.menu {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------ */
/* INTRO-BEREICH */
/* ------------------------------------------------------------ */

.intro {
  padding: 2.5rem 0 3rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.5rem;
  align-items: stretch;
}

.intro-text {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.intro-text-under-photo {
  text-align:left;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.intro-text h1 {
  margin: 1rem 0 .4rem;
  font-size: 1.05rem;
  color: var(--text);
}

.intro-text h2 {
  font-size: clamp(0.78rem, 0.8vw + 0.6rem, 1.05rem);
  line-height: 1.2;
  margin: 0 0 .9rem;
  color: var(--brand);
  font-style: italic;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.intro-text h3,
.intro-text-under-photo h3 {
  margin: 1rem 0 .4rem;
  font-size: 1.05rem;
  color: var(--text);
}

.intro-text p,
.intro-text-under-photo p {
  margin: 0 0 .5rem;
  color: var(--muted);
}


.intro-photo {
  display: flex;
  height: 100%;
}

.intro-photo-inner {
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.intro-photo-inner img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  flex: 0 0 auto;
}

.intro-photo-inner p {
  margin: .5rem 0 .75rem;
  font-weight: 600;
  color: var(--text);
  flex: 0 0 auto;
}

.icon-text {
  display: flex;
  align-items: center;
  gap: 0.8em;
  line-height: 1.5;
}

.icon-text .icon {
  width: 3em;
  height: 3em;
  flex: 0 0 3em;
  margin: 0;
}


.icon-text2 {
  line-height: 1.5;
  font-weight: bold;
}

.icon-text2 .icon2 {
  float: left;
  width: 5.5em;
  height: 5.5em;
  margin: 0.2em 0.8em 0.4em 0;
}


/* ------------------------------------------------------------ */
/* GRID-BEREICHE */
/* ------------------------------------------------------------ */

.features {
  padding: 3rem 0;
}

.features h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
  color: var(--text);
}

.card p {
  margin: 0 0 .6rem;
  color: var(--muted);
}

/* ------------------------------------------------------------ */
/* KONTAKT */
/* ------------------------------------------------------------ */

.contact {
  padding: 3rem 0;
}

.contact h2 {
  margin-top: 0;
  margin-bottom: .75rem;
  color: var(--text);
}

.contact > p {
  color: var(--muted);
  max-width: 640px;
}

.kontakt-daten-card {
  margin-top: 1rem;
}

.contact-card {
  max-width: 640px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

form {
  display: grid;
  gap: .8rem;
}

label {
  font-weight: 600;
  color: var(--text);
}

input, textarea {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.16);
  color: var(--text);
  padding: .75rem .9rem;
  border-radius: 10px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 6px 16px rgba(37,99,235,.25);
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ */
/* KONTAKT-ICON-LISTE */
/* ------------------------------------------------------------ */

.kontakt-daten ul {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.kontakt-daten li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1rem;
  color: var(--text);
}

.kontakt-daten .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  color: var(--brand);
  flex-shrink: 0;
}

.kontakt-daten svg {
  display: block;
  width: 1.1em;
  height: 1.1em;
}


/* ------------------------------------------------------------ */
/* DUAL-KARTEN-LAYOUT (Kontakt / Termin) */
/* ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;       /* wie .grid */
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

/* Karten in Kontakt-/Termin-Grids immer bündig und ohne Extra-Margin */
.contact-grid .card,
.contact-grid .contact-card {
  margin-top: 0;
  max-width: 100%;
}


/* ------------------------------------------------------------ */
/* Radio-Gruppen (Termin) */
/* ------------------------------------------------------------ */

.phone-row {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .4rem;
}

.flag-de {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(to bottom,
    #000000 0%, #000000 33%,
    #dd0000 33%, #dd0000 66%,
    #ffce00 66%, #ffce00 100%);
  box-shadow: 0 0 2px rgba(15,23,42,.3);
  flex-shrink: 0;
}

.phone-row input[type="tel"] {
  flex: 1 1 auto;
  max-width: 130px;
}

.phone-sep {
  color: var(--muted);
  font-weight: 600;
}

.radio-group {
  border: none;
  padding: 0;
  margin: 1rem 0 .5rem;
}

.radio-group legend {
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
  font-size: .96rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .25rem;
  font-size: .94rem;
  color: var(--muted);
}

.radio-option input[type="radio"] {
  accent-color: var(--brand);
}

/* ------------------------------------------------------------ */
/* FOOTER */
/* ------------------------------------------------------------ */

footer {
  padding: 2rem 0;
  color: var(--muted);
  border-top: 1px solid rgba(15,23,42,.08);
  font-size: .9rem;
}

footer a { color: var(--brand); }

/* ------------------------------------------------------------ */
/* POPUP-NAVIGATION */
/* ------------------------------------------------------------ */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 1rem;
}

.menu-overlay.open {
  display: flex;
}

.menu-dialog {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(90%, 380px);
  max-height: calc(100vh - 2rem);
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
}


.menu-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .35rem;
}

.menu-dialog-header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}

.menu-dialog-subline {
  margin: 0 0 .9rem;
  font-size: .9rem;
  color: var(--muted);
}

.menu-close {
  border: none;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: .1rem .3rem;
  border-radius: 999px;
  color: #4b5563;
}

.menu-close:hover,
.menu-close:focus-visible {
  background: rgba(100,149,237,0.08);
  color: #111827;
  outline: none;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: .25rem;

  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: .25rem;
}

.menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .6rem;
  border-radius: 10px;
  font-size: .98rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu-links a .arrow {
  font-size: .9rem;
  color: var(--brand);
  opacity: .8;
  margin-left: .4rem;
}

.menu-links a:hover,
.menu-links a:focus-visible {
  background: rgba(100,149,237,0.08);
  color: var(--brand-strong);
  outline: none;
}

.menu-links a.active {
  background: rgba(100,149,237,0.12);
  color: var(--brand-strong);
  font-weight: 600;
}

/* Strukturierte Gruppen im Hamburger-Menü */
.menu-group-title {
  margin: .75rem .6rem .2rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand-strong);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.menu-group-title:first-child {
  margin-top: 0;
}

.menu-links .menu-sub-link {
  padding-left: 1.4rem;
  font-size: .94rem;
}

.menu-sub-link span:first-child::before {
  content: "– ";
  color: var(--brand);
}

/* ------------------------------------------------------------ */
/* FIXIERTER BUTTON */
/* ------------------------------------------------------------ */

.fixed-contact-btn {
  position: fixed;
  bottom: 1.2rem;
  left: calc(50% - (var(--container) / 2) + 10px);
  right: auto;
  background: orange;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: .9rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: glowPulse 3s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255,165,0,0.4);
  transition: background .4s ease, box-shadow .4s ease;
}

/* auf kleineren Breiten nach links legen */
@media (max-width: 820px) {
  .fixed-contact-btn {
    left: 1rem;
    right: auto;
    bottom: 1.2rem;
  }
}

.fixed-contact-btn:hover,
.fixed-contact-btn:focus-visible {
  background: var(--brand);
  box-shadow: 0 0 16px rgba(100,149,237,0.55);
  animation: glowPulseBlue 3s ease-in-out infinite;
  outline: none;
  text-decoration: none;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,165,0,0.35); }
  50%      { box-shadow: 0 0 20px rgba(255,165,0,0.65); }
}

@keyframes glowPulseBlue {
  0%, 100% { box-shadow: 0 0 10px rgba(100,149,237,0.35); }
  50%      { box-shadow: 0 0 20px rgba(100,149,237,0.65); }
}

@media (max-width: 600px) {
  .fixed-contact-btn {
    bottom: 1rem;
    left: 1rem;
    right: auto;
    padding: .7rem 1.1rem;
    font-size: .9rem;
    box-shadow: 0 0 10px rgba(255,165,0,0.35);
  }
  body {
    padding-bottom: 4rem;
  }
}

/* ------------------------------------------------------------ */
/* RESPONSIVE */
/* ------------------------------------------------------------ */

@media (min-width: 700px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    align-items: stretch;
  }

  .intro-text,
  .intro-photo,
  .intro-photo-inner {
    height: 100%;
  }
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile Feinjustierung für Header-Logo */
@media (max-width: 480px) {
  .ht-main {
    font-size: 1.3rem;
  }
  .ht-sub {
    font-size: 0.7rem;
  }
  .nav {
    padding: 0.4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------ */
/* ABSTÄNDE IMPRESSUM / DATENSCHUTZ /steckbrief */
/* ------------------------------------------------------------ */

#impressum {
  padding-bottom: 0;  /* kein extra Abstand nach unten */
}

#datenschutz {
  padding-top: 0;     /* kein extra Abstand nach oben */
}

#steckbrief {
  padding-top: 0;     /* kein extra Abstand nach oben */
}

/* definierter Abstand von 1rem zwischen den Karten */
#impressum .card {
  margin-bottom: 1rem;
}

/* Abstand unterhalb des Datenschutz-Kastens */
#datenschutz .card {
  margin-bottom: 1rem;
}

/* Abstand unterhalb des Datenschutz-Kastens */
#steckbrief .card {
  margin-bottom: 1rem;
}


@supports (padding-top: env(safe-area-inset-top)) {
  header {
    padding-top: env(safe-area-inset-top);
  }

  body {
    padding-top: calc(4.5rem + env(safe-area-inset-top));
  }
}

/* ------------------------------------------------------------ */
/* TYPO-FINISH: Überschriften & Textabstände */
/* ------------------------------------------------------------ */

/* h2-Abstände in Bereichen mit Karten (Kontakt, Leistungen, Termin) */
.features h2,
.contact h2,
.content h2 {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

/* h3 in Karten – überall gleich */
.card h3,
.contact-card h3 {
  margin-top: 0;
  margin-bottom: .6rem;
}

/* Fließtext in Karten etwas luftiger */
.card p,
.contact-card p {
  line-height: 1.5;
}

/* Labels immer knapp über dem Feld, aber nicht kleben */
form label {
  display: block;
  margin-bottom: .15rem;
}

/* Eingabefelder & Textareas: gute Lesbarkeit */
input,
textarea {
  line-height: 1.4;
}

/* Radio-Gruppen: Legenden & Optionen etwas luftiger */
.radio-group legend {
  line-height: 1.4;
}

.radio-option {
  line-height: 1.4;
}

/* Termin-Infotext links (Blabla-Karte) */
#termin .card p {
  line-height: 1.6;
}

/* ------------------------------------------------------------ */
/* ALLGEMEINE CONTENT-/UNTERSEITEN */
/* ------------------------------------------------------------ */

.content,
.page-section {
  padding: 3rem 0;
}

.content .card,
.page-section .card {
  margin-bottom: 1rem;
}

.content h1,
.page-section h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text);
}

.content h2,
.page-section h2 {
  margin-top: 0;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.content h3,
.page-section h3 {
  margin-top: 1.8rem;
  margin-bottom: .6rem;
  color: var(--text);
}

.content p,
.page-section p {
  color: var(--muted);
}

/* ------------------------------------------------------------ */
/* HERO / SEITENEINSTIEG FÜR UNTERSEITEN */
/* ------------------------------------------------------------ */


.hero-content {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
}


.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  color: var(--text);
}

.hero-subline {
  margin: .65rem 0 0;
  max-width: 780px;
  color: var(--muted);
}

/* ------------------------------------------------------------ */
/* ÜBER-MICH-SEITE */
/* ------------------------------------------------------------ */

.about-page {
  padding: 0 0 3rem;
}

.about-text h2,
.about-side h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.about-text h3,
.about-side h3 {
  margin-top: 2rem;
  margin-bottom: .7rem;
}

.about-text h3:first-child,
.about-side h3:first-child {
  margin-top: 0;
}

.about-text p,
.about-side p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.about-text ul,
.about-side ul {
  margin: .5rem 0 1.4rem;
  padding-left: 1.2rem;
}

.about-text li,
.about-side li {
  margin-bottom: .45rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Rechte Bildkarte auf der Über-mich-Seite */
.about-side-card {
  align-self: start;
}


/* ------------------------------------------------------------ */
/* BUTTON-ALIAS FÜR UNTERSEITEN */
/* ------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37,99,235,.25);
}

.button:hover,
.button:focus-visible {
  text-decoration: none;
  outline: none;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
}

/* ------------------------------------------------------------ */
/* CTA-/INFO-BOXEN */
/* ------------------------------------------------------------ */

.info-box {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(15,23,42,.10);
}

.cta-box h3,
.info-box h3 {
  margin-top: 0;
}

/* ------------------------------------------------------------ */
/* CHECK-LISTEN / FAKTENLISTEN */
/* ------------------------------------------------------------ */

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.55rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
}

/* ------------------------------------------------------------ */
/* RESPONSIVE ERGÄNZUNGEN FÜR UNTERSEITEN */
/* ------------------------------------------------------------ */

@media (max-width: 600px) {
  .hero {
    padding-top: 2rem;
  }

  .hero-content,
  .card,
  .contact-card {
    padding: 1.1rem 1.15rem;
  }

  .about-gallery {
    padding: .85rem;
    gap: .85rem;
  }

  .about-text h3,
  .about-side h3 {
    margin-top: 1.6rem;
  }
}


/* ------------------------------------------------------------ */
/* ÜBER-MICH-SEITE / RECHTER ZEITREISE-BLOCK */
/* ------------------------------------------------------------ */


/* Rechte Bildkarte mit Galerie-Inhalt ohne zusätzliche Innenabstände */
.about-side-card:has(.about-gallery) {
  padding: 0;
  overflow: hidden;
}

/* Beide Blöcke auf der Über-mich-Seite gleich breit */
@media (min-width: 900px) {
  .about-page .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 1rem;
  }
}

/* Der rechte Block darf weiterhin wie eine normale Karte wirken */
.about-side-card {
  align-self: start;
}

/* Galerie-Inhalt mit sauberer Innenluft */
.about-gallery {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem;
}

/* Reine Bildergalerie bleibt weiterhin möglich */
.about-gallery > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.about-gallery > img.gallery-crop {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Einleitung im rechten Block */
.about-gallery > h2 {
  margin-top: 0;
  margin-bottom: .9rem;
  color: var(--text);
}

.about-gallery > p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Einzelne Zeitreise-Station */
.about-photo-item {
  padding-bottom: 1.8rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid rgba(15,23,42,.14);
}

/* Letztes Element ohne Trennlinie */
.about-photo-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

/* Jahreszahl */
.about-photo-year {
  margin: 0 0 .35rem;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--text);
}

/* Erklärungstext */
.about-photo-text {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.55;
}

/* Foto */
.about-photo-item img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: .25rem;
  margin-bottom: .9rem;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

/* Falls Bilder einheitlich zugeschnitten werden sollen */
.about-photo-item img.gallery-crop {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 600px) {
  .about-gallery {
    padding: .85rem;
  }

  .about-photo-item {
    padding-bottom: 1.45rem;
    margin-bottom: 1.45rem;
  }

  .about-photo-year {
    font-size: 1rem;
  }

  .about-photo-text {
    font-size: .94rem;
  }
}


.intro-text .h3-look {
  margin: 1rem 0 .4rem;
  font-size: 1.05rem;
  color: var(--text);
  font-style: normal;
  text-align: left;
  white-space: normal;
}
