/* ==========================================================
   Digital Coach Tegernsee - style.css (bereinigte Fassung)
   Schriften: Didot (Überschriften), Avenir (Text), mit Fallbacks.
   CI-Gold #AE906F nur für Linien, Flächen und Akzente.
   Für Text auf hellem Grund wird #7A6248 verwendet (Kontrast).
   ========================================================== */

/* ---------- Grundlagen ---------- */
:root {
  --text: #1A1A1A;
  --dark: #1A1A1A;
  --bg: #FFFFFF;
  --soft: #F7F3EC;
  --line: #E4DCCF;
  --gold: #AE906F;
  --gold-dark: #7A6248;
  --focus: #1A1A1A;
  --font-head: Didot, "Bodoni 72", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: Avenir, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 6px;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (max-width: 600px) {
  html { font-size: 106%; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--dark);
}
h1 { font-size: 2.5rem; line-height: 1.12; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }
@media (min-width: 761px) {
  h1 { font-size: 3.6rem; }
  h2 { font-size: 3.1rem; }
}

p { margin: 0 0 1em; }

a { color: var(--text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--dark); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: var(--radius); z-index: 100;
}
.skip-link:focus { top: 1rem; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4rem 0; }
@media (max-width: 600px) {
  section { padding: 3rem 0; }
}

.section-intro { font-size: 1.2rem; max-width: 40em; margin-bottom: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid var(--dark);
  border-radius: 3px;
  background: var(--gold);
  color: var(--dark);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--dark); border-color: var(--dark); color: #fff; }

.btn-outline { background: #fff; }
.btn-outline:hover { background: var(--dark); color: #fff; }

.phone-btn { min-height: 44px; padding: 0.45rem 1.2rem; }

@media (max-width: 600px) {
  .btn { width: 100%; }
}

/* ---------- Kopfbereich & Navigation ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #E8E1D6;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 400;
  color: var(--gold);
  text-decoration: none;
}
@media (min-width: 761px) {
  .logo { font-size: 2rem; }
}
.logo img { width: 64px; height: 64px; flex: 0 0 auto; }
.logo:hover { color: var(--gold-dark); }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
}
.main-nav a {
  font-size: 1.15rem;
  color: var(--dark);
  text-decoration: none;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.main-nav a[aria-current="page"] { font-weight: 700; }

.main-nav .phone-btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  border-bottom: 1.5px solid var(--gold);
}
.main-nav .phone-btn:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

/* Hamburger: nur mobil und nur mit aktivem Skript */
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: var(--gold);
    border: 0;
    border-radius: 2px;
    cursor: pointer;
  }
  .js .menu-toggle .bars {
    position: relative;
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
  }
  .js .menu-toggle .bars::before,
  .js .menu-toggle .bars::after {
    content: "";
    position: absolute;
    left: 0;
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
  }
  .js .menu-toggle .bars::before { top: -8px; }
  .js .menu-toggle .bars::after { top: 8px; }

  .js .main-nav { display: none; width: 100%; }
  .js .main-nav.open { display: block; }
  .js .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .js .main-nav li { border-bottom: 1px solid #EFE8DD; }
  .js .main-nav a {
    display: block;
    padding: 0.9rem 0.2rem;
    font-size: 1.3rem;
    border-bottom: 0;
  }
  .js .main-nav .phone-btn { display: block; text-align: center; margin: 0.75rem 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: #fff;
  padding: 3rem 0 3.5rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero .eyebrow {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--gold-dark);
  margin: 0 0 0.6rem;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 0.5em; }
@media (min-width: 761px) {
  .hero h1 { font-size: 3.5rem; }
}
.hero .lead { font-size: 1.25rem; margin-bottom: 1.5rem; }

.hero-art { text-align: center; }
.hero-art img { width: 100%; max-width: 440px; margin: 0 auto; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 300px; }
}
@media (max-width: 600px) {
  .hero { padding: 2.25rem 0 2.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Leistungen ---------- */
.leist-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem 4rem;
  align-items: start;
}
.leist-kopf .section-intro { margin-bottom: 0; }

.leistungen-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: leist;
}
.leistungen-grid li {
  position: relative;
  padding: 1.6rem 1.5rem 1.8rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  counter-increment: leist;
  min-width: 0;
  overflow-wrap: break-word;
}
.leistungen-grid li::before {
  content: counter(leist, decimal-leading-zero);
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-head);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
}
.leistungen-grid h3 {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
}
.leistungen-grid p {
  margin: 0;
  line-height: 1.6;
}

/* Eine Frage reicht: zentrierter Block zwischen Goldlinien */
.frage {
  max-width: 46rem;
  margin: 3.5rem auto 0;
  padding: 2.25rem 1rem;
  text-align: center;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}
.frage h3 {
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.frage p { max-width: 36em; margin: 0 auto; }

@media (max-width: 760px) {
  .leist-layout { grid-template-columns: 1fr; }
  .leistungen-grid { grid-template-columns: 1fr; }
  .leistungen-grid li { padding: 1.4rem 1.2rem; }
  .leistungen-grid li::before { font-size: 2rem; }
  .leistungen-grid h3 { font-size: 1.3rem; }
  .frage h3 { font-size: 1.5rem; }
}

/* ---------- Kundenstimme (Brief) ---------- */
@font-face {
  font-family: "Brief-Hand";
  src: url("../fonts/Z003-MediumItalic.otf") format("opentype");
  font-display: swap;
}

.brief {
  position: relative;
  max-width: 48rem;
  margin: 2.25rem auto 0;
  padding: 3rem 3.25rem 2.5rem;
  background: #FCFAF5;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(40, 30, 20, 0.06), 0 16px 32px -20px rgba(60, 40, 20, 0.35);
}
.brief-text {
  margin: 0;
  font-family: "Brief-Hand", "Apple Chancery", "Lucida Handwriting", "URW Chancery L", cursive;
  font-size: 2.1rem;
  line-height: 1.55;
  color: #1F2A44;
}
.brief-text .ln {
  display: block;
  margin: 0 0 0.35rem;
  clip-path: inset(0 100% 0 0);
  animation: brief-schreiben 1.4s cubic-bezier(0.45, 0.1, 0.35, 1) forwards;
}
.brief-text .ln:nth-child(1) { animation-delay: 0.3s; }
.brief-text .ln:nth-child(2) { animation-delay: 1.8s; animation-duration: 2.8s; }
.brief-text .ln:nth-child(3) { animation-delay: 4.8s; animation-duration: 1.8s; }
.brief-text .ln:nth-child(4) { animation-delay: 6.8s; animation-duration: 1.2s; }
.brief-text .sign { text-align: right; margin-top: 1rem; }

@keyframes brief-schreiben {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.brief figcaption {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: left;
  line-height: 1.6;
  color: var(--text);
}
.brief figcaption strong { font-weight: 700; color: var(--gold-dark); }

@media (max-width: 600px) {
  .brief { padding: 2rem 1.4rem 1.6rem; }
  .brief-text { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .brief-text .ln { clip-path: none; animation: none; }
}

/* ---------- Orte ---------- */
.orte-section { background: var(--soft); }

.orte-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1.3;
}
.orte-list li {
  flex: 1 1 auto;
  padding: 0.85rem 1.1rem;
  background: #fff;
  border: 1px solid #EDE6DA;
  border-radius: var(--radius);
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .orte-list { gap: 0.5rem; }
  .orte-list li {
    flex: 1 1 28%;
    padding: 0.6rem 0.4rem;
    font-size: 1rem;
    white-space: normal;
  }
}

/* ---------- Abschluss-Block (Goldgrund) ---------- */
.closing {
  background: var(--gold);
  color: var(--dark);
  padding: 4rem 0;
}
.closing h2 { color: var(--dark); }
.closing p { font-size: 1.2rem; max-width: 38em; color: var(--dark); }
.closing a:not(.btn) { color: var(--dark); }
.closing a:not(.btn):hover { color: #fff; }
.closing .hero-actions { margin-top: 1.5rem; }

.closing .btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--dark);
}
.closing .btn-light:hover {
  background: var(--soft);
  border-color: var(--soft);
  color: var(--dark);
}
.closing .btn-outline {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.closing .btn-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--dark);
}
.closing :focus-visible { outline-color: var(--dark); }

.contact-line { margin: 1.5rem 0 0; font-size: 1.2rem; }

/* ---------- Fußbereich ---------- */
.site-footer {
  background: #fff;
  color: var(--dark);
  border-top: 1px solid #E8E1D6;
  padding: 2.5rem 0 2.25rem;
  font-size: 1.05rem;
  text-align: center;
}
.site-footer p { margin: 0 0 0.9rem; line-height: 1.7; }
.site-footer a {
  color: var(--dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.site-footer a:hover { color: var(--dark); text-decoration-thickness: 3px; }
.site-footer :focus-visible { outline-color: var(--dark); }

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  font-weight: 700;
}

/* ---------- Unterseiten (Impressum, Datenschutz etc.) ---------- */
.page-head {
  background: var(--soft);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.page-head p { font-size: 1.2rem; max-width: 40em; margin: 0; }

.content { padding: 3rem 0 4rem; }
.content h2 { margin-top: 2rem; font-size: 2.2rem; }
@media (min-width: 761px) {
  .content h2 { font-size: 2.4rem; }
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
}
.content ul { padding-left: 1.3rem; }
.content li { margin-bottom: 0.4em; }
.content .small { font-size: 0.98rem; }

.checklist { list-style: none; padding: 0 !important; }
.checklist li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.9rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55rem;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--gold);
  border-radius: 2px;
}

/* Platzhalter: deutlich markiert, bis die Angaben ergänzt sind */
.platzhalter {
  background: #FFF1B8;
  color: var(--dark);
  border: 2px dashed #8A6F00;
  border-radius: var(--radius);
  padding: 0.15rem 0.45rem;
  font-weight: 700;
}
.platzhalter-box {
  background: #FFF8D6;
  border: 3px dashed #8A6F00;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin: 1.5rem 0 2rem;
  text-align: center;
}
.platzhalter-box strong { display: block; font-size: 1.25rem; margin-bottom: 0.5rem; }
.platzhalter-box p { margin: 0.4rem 0 0; }

.signup-card {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}
.consent-text { font-size: 1rem; margin-top: 1.25rem; }

/* ---------- Newsletter-Seite ---------- */
.nl-hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid #ECE6DA;
}
.nl-hero h1 { max-width: 24ch; }
.nl-hero .lead { max-width: 40rem; }

.nl-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 2.5rem 0 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.nl-divider::before,
.nl-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
}
.nl-divider span { white-space: nowrap; }
.nl-divider span + span::before {
  content: "\25C6";
  color: var(--gold);
  margin-right: 1.2rem;
  font-size: 0.7rem;
}

.nl-persoenlich {
  background: var(--soft);
  padding: 4.5rem 0;
}
.nl-persoenlich .leist-kopf h2 { color: var(--dark); }
.nl-text p { font-size: 1.2rem; line-height: 1.85; margin: 0; }
.nl-text strong { font-weight: 700; }

.nl-anmeldung { padding: 5rem 0 4.5rem; }
.nl-karte {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid #E6DCCB;
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  padding: 3rem 3rem 3.2rem;
}
.nl-karte h2 { font-size: 2.2rem; margin-bottom: 1.2rem; }
.nl-intro { font-size: 1.05rem; line-height: 1.75; margin-bottom: 2rem; }

.nl-form { display: flex; flex-direction: column; gap: 1.6rem; }
.nl-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.nl-feld label {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.55rem;
  padding: 0;
}
.nl-feld input[type="email"] {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #BDAE96;
  border-radius: 4px;
}
.nl-feld input[type="email"]:focus { border-color: var(--text); }

.nl-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.nl-legend {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 0.55rem;
  padding: 0;
}
.nl-check { display: flex; align-items: flex-start; gap: 0.9rem; }
.nl-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.25rem 0 0;
  accent-color: var(--gold-dark);
  cursor: pointer;
}
.nl-check label {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  cursor: pointer;
}

.nl-datenschutz { font-size: 0.95rem; line-height: 1.65; color: #3A3A3A; margin: 0; }
.nl-datenschutz a { color: var(--text); }

.nl-btn {
  align-self: flex-start;
  min-height: 3.1rem;
  padding: 0.75rem 2rem;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nl-btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.nl-btn:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

@media (max-width: 600px) {
  .nl-hero { padding: 3rem 0 2.5rem; }
  .nl-divider { font-size: 0.9rem; gap: 0.6rem; }
  .nl-divider span + span::before { margin-right: 0.6rem; }
  .nl-persoenlich { padding: 3rem 0; }
  .nl-karte { padding: 2rem 1.3rem 2.2rem; }
  .nl-btn { align-self: stretch; text-align: center; }
}

/* ---------- CleverReach-Formular (eingebettet) ---------- */
.cr-embed { margin-top: 1.5rem; }
.cr-embed .cr-text { font-size: 1.1rem !important; }
.cr-embed .cr-web-form label,
.cr-embed .cr-web-label { font-size: 1.1rem; padding: 0.5rem 0; }
.cr-embed .cr-web-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  font-size: 1.1rem;
}
.cr-embed .cr-web-form li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.cr-embed .cr-web-form li input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  margin-top: 0.2rem;
  accent-color: var(--dark);
}
.cr-embed .cr-web-form li label {
  font-size: 1.05rem;
  line-height: 1.5;
  padding: 0;
  font-weight: 400;
}
.cr-embed .cr-web-form button {
  width: 100%;
  min-height: 58px;
  font-size: 1.2rem !important;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}
.cr-embed .cr-web-form button:hover { opacity: 0.9; }
.cr-embed a { color: var(--text); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Hoher Kontrast, falls vom System gewünscht ---------- */
@media (forced-colors: active) {
  .btn, .frage, .brief, .orte-list li, .nl-karte { border: 2px solid CanvasText; }
}
