/* Schriften lokal eingebunden (kein Abruf bei Google) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/cormorant-garamond.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("fonts/cormorant-garamond-italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/montserrat.woff2") format("woff2"); }

:root {
  --sand: #b8a894;
  --sand-light: #c9bcaa;
  --cream: #f8f5f1;
  --ink: #2a2622;
  --muted: #7a7168;
  --line: rgba(42, 38, 34, .14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--cream);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(980px, 100% - 40px); margin-inline: auto; }
section { padding: 110px 0; }
.label {
  display: block; text-align: center; margin-bottom: 14px;
  font-size: 11px; letter-spacing: .35em; text-transform: uppercase; color: var(--muted);
}
h1, h2 {
  font-family: var(--serif); font-weight: 300; text-align: center;
  font-size: clamp(34px, 5vw, 46px); letter-spacing: .04em; margin-bottom: 60px; line-height: 1.2;
}
.btn {
  display: inline-block; padding: 14px 34px;
  border: 1px solid currentColor;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.center { text-align: center; }

/* Navigation */
nav ul {
  display: flex; justify-content: center; gap: 40px; list-style: none;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #fff;
}
nav a { opacity: .8; transition: opacity .3s; padding-bottom: 4px; }
nav a:hover { opacity: 1; }
nav a[aria-current="page"] { opacity: 1; border-bottom: 1px solid #fff; }

/* Startseite */
.hero {
  min-height: 100vh; background: var(--sand-light); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 100px 20px 80px;
}
.hero img { width: min(380px, 75vw); }
.hero p { margin: 44px 0 40px; font-size: 12px; letter-spacing: .35em; text-transform: uppercase; }
.hero .btn { color: #fff; }
.hero .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Kopfleiste der Unterseiten: Logo links, Menü rechts */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--sand-light);
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 18px clamp(20px, 5vw, 64px);
  transition: background .4s, box-shadow .4s;
}
.topbar .logo img { height: 66px; width: auto; }
.topbar .logo { transition: opacity .4s; }

/* Startseite: über dem großen Logo durchsichtig, danach wie auf den Unterseiten */
.topbar.on-hero { position: fixed; left: 0; right: 0; background: transparent; }
.topbar.on-hero .logo { opacity: 0; pointer-events: none; }
.topbar.on-hero.scrolled { background: var(--sand-light); box-shadow: 0 1px 12px rgba(42, 38, 34, .08); }
.topbar.on-hero.scrolled .logo { opacity: 1; pointer-events: auto; }

/* Bild + Text nebeneinander (Über mich, Schulungen) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 25%; }
.split .label, .split h1, .split h2 { text-align: left; }
.split h1, .split h2 { margin-bottom: 28px; }
.split p { color: var(--muted); margin-bottom: 18px; }

/* Kontakt-Infos */
.info-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; text-align: center; margin-bottom: 30px; }
.info-grid h3 { font-size: 11px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--sand); margin-bottom: 8px; }
.info-grid p { font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.info-grid small { display: block; font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 6px; }
.btn-small { padding: 9px 12px; font-size: 10px; letter-spacing: .15em; margin-top: 12px; white-space: nowrap; }
#anfrage { scroll-margin-top: 140px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 90px auto; max-width: 620px; }

/* Willkommen */
.welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.welcome img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; }
.welcome .label, .welcome h2 { text-align: left; }
.welcome h2 { margin-bottom: 28px; }
.welcome p { color: var(--muted); margin-bottom: 18px; }

/* Willkommen: Bild im Hintergrund, milchiges Feld rechts davor */
.welcome-bg {
  position: relative; overflow: hidden; padding: 0;
  min-height: 820px; background: #ecebe8;
  display: flex; align-items: center; justify-content: flex-end;
}
.welcome-bg > img {
  position: absolute; left: 0; top: 0; width: 62%; height: 100%;
  object-fit: cover; object-position: center 20%;
  -webkit-mask-image: linear-gradient(to right, #000 65%, transparent);
  mask-image: linear-gradient(to right, #000 65%, transparent);
}
/* Milchglas über dem ganzen Bild: leichter Schleier über dem Gesicht, nach rechts immer milchiger */
.welcome-bg::before, .welcome-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.welcome-bg::before {
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.18) 0%, rgba(0,0,0,.35) 35%, #000 62%);
  mask-image: linear-gradient(to right, rgba(0,0,0,.18) 0%, rgba(0,0,0,.35) 35%, #000 62%);
}
.welcome-bg::after {
  background: linear-gradient(to right,
    rgba(248, 245, 241, .28) 0%,
    rgba(248, 245, 241, .38) 35%,
    rgba(248, 245, 241, .78) 58%,
    rgba(248, 245, 241, .92) 100%);
}
/* Variante ohne Milchglas: Bild läuft nur sanft in den Seitenhintergrund aus */
.welcome-bg.soft { background: var(--cream); }
.welcome-bg.soft::before, .welcome-bg.soft::after { display: none; }
.welcome-bg.soft > img {
  -webkit-mask-image: linear-gradient(to right, #000 35%, rgba(0,0,0,.75) 52%, rgba(0,0,0,.35) 70%, transparent 92%);
  mask-image: linear-gradient(to right, #000 35%, rgba(0,0,0,.75) 52%, rgba(0,0,0,.35) 70%, transparent 92%);
}
.glass {
  position: relative; z-index: 1;
  width: min(500px, 42%); margin: 80px clamp(20px, 7vw, 120px) 80px 0;
}
.glass .label, .glass h1 { text-align: left; }
.glass h1 { margin-bottom: 28px; }
.glass > p { color: var(--muted); margin-bottom: 18px; }
.script {
  font-family: var(--serif); font-style: italic; font-weight: 300; text-align: left;
  font-size: clamp(44px, 5vw, 66px); letter-spacing: .01em; line-height: 1.1;
  color: var(--ink); margin: 14px 0 30px;
}
.slogan-text { color: var(--muted); font-size: 16px; line-height: 1.9; max-width: 420px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Drei Gründe */
.reasons { list-style: none; margin-top: 30px; border-top: 1px solid var(--line); }
.reasons li { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.reasons .num { font-family: var(--serif); font-size: 30px; color: var(--sand); line-height: 1; min-width: 34px; }
.reasons h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; margin-bottom: 6px; }
.reasons p { font-size: 14px; margin: 0; }

button.btn { font: inherit; font-size: 11px; cursor: pointer; background: transparent; color: var(--ink); }
.btn-solid { background: var(--ink) !important; color: var(--cream) !important; border-color: var(--ink); }
.btn-solid:hover { background: var(--sand) !important; border-color: var(--sand); }

/* Kleines Anfrage-Fenster */
dialog {
  width: min(480px, 100% - 32px); max-height: calc(100% - 32px);
  margin: auto; padding: 48px 36px 40px; border: 0; overflow-y: auto;
  background: var(--cream); color: var(--ink);
}
dialog.wide { width: min(600px, 100% - 32px); }
dialog.wide form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
dialog.wide .field { gap: 12px; }
dialog::backdrop { background: rgba(42, 38, 34, .55); }
dialog h2 { margin-bottom: 34px; }
dialog form { grid-template-columns: minmax(0, 1fr); }
dialog .close {
  position: absolute; top: 12px; right: 16px; background: none; border: 0; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--muted);
}
dialog .close:hover { color: var(--ink); }

/* Preise */
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 80px; }
.group h3 {
  font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: .05em;
  padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.group h3 small { font-family: var(--sans); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--sand); margin-left: 10px; vertical-align: middle; }
.group .desc { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.row { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; }
.row span:last-child { white-space: nowrap; }
.hint { margin-top: 60px; text-align: center; font-size: 13px; color: var(--muted); }

/* Schulungen */
.intro { text-align: center; color: var(--muted); max-width: 540px; margin: -30px auto 50px; }
.courses { max-width: 680px; margin-inline: auto; }
.course { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.course:first-child { border-top: 1px solid var(--line); }
.course h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.course p { font-size: 13px; color: var(--muted); }
.course .price { font-family: var(--serif); font-size: 24px; white-space: nowrap; text-align: right; }
.course .price a { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); margin-top: 4px; }
.course .price a:hover { color: var(--ink); border-color: var(--ink); }
.courses-note { text-align: center; margin-top: 40px; font-size: 13px; color: var(--muted); }

/* Anfrage-Formular */
form { max-width: 620px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 28px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
label, .legend { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  width: 100%; min-width: 0; padding: 8px 0; outline: none; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
select {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237a7168'/%3E%3C/svg%3E") no-repeat right 4px center;
  padding-right: 22px; cursor: pointer;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices input { position: absolute; opacity: 0; pointer-events: none; width: auto; }
.choices label {
  border: 1px solid var(--line); padding: 9px 18px; cursor: pointer;
  font-size: 11px; letter-spacing: .15em; color: var(--ink); transition: .25s;
}
.choices input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.choices input:focus-visible + label { outline: 1px solid var(--ink); outline-offset: 2px; }
.submit { grid-column: 1 / -1; text-align: center; margin-top: 14px; }
.submit button {
  font: inherit; cursor: pointer; background: var(--ink); color: var(--cream);
  border: 1px solid var(--ink); padding: 16px 40px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; transition: .3s;
}
.submit button:hover { background: transparent; color: var(--ink); }
.submit small { display: block; margin-top: 18px; font-size: 12px; color: var(--muted); }
.error { grid-column: 1 / -1; text-align: center; font-size: 13px; color: #a0523d; }

footer {
  text-align: center; padding: 40px 20px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); border-top: 1px solid var(--line);
}
footer div { margin-top: 12px; }
footer a { margin: 0 12px; }
footer a:hover { color: var(--ink); }

@media (max-width: 760px) {
  section { padding: 80px 0; }
  nav ul { gap: 8px 18px; font-size: 10px; letter-spacing: .2em; flex-wrap: wrap; }
  .topbar { flex-direction: column; gap: 14px; padding: 18px 20px; }
  .topbar .logo img { height: 56px; }
  .welcome, .groups, .split { grid-template-columns: 1fr; gap: 44px; }
  .info-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .welcome-bg { display: block; min-height: 0; padding-top: 62vh; }
  .welcome-bg > img {
    width: 100%; height: 75vh;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
  }
  .welcome-bg::before, .welcome-bg::after { top: 0; bottom: auto; height: 75vh; }
  .welcome-bg::before {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.18) 0%, rgba(0,0,0,.35) 50%, #000 85%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.18) 0%, rgba(0,0,0,.35) 50%, #000 85%);
  }
  .welcome-bg::after {
    background: linear-gradient(to bottom, rgba(248, 245, 241, .28) 0%, rgba(248, 245, 241, .4) 50%, var(--cream) 100%);
  }
  .welcome-bg { background: var(--cream); }
  .welcome-bg.soft > img {
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, rgba(0,0,0,.6) 70%, transparent 98%);
    mask-image: linear-gradient(to bottom, #000 45%, rgba(0,0,0,.6) 70%, transparent 98%);
  }
  .glass { width: auto; margin: 0 20px 40px; }
  .info-grid > :last-child { grid-column: 1 / -1; }
  dialog { padding: 44px 22px 32px; }
  .course { flex-direction: column; align-items: flex-start; gap: 6px; }
  .course .price { text-align: left; }
  form { grid-template-columns: minmax(0, 1fr); }
}

/* Webdesign-Hinweis ganz unten */
.credit { margin-top: 22px; }
.credit a {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-size: 10px; letter-spacing: .25em; color: var(--muted); opacity: .75; transition: opacity .3s;
}
.credit a:hover { opacity: 1; color: var(--muted); }
.credit img { height: 22px; width: auto; border-radius: 4px; }

/* Fotos sanft einblenden statt ruckartig aufbauen */
.welcome-bg > img { opacity: 0; transition: opacity .9s ease; }
.welcome-bg > img.loaded { opacity: 1; }
