/*
  styles.css – modernes, schlankes One-Page-Layout für die Praxis-Webseite.
  Keine externen Schriftarten, kein Tracking, kein JavaScript erforderlich.

  Wichtig für spätere Anpassungen:
  - Farben zentral im :root ändern.
  - Breite der Seite über --container ändern.
  - Mobile Ansicht wird unten über @media-Regeln gesteuert.
*/

:root {
  --color-bg: #fffaf0;
  --color-surface: #ffffff;
  --color-soft: #f7ead5;
  --color-text: #28352f;
  --color-muted: #6f7d68;
  --color-primary: #4f7f45;
  --color-primary-dark: #244b38;
  --color-accent: #f4c63d;
  --color-accent-soft: #fff0a8;
  --color-earth: #8b5e34;
  --color-leaf: #6e8f46;
  --color-border: #ead9bd;
  --color-dark: #1e382c;
  --color-dark-text: #fbfff8;
  --shadow-soft: 0 18px 45px rgba(64, 49, 24, 0.12);
  --radius-large: 28px;
  --radius-medium: 18px;
  --container: 1120px;
  --header-height: 76px;
}

/* Einheitliches Box-Modell verhindert Breitenprobleme bei Padding und Borders. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at 8% 16%, rgba(244, 198, 61, 0.14), transparent 18rem),
    radial-gradient(circle at 92% 6%, rgba(110, 143, 70, 0.10), transparent 20rem),
    var(--color-bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

p,
ul,
ol {
  margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  max-width: 850px;
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.25rem;
}

/* Zentrierter Hauptcontainer: verhindert, dass die Seite nur links klebt. */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Tastatur-/Screenreader-Hilfe: Nur sichtbar, wenn sie fokussiert wird. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--color-primary-dark);
  color: #ffffff;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Sticky Header bleibt beim Scrollen oben sichtbar. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--color-text);
  text-decoration: none;
}

/* Kleines Sonnenblumen-Signet im Kopfbereich. Rein mit CSS gebaut, daher kein zusätzlicher Download. */
.brand-mark {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #7b4a20 0 24%, transparent 25%),
    conic-gradient(from 5deg, #f4c63d 0 10deg, #ffd95a 10deg 20deg, #f4c63d 20deg 30deg, #ffd95a 30deg 40deg, #f4c63d 40deg 50deg, #ffd95a 50deg 60deg, #f4c63d 60deg 70deg, #ffd95a 70deg 80deg, #f4c63d 80deg 90deg, #ffd95a 90deg 100deg, #f4c63d 100deg 110deg, #ffd95a 110deg 120deg, #f4c63d 120deg 130deg, #ffd95a 130deg 140deg, #f4c63d 140deg 150deg, #ffd95a 150deg 160deg, #f4c63d 160deg 170deg, #ffd95a 170deg 180deg, #f4c63d 180deg 190deg, #ffd95a 190deg 200deg, #f4c63d 200deg 210deg, #ffd95a 210deg 220deg, #f4c63d 220deg 230deg, #ffd95a 230deg 240deg, #f4c63d 240deg 250deg, #ffd95a 250deg 260deg, #f4c63d 260deg 270deg, #ffd95a 270deg 280deg, #f4c63d 280deg 290deg, #ffd95a 290deg 300deg, #f4c63d 300deg 310deg, #ffd95a 310deg 320deg, #f4c63d 320deg 330deg, #ffd95a 330deg 340deg, #f4c63d 340deg 350deg, #ffd95a 350deg 360deg);
  box-shadow: 0 8px 18px rgba(139, 94, 52, 0.18);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 16px;
  height: 9px;
  border-radius: 100% 0 100% 0;
  background: var(--color-leaf);
  transform: rotate(-22deg);
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand-title {
  font-weight: 700;
  font-size: 1rem;
}

.brand-subtitle {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--color-soft);
}

/* Checkbox für mobiles Menü ist visuell versteckt, bleibt aber funktional. */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-button {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  cursor: pointer;
}

.nav-button span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(255, 244, 198, 0.88)),
    var(--color-bg);
}

/*
  Warmer Startbereich: Das Sonnenblumenfoto aus der alten Webseite wird nur dekorativ
  als weicher Hintergrund genutzt. Die helle Überlagerung sorgt für gut lesbaren Text.
*/
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.97) 0%, rgba(255, 250, 240, 0.86) 46%, rgba(255, 250, 240, 0.58) 100%),
    url("images/sonnen-blume.jpg");
  background-size: cover;
  background-position: center right;
  opacity: 1;
}

/* Sanfte Naturform im Hintergrund, rein dekorativ. */
.hero::after {
  content: "";
  position: absolute;
  right: min(6vw, 5rem);
  bottom: -5rem;
  width: min(36vw, 24rem);
  aspect-ratio: 1;
  border-radius: 46% 54% 42% 58%;
  background: rgba(110, 143, 70, 0.14);
  filter: blur(1px);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid,
.split-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-content {
  max-width: 860px;
}

.hero-nature .hero-content {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-large);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 18px 55px rgba(64, 49, 24, 0.08);
  backdrop-filter: blur(3px);
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.lead {
  max-width: 760px;
  color: var(--color-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-principles {
  max-width: 820px;
  margin-block: 1.35rem;
  color: var(--color-primary-dark);
}

.hero-principles p {
  margin: 0;
  line-height: 1.8;
  font-size: 1.05rem;
}

.card-kicker {
  margin-bottom: 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.personal-note {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--color-border);
}

.personal-note h4 {
  margin: 0 0 0.45rem;
  color: var(--color-primary-dark);
  font-size: 1rem;
}

.private-selfpay-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
  margin-top: 2rem;
}

.private-grid {
  margin-top: 2rem;
}


.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-primary-dark);
}

.button-secondary {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--color-primary);
}

.hero-card,
.card,
.info-box,
.contact-card,
.note-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.hero-card,
.info-box,
.contact-card,
.note-box {
  padding: clamp(1.5rem, 4vw, 2rem);
}

.info-box {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 252, 244, 0.98)),
    radial-gradient(circle at top right, rgba(244, 198, 61, 0.18), transparent 13rem);
}

.info-box::after {
  content: "";
  position: absolute;
  right: -1.7rem;
  bottom: -1.4rem;
  width: 7rem;
  height: 4rem;
  border-radius: 100% 0 100% 0;
  background: rgba(110, 143, 70, 0.10);
  transform: rotate(20deg);
}

.info-box > * {
  position: relative;
  z-index: 1;
}

.check-list,
.info-box ul {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.2rem;
  margin-bottom: 0;
}


/* Naturmotiv im Kurzinfo-Kasten: nutzt dasselbe Sonnenblumenfoto wie die alte Webseite. */
.hero-card-nature {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 252, 244, 0.96)),
    radial-gradient(circle at top right, rgba(244, 198, 61, 0.24), transparent 15rem);
}

.hero-card-nature::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  bottom: -2.8rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: rgba(244, 198, 61, 0.13);
}

.sunflower-medallion {
  width: 132px;
  aspect-ratio: 1;
  margin: 0 0 1.25rem auto;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.86);
  background-image: url("images/sonnen-blume.jpg");
  background-size: 230%;
  background-position: 60% 105%;
  box-shadow: 0 18px 35px rgba(139, 94, 52, 0.20);
}

/* Kleine warme Übergangsleiste unter dem Hero-Bereich. */
.nature-strip {
  margin-top: -2.2rem;
  position: relative;
  z-index: 2;
}

.nature-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-soft);
}

.nature-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 42px;
  padding-inline: 0.75rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  text-align: center;
}

.nature-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 100% 0 100% 0;
  background: var(--color-leaf);
  transform: rotate(-25deg);
}

.nature-icon-sun {
  border-radius: 50%;
  background: var(--color-accent);
  transform: none;
}

.nature-icon-sun::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--color-earth);
}

.nature-icon-leaf {
  transform: rotate(28deg);
}

.section-soft {
  background: var(--color-soft);
}


/* Dezente Blattformen in hellen Abschnitten. Die Elemente sind rein dekorativ und stören den Text nicht. */
.section-with-leaves {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(244, 198, 61, 0.18), transparent 16rem),
    radial-gradient(circle at 8% 92%, rgba(110, 143, 70, 0.12), transparent 18rem),
    var(--color-soft);
}

.section-with-leaves::before,
.section-garden::before {
  content: "";
  position: absolute;
  width: 14rem;
  height: 9rem;
  border-radius: 100% 0 100% 0;
  background: rgba(110, 143, 70, 0.10);
  transform: rotate(-18deg);
  pointer-events: none;
}

.section-with-leaves::before {
  right: -4rem;
  top: 4rem;
}

.section-garden {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--color-bg), #fff6df);
}

.section-garden::before {
  left: -5rem;
  bottom: 4rem;
  transform: rotate(18deg);
}

.section-with-leaves > .container,
.section-garden > .container {
  position: relative;
  z-index: 1;
}

/* Kleine Sonnenblumen-Linie unter Hauptüberschriften. */
.section-heading-nature::after {
  content: "";
  display: block;
  width: min(13rem, 55vw);
  height: 6px;
  margin-top: 1.25rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--color-accent), rgba(110, 143, 70, 0.55), transparent);
}

.section-accent {
  background: linear-gradient(135deg, rgba(243, 198, 78, 0.25), rgba(37, 111, 104, 0.12));
}

.section-dark {
  background:
    radial-gradient(circle at 12% 18%, rgba(244, 198, 61, 0.14), transparent 18rem),
    radial-gradient(circle at 92% 88%, rgba(110, 143, 70, 0.22), transparent 20rem),
    var(--color-dark);
  color: var(--color-dark-text);
}

.section-dark .eyebrow,
.section-dark a {
  color: #ffffff;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-heading p,
.split-layout p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.section-dark p {
  color: rgba(247, 250, 248, 0.82);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--color-accent), rgba(110, 143, 70, 0.55));
}

.card::after {
  content: "";
  position: absolute;
  right: -1.6rem;
  bottom: -1.6rem;
  width: 5rem;
  height: 3.2rem;
  border-radius: 100% 0 100% 0;
  background: rgba(110, 143, 70, 0.07);
  transform: rotate(18deg);
}

.card p,
.contact-card p {
  color: var(--color-muted);
}

.card p + p {
  margin-top: 0.9rem;
}

.compact-card {
  box-shadow: none;
}

.note-box {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.contact-card .button {
  margin-top: 1.25rem;
}

.contact-details {
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.08);
  font-style: normal;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  text-decoration-thickness: 0.18em;
}

/* Kontaktformular */
.contact-layout-wide {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.form-notice {
  padding: 1rem;
  border-left: 4px solid var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 14px 14px 0;
}

.contact-form {
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius-large);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field,
.form-fieldset {
  margin-bottom: 1rem;
}

.form-field label,
.form-fieldset legend {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 46px;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-primary);
  outline: 3px solid rgba(243, 198, 78, 0.45);
}

.field-help,
.required-note {
  margin-top: 0.4rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.form-fieldset {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 18px;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.radio-grid label,
.privacy-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.radio-grid input,
.privacy-check input {
  margin-top: 0.35rem;
}

.privacy-check {
  margin-block: 1.25rem;
  font-size: 0.95rem;
}

.privacy-check a {
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* Honeypot: Für Nutzer unsichtbar, für viele Bots sichtbar. Nicht mit display:none verstecken. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Ergebnis-Seite aus kontakt.php */
.result-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.result-card {
  max-width: 760px;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.08);
}

.error-list {
  padding-left: 1.2rem;
  color: #ffffff;
}

.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  gap: 1rem;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--color-primary-dark);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

/* Tablet und kleine Laptops: Navigation klappt in ein mobiles Menü um. */
@media (max-width: 1020px) {
  .nav-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-height) - 0.3rem);
    display: none;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
  }

  .nav-toggle:checked ~ .site-nav {
    display: block;
  }

  .site-nav ul {
    display: grid;
    gap: 0.25rem;
  }

  .site-nav a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
  }

  .hero-grid,
  .split-layout,
  .contact-layout,
  .three-columns,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(255, 250, 240, 0.88)),
      url("images/sonnen-blume.jpg");
    background-position: center;
  }

  .nature-strip {
    margin-top: 0;
    padding-inline: 1rem;
    background: var(--color-bg);
  }

  .nature-strip-inner {
    grid-template-columns: 1fr;
    border-radius: var(--radius-medium);
  }
}

/* Smartphones: Mehr Luft reduzieren, Buttons und Formularfelder auf volle Breite. */
@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    font-size: 0.8rem;
  }

  .section {
    padding-block: 3.25rem;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .form-grid,
  .radio-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .card,
  .info-box,
  .contact-card,
  .contact-details,
  .contact-form,
  .note-box,
  .hero-nature .hero-content {
    border-radius: var(--radius-medium);
  }

  .sunflower-medallion {
    width: 96px;
    margin-inline: auto;
  }

  .brand-mark {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }
}

/* Nutzer, die reduzierte Bewegung eingestellt haben, bekommen kein Smooth-Scrolling. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Praxis-Abschnitt: kleiner Bildakzent mit Sonnenblume, ohne zusätzlichen HTML-Inhalt. */
#praxis .info-box::before {
  content: "";
  display: block;
  width: 100%;
  height: 150px;
  margin-bottom: 1.25rem;
  border-radius: 20px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(36, 75, 56, 0.20)),
    url("images/sonnen-blume.jpg");
  background-size: cover;
  background-position: center;
}

#kontakt .contact-form {
  border: 1px solid rgba(244, 198, 61, 0.45);
}

#kontakt .button-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

@media (max-width: 760px) {
  .private-selfpay-row {
    grid-template-columns: 1fr;
  }

  .hero-principles {
    margin-block: 1.15rem;
  }
}


/* ============================================================
   RECHTLICHE SEITEN: Impressum & Datenschutz
   Bewusst dieselbe visuelle Sprache wie die One-Page-Hauptseite.
   Keine alten Bootstrap-/CMS-Abhängigkeiten mehr.
   ============================================================ */
.legal-page {
  background: var(--color-bg);
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.92rem;
}

.legal-nav a:hover,
.legal-nav a:focus-visible,
.legal-nav a[aria-current="page"] {
  background: var(--color-soft);
  color: var(--color-primary-dark);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background:
    linear-gradient(110deg, rgba(255, 250, 240, 0.98), rgba(255, 250, 240, 0.88)),
    url("images/sonnen-blume.jpg") center / cover no-repeat;
}

.legal-hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -70px;
  bottom: -95px;
  border-radius: 50%;
  border: 34px solid rgba(244, 198, 61, 0.16);
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.legal-hero h1 {
  margin-bottom: 0.8rem;
}

.legal-updated {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.legal-section {
  background: linear-gradient(180deg, var(--color-bg), var(--color-soft));
}

.legal-layout,
.legal-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.legal-content {
  grid-template-columns: 1fr;
  max-width: 940px;
}

.legal-card {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.legal-card-wide {
  grid-column: 1 / -1;
}

.legal-card h2 {
  margin-top: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.legal-card h3 {
  font-size: 1.1rem;
}

.legal-card p:last-child,
.legal-card ul:last-child,
.legal-card address:last-child {
  margin-bottom: 0;
}

.legal-card address {
  font-style: normal;
  line-height: 1.75;
}

.legal-card a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.legal-card a:hover,
.legal-card a:focus-visible {
  text-decoration-thickness: 2px;
}

.legal-list {
  padding-left: 1.2rem;
}

.legal-list li + li {
  margin-top: 0.45rem;
}

.legal-definition-list {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.6fr);
  gap: 0.6rem 1rem;
  margin: 0;
}

.legal-definition-list dt {
  font-weight: 800;
  color: var(--color-primary-dark);
}

.legal-definition-list dd {
  margin: 0;
}

@media (max-width: 760px) {
  .legal-layout,
  .legal-content {
    grid-template-columns: 1fr;
  }

  .legal-card-wide {
    grid-column: auto;
  }

  .legal-definition-list {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .legal-definition-list dd + dt {
    margin-top: 0.8rem;
  }

  .legal-nav {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 0.65rem;
  }
}
/* Texte innerhalb des weißen Kontaktformulars auf dunklem Hintergrund */
.section-dark .contact-form {
  color: var(--color-text);
}

.section-dark .contact-form p,
.section-dark .contact-form .field-help,
.section-dark .contact-form .required-note {
  color: var(--color-muted);
}

/* Datenschutz-Link im weißen Formular ebenfalls sichtbar halten */
.section-dark .contact-form a {
  color: var(--color-primary-dark);
}

.section-dark .contact-form a:hover,
.section-dark .contact-form a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================================
   AKTUELLES / NEWS
   Kompakter Hinweisbereich für zeitlich begrenzte Praxisinfos.
   Der Bereich ist bewusst kleiner als die regulären Inhaltssektionen.
   ============================================================ */
.news-section {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.55), rgba(247, 234, 213, 0.72));
}

.news-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(64, 49, 24, 0.08);
}

.news-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-primary-dark);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.news-content h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  letter-spacing: -0.025em;
}

.news-content p {
  margin: 0;
  color: var(--color-muted);
}

/* Anfahrt: externer Google-Maps-Link ohne eingebettete Karte.
   Dadurch wird beim normalen Seitenaufruf keine Verbindung zu Google Maps aufgebaut. */
.route-actions {
  position: relative;
  z-index: 2;
  margin-top: 1.4rem;
}

.route-actions .button {
  width: 100%;
}

.external-link-note {
  margin: 0.65rem 0 0;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 700px) {
  .news-card {
    grid-template-columns: 1fr;
  }

  .news-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}
/* ============================================================
   Buttons auf der Bestätigungsseite des Kontaktformulars
   ============================================================ */

.section-dark .button-primary {
  color: #ffffff;
}

.section-dark .button-secondary {
  color: var(--color-text);
}

.section-dark .button-secondary:hover,
.section-dark .button-secondary:focus-visible {
  color: var(--color-primary-dark);
}
