@font-face {
  font-family: "DM Sans";
  src: url("fonts/dmsans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Gabarito";
  src: url("fonts/gabarito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --mint: #D7EEEB;
  --mint-soft: #EDF7F5;
  --mint-2: #E2F2EF;
  --ink: #2A211B;
  --muted: #4A3F38;
  --espresso: #3B2A20;
  --gold: #D9963F;
  --gold-light: #E2A757;
  --gold-dark: #8F5414;
  --line: #E4E9E7;
  --lux-red: #EF3340;
  --lux-blue: #00A3E0;
  --lux-stripes: linear-gradient(var(--lux-red) 0 33.4%, #fff 33.4% 66.6%, var(--lux-blue) 66.6% 100%);
  --radius: 18px;
  --radius-lg: 28px;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Gabarito", var(--sans);
  --logo: "DM Sans", var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0; color: var(--espresso); }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: 22px; }
section[id] { scroll-margin-top: 96px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 22px clamp(16px, 4vw, 48px) 16px;
  background: var(--mint);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(255,255,255,.92); border-bottom-color: var(--line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--lux-stripes); }

/* Wortlogo „Typo 1“: Unterzeile optisch eingerückt und auf die Breite von „Café Croissant“ gesperrt */
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand-mark { display: block; width: auto; height: 54px; }
.brand-text { display: flex; flex-direction: column; gap: 3px; font-family: var(--logo); }
.brand-name { font-size: 27px; font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--espresso); }
.brand-sub { font-size: 11px; font-weight: 700; letter-spacing: .277em; margin-right: -.277em; padding-left: 2.5px; line-height: 1.2; text-transform: uppercase; color: var(--gold-dark); }

.nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(12px, 2.4vw, 24px); font-size: 16px; }
.nav nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--espresso); }
.nav nav a.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--espresso); color: #fff; font-weight: 600; transition: background .2s; }
.nav nav a.nav-cta:hover { background: #24170F; color: #fff; }

/* Sprachauswahl mit CSS-Flaggen, auch auf Systemen ohne Flaggen-Emoji. */
.language-switcher { position: relative; flex: none; }
.language-switcher summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 999px;
  color: var(--espresso); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary:hover, .language-switcher[open] summary { background: rgba(255,255,255,.65); }
.language-switcher[open] summary svg { transform: rotate(180deg); }
.language-switcher summary:focus-visible, .language-options a:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
.language-flag { display: inline-block; flex: none; width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(42,33,27,.16); }
.flag-fr { background: linear-gradient(to right, #002395 0 33.333%, #fff 33.333% 66.667%, #ed2939 66.667%); }
.flag-de { background: linear-gradient(#000 0 33.333%, #d00 33.333% 66.667%, #ffce00 66.667%); }
.flag-lb { background: var(--lux-stripes); }
.flag-en { background: #012169 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath d='M0 0 60 30M60 0 0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0 60 30M60 0 0 30' stroke='%23c8102e' stroke-width='2'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23c8102e' stroke-width='6'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.language-options {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px;
  margin: 0; padding: 6px; list-style: none; background: #fff; border: 0;
  border-radius: 16px; box-shadow: 0 12px 32px rgba(42,33,27,.15);
}
.nav nav .language-options a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav nav .language-options a:hover, .nav nav .language-options a[aria-current="page"] { background: var(--mint-soft); color: var(--espresso); }
.nav nav .language-options a[aria-current="page"] { font-weight: 700; }

/* Hero */
.hero { background: var(--mint); }
.hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center; gap: clamp(8px, 3vw, 40px);
  padding: clamp(8px, 2vw, 24px) clamp(16px, 4vw, 48px) clamp(32px, 4vw, 56px);
  min-height: min(calc(100vh - 92px), 820px);
}
.eyebrow { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--gold-dark); }
.hero h1 { font-family: var(--sans); font-size: clamp(17px, 1.6vw, 21px); font-weight: 400; line-height: 1.6; letter-spacing: 0; color: var(--muted); margin: 0 0 28px; max-width: 30em; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-art { position: relative; margin: 0; }
.hero-art img {
  display: block; width: 100%;
  /* Bildränder weich in den Hintergrund auslaufen lassen */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; text-decoration: none; font-weight: 600; font-size: 17px; padding: 0 26px; border-radius: 999px; transition: transform .15s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--espresso); color: #fff; }
.btn-primary:hover { background: #24170F; }
.btn-ghost { color: var(--espresso); border: 1.5px solid rgba(59, 42, 32, .35); }
.btn-ghost:hover { border-color: var(--espresso); }

/* Sections */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) clamp(16px, 4vw, 48px); }
.section-head { margin-bottom: 40px; }

.about { display: flex; flex-wrap: wrap; align-items: center; gap: 32px clamp(32px, 5vw, 64px); padding-top: clamp(64px, 9vw, 96px); }
.about-avatar { flex: none; width: 240px; height: 240px; border-radius: 50%; background: var(--mint); overflow: hidden; }
.about-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-text { flex: 1 1 420px; min-width: 0; }
.about-text h2 { margin-bottom: 18px; }
.about-text p { color: var(--muted); margin: 0 0 14px; max-width: 620px; }
.about-text p.eyebrow { color: var(--gold-dark); margin-bottom: 12px; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; gap: 10px; background: var(--mint-soft); border-radius: var(--radius); padding: 28px 24px; transition: transform .2s, background .2s; }
.card:hover { transform: translateY(-3px); background: var(--mint-2); }
.card .icon { display: block; width: auto; height: 48px; align-self: flex-start; margin-bottom: 6px; }
.card h3 { font-size: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.parcours { display: flex; flex-wrap: wrap; gap: 8px clamp(32px, 5vw, 64px); }
.parcours .section-head { flex: 1 1 280px; min-width: 0; }
.parcours-body { flex: 2 1 480px; min-width: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .when { font-weight: 700; font-size: 15px; color: var(--gold-dark); padding-top: 2px; }
.timeline h3 { font-size: 19px; margin-bottom: 2px; }
.timeline p { margin: 0; color: var(--muted); font-size: 16px; }
.vatel { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); background: var(--mint-soft); }
.vatel p { margin: 0; color: var(--muted); font-size: 16px; }
.vatel strong { color: var(--espresso); }
.vatel .lux-flag { flex: none; width: 36px; height: 24px; border-radius: 3px; }

.steps-section { padding-top: clamp(24px, 4vw, 48px); }
.steps-panel { background: var(--mint); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px); }
.steps-panel .section-head { text-align: center; margin-bottom: 44px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: var(--radius); padding: 28px 24px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.step-icon { display: block; width: auto; height: 56px; }
svg.step-icon { width: 56px; }
.step-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-dark); font-weight: 700; font-size: 15px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

.contact { padding-top: 16px; }
.contact-box { overflow: hidden; background: var(--espresso); color: #F4EBDD; border-radius: var(--radius-lg); }
.contact-box::after { content: ""; display: block; height: 10px; background: var(--lux-stripes); }
.contact-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 56px; padding: clamp(36px, 6vw, 64px); }
.contact-text { flex: 1 1 420px; min-width: 0; }
.contact-box h2 { color: #fff; margin-bottom: 14px; }
.contact-box .eyebrow { color: var(--gold-light); }
.contact-box p { margin: 0; max-width: 480px; color: #D9CCBB; }
.contact-actions { flex: none; display: flex; flex-direction: column; gap: 12px; }
.contact-box .btn { min-height: 56px; }
.contact-box .btn-primary { background: var(--gold-light); color: var(--espresso); font-weight: 700; }
.contact-box .btn-primary:hover { background: #ECB769; }
.btn-light { color: #fff; border: 1.5px solid rgba(244, 235, 221, .4); }
.btn-light:hover { border-color: #fff; }

/* Kontaktformular als Popup */
html:has(.contact-dialog[open]) { overflow: hidden; }
.contact-dialog {
  width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--ink);
  box-shadow: 0 24px 64px rgba(42, 33, 27, .28); overflow: auto;
}
.contact-dialog::backdrop { background: rgba(42, 33, 27, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.contact-dialog[open] { animation: dialog-in .22s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px 12px; background: #fff; }
.dialog-head h2 { font-size: 30px; }
.dialog-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--mint-soft); color: var(--espresso); cursor: pointer; }
.dialog-close:hover { background: var(--mint); }
.contact-form { display: flex; flex-direction: column; gap: 16px; padding: 0 28px 28px; }
.contact-form[hidden] { display: none; }
.dialog-intro { margin: 0 0 4px; color: var(--muted); font-size: 17px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 15px; font-weight: 600; color: var(--espresso); }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #CFD8D5; border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; font-size: 17px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--espresso); box-shadow: 0 0 0 3px rgba(217, 150, 63, .35); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.field-error { margin: 0; font-size: 14px; color: #B3261E; }
.field-error:empty { display: none; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 400; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--espresso); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid #F1C4C0; border-radius: 12px; background: #FDF1F0; color: #8C1D18; font-size: 15px; }
.form-status::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #B3261E; color: #fff; font-weight: 700; font-size: 13px; line-height: 1; }
.form-status[hidden] { display: none; }
.btn-submit { align-self: flex-start; border: 0; cursor: pointer; font-family: inherit; }
.btn-submit[disabled] { opacity: .6; cursor: progress; transform: none; }
.form-success { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 28px 36px; text-align: center; }
.form-success[hidden] { display: none; }
.form-success h3 { font-size: 24px; }
.form-success p { margin: 0 0 12px; color: var(--muted); }
.form-success .btn { border: 0; cursor: pointer; font-family: inherit; }
.success-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mint); color: var(--espresso); margin-bottom: 4px; }

.footer { max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 40px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.lux { display: inline-flex; align-items: center; gap: 8px; }
.lux-flag { display: inline-block; width: 24px; height: 16px; border-radius: 2px; background: var(--lux-stripes); box-shadow: 0 0 0 1px var(--line); }

/* Fester Termin-Button am unteren Rand, nur auf dem Handy */
.mobile-cta { display: none; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; text-align: center; padding-top: 16px; }
  .hero h1 { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
}

@media (max-width: 760px) {
  body { font-size: 17px; padding-bottom: 88px; }
  .nav { padding: 16px 16px 12px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .nav nav { margin-left: auto; gap: 8px; }
  .nav nav a.nav-cta { padding: 0 14px; }
  .nav nav .language-options a { display: flex; }
  .brand { gap: 10px; }
  .brand-mark { height: 42px; }
  .brand-name { font-size: 21px; }
  .brand-sub { font-size: 9px; letter-spacing: .233em; margin-right: -.233em; padding-left: 2px; }
  .about { flex-direction: column; text-align: center; }
  .about-avatar { width: 180px; height: 180px; }
  .about-text { flex-basis: auto; }
  .about-text p { margin-left: auto; margin-right: auto; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .vatel { align-items: flex-start; }
  .vatel .lux-flag { margin-top: 3px; }
  .contact-inner { padding: 32px 22px; }
  .contact-actions { width: 100%; }
  .contact-box .btn { width: 100%; padding: 0 18px; font-size: 16px; }
  .contact-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 20px; }
  .dialog-head { padding: 18px 18px 8px; }
  .dialog-head h2 { font-size: 26px; }
  .contact-form { padding: 0 18px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .btn-submit { align-self: stretch; }

  .mobile-cta {
    display: block; position: fixed; z-index: 20; left: 12px; right: 12px; bottom: 16px;
    padding: 8px; border-radius: 999px; background: #fff; box-shadow: 0 6px 24px rgba(42, 33, 27, .18);
    transition: opacity .25s, transform .25s;
  }
  .mobile-cta .btn { display: flex; width: 100%; min-height: 48px; font-weight: 700; }
  .mobile-cta.hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
