/* ============================================================
   Selvi Türksezer: Farben und Anpassungen über Melanies Grundgerüst
   Crème-Beige #F6F0E9 (Fläche), Soft Flieder #EDE5F3 (Akzent),
   dazu Weiss für Felder und ein dunkler Schriftton.
   ============================================================ */
:root {
  --bg: #F6F0E9;
  --bg-2: #EDE5F3;
  --flieder: #EDE5F3;
  --text: #2F2A31;
  --text-soft: #4A4350;
  --taupe-dark: #2F2A31;
  --taupe: rgba(47, 42, 49, 0.3);
  --champagne: #EDE5F3;
  --white: #ffffff;
  --line: rgba(47, 42, 49, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 18px 44px rgba(47, 42, 49, 0.07);
  --edge: rgba(47, 42, 49, 0.28);
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: var(--font-head);
}

html.i18n-pending main,
html.i18n-pending header { visibility: hidden; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: 0; }
h1 { font-size: clamp(38px, 3.9vw, 68px); }
h2 { font-size: clamp(30px, 3vw, 48px); }
h3 { font-size: clamp(23px, 1.8vw, 28px); font-weight: 600; }
h1 em, h2 em { font-style: italic; color: inherit; }

.page-background { background: var(--bg) !important; }
.page-background::before,
.page-background::after { display: none !important; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-body); }
.btn--primary {
  color: var(--text);
  background: var(--flieder);
  border: 1px solid var(--edge);
  box-shadow: 0 8px 22px rgba(47, 42, 49, 0.08);
}
.btn--primary:hover { color: var(--text); background: #E4D9EC; box-shadow: 0 12px 26px rgba(47, 42, 49, 0.12); }
.btn--glass { color: var(--text); background: #fff; border: 1px solid var(--edge); }
.btn--glass:hover { color: var(--text); background: var(--flieder); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Kopfzeile ---------- */
.site-header__inner { display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.brand__text { display: grid; }
.brand__name { font-family: var(--font-head); font-size: 24px; font-weight: 600; letter-spacing: 0.02em; }
.brand__sub { font-size: 12.5px; color: var(--text-soft); }
.nav { margin-inline: auto; }
.nav__panel { background: rgba(255, 255, 255, 0.6); border: 1px solid var(--glass-border); }
.nav__indicator { background: var(--flieder) !important; box-shadow: none !important; border: 0 !important; }
.nav__langs { display: none; }

/* ---------- Sprachauswahl ---------- */
.lang__globe { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; flex: none; }
.lang__flag { width: 22px; height: 16.5px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(47, 42, 49, 0.14); }
.lang--menu { position: relative; flex: none; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  color: var(--text); font: 600 13.5px var(--font-body); cursor: pointer;
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--glass-border); border-radius: 999px;
}
.lang__toggle:hover { background: var(--flieder); }
.lang__list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; display: none; min-width: 180px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(47, 42, 49, 0.14);
}
.lang--menu.is-open .lang__list { display: grid; gap: 2px; }
.lang__choice {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 6px 12px;
  color: var(--text); font: 500 14.5px var(--font-body); text-align: left; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 12px;
}
.lang__choice:hover { background: var(--bg); }
.lang__choice[aria-pressed="true"] { background: var(--flieder); border-color: var(--edge); font-weight: 600; }
.lang--row { display: flex; flex-wrap: wrap; gap: 8px; }
.lang--row .lang__choice { width: auto; background: #fff; border-color: var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; }
.lang--row .lang__choice[aria-pressed="true"] { background: var(--flieder); border-color: var(--edge); }

/* ---------- Startseite ---------- */
.home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: calc(100vh - 92px);
  max-width: 1760px;
  margin-inline: auto;
}
.home__photo { position: relative; min-height: 420px; }
.home__photo .photo {
  position: absolute; inset: 0; margin: 0; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none;
  background: linear-gradient(160deg, var(--flieder), #fff 55%, var(--flieder));
  -webkit-mask-image: linear-gradient(to right, #000 62%, transparent);
  mask-image: linear-gradient(to right, #000 62%, transparent);
}
.home__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 25%); }
.home__text { display: flex; flex-direction: column; justify-content: center; padding: 28px clamp(24px, 5vw, 96px) 40px clamp(20px, 2vw, 40px); }
.home__name { margin: 0; font-family: var(--font-head); font-size: clamp(26px, 2.2vw, 38px); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.home__role { margin: 4px 0 0; font-size: clamp(16px, 1.1vw, 19px); font-weight: 500; }
.home__claim { margin: 4px 0 0; color: var(--text-soft); font-family: var(--font-head); font-size: clamp(20px, 1.5vw, 26px); font-style: italic; }
.home__langs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 26px; }
.home__globe { display: inline-flex; }
.home h1 { margin: 0 0 14px; }
.home .lead { margin: 0 0 22px; max-width: 62ch; color: var(--text-soft); font-size: clamp(16.5px, 1.05vw, 19px); }
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 620px; margin: 0 0 26px; padding: 0; list-style: none; }
.benefits li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 15.5px; font-weight: 500; background: rgba(255, 255, 255, 0.65); border: 1px solid #fff; border-radius: 16px; }
.benefits li > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; flex: none; font-size: 17px; background: var(--flieder); border-radius: 50%; }
.home__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 620px; }
.home__actions .btn { justify-content: center; min-height: 62px; font-size: 16.5px; text-align: center; }

/* ---------- Platzhalter für Fotos ---------- */
.photo .placeholder { color: var(--text-soft); background: linear-gradient(160deg, var(--flieder), #fff 60%); }
.photo .placeholder small { opacity: 0.7; }
.photo:not(.is-missing) .placeholder { display: none; }
.photo.is-missing img { display: none; }
.home__photo .photo.is-missing .placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding-right: 30%; text-align: center; }
.home__photo .placeholder svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.2; }

/* ---------- Fragebogen ---------- */
.quiz { max-width: 860px; }
.quiz__badge {
  width: fit-content; margin: 0 auto 14px; padding: 5px 16px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em;
  background: var(--flieder); border: 1px solid var(--edge); border-radius: 999px;
}
.quiz-card { background: rgba(255, 255, 255, 0.62); }
.intro h1 { font-size: clamp(34px, 3.2vw, 52px); }
.intro__letter p:empty { display: none; }
.intro__facts li { background: var(--flieder); }
.progress__bar { height: 12px; background: #fff; border: 1px solid var(--edge); }
.progress__fill { background: var(--flieder); box-shadow: inset 0 0 0 1px rgba(47, 42, 49, 0.28); }
.progress__label { color: var(--text); font-size: 14px; }
.question__step { color: var(--text-soft); font-weight: 500; }
.question__title {
  font-family: var(--font-body); font-size: clamp(22px, 1.7vw, 28px); font-weight: 500; line-height: 1.3;
}
.question__msg { min-height: 1.5em; color: var(--text-soft); }
.option { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 4px 14px rgba(47, 42, 49, 0.04); min-height: 66px; font-size: 16px; }
.option:hover:not(:disabled) { background: #FBF8FD; }
.option[aria-pressed="true"], .option[aria-checked="true"] {
  background: var(--flieder); border-color: var(--text); box-shadow: 0 0 0 1px var(--text), 0 8px 20px rgba(47, 42, 49, 0.1);
}
.option__mark { border-color: var(--edge); background: #fff; }
.option--multi .option__mark { border-radius: 5px; }
.option[aria-pressed="true"] .option__mark { background: var(--text); border-color: var(--text); }
.option__img { background: var(--bg); color: var(--text); }

/* Freitext */
.options--text { display: block; }
.textanswer { position: relative; }
.textanswer__input {
  display: block; width: 100%; min-height: 150px; padding: 16px 18px 34px; color: var(--text); font: 400 16px/1.5 var(--font-body);
  resize: vertical; background: #fff; border: 1px solid var(--edge); border-radius: 18px;
}
.textanswer__input:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.textanswer__count { position: absolute; right: 16px; bottom: 10px; color: var(--text-soft); font-size: 13px; }

/* Fotos */
.photos__tips { background: var(--flieder); border-color: #fff; }
.upl-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.upl-grid:not(.upl-grid--four) { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.upl { background: #fff; border-color: var(--edge); }
.upl:hover, .upl:focus-within { background: #FBF8FD; }
.upl__icon { background: var(--flieder); border-color: #fff; }
.upl--filled { background: #fff; border-color: var(--edge); }
.upl__thumbwrap { display: block; width: 100%; }
.upl__nopreview { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 10px; font-size: 13px; background: var(--flieder); border-radius: 12px; }
.upl--add { cursor: default; gap: 8px; }
.upl__button { position: relative; width: 100%; min-height: 42px; padding: 8px 10px; justify-content: center; font-size: 13.5px; cursor: pointer; }
.upl__button:focus-within { outline: 2px solid var(--text); outline-offset: 2px; }

/* Kontakt */
.contact__names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.contact__prefilled { padding: 10px 14px; font-size: 14.5px; background: var(--flieder); border-radius: 12px; }
.contact__promise { background: var(--flieder); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], #contactValue { background: #fff; border-color: var(--edge); }
.field__error, .form-error { color: #7A2E3B; }
.consent input { accent-color: var(--text); }

/* Abschluss */
.success__icon { color: var(--text); background: var(--flieder); }
.cross { margin-top: 28px; padding: 24px; text-align: center; background: var(--flieder); border: 1px solid #fff; border-radius: 22px; }
.cross__title { margin: 0 0 14px; font-family: var(--font-head); font-size: clamp(22px, 1.8vw, 28px); font-weight: 500; line-height: 1.25; }

/* ---------- Über mich und Produkte ---------- */
.eyebrow { color: var(--text-soft); }
.about__aside .photo { background: linear-gradient(160deg, var(--flieder), #fff); }
.about__aside .photo.is-missing .placeholder { display: grid; place-content: center; justify-items: center; gap: 6px; min-height: 460px; text-align: center; }
.about__aside .placeholder svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.signature { font-family: var(--font-head); font-size: 28px; font-style: italic; }
.seal__icon, .info__icon, .chip { background: var(--flieder); }
.cycle__phase--anagen { background: var(--text) !important; }
.cycle__phase--katagen { background: rgba(47, 42, 49, 0.45) !important; }
.cycle__phase--telogen { background: var(--flieder) !important; }

/* ---------- Tablet und Handy ---------- */
@media (max-width: 1100px) {
  .nav { margin-inline: 0 0; margin-left: auto; }
  .nav__panel { background: #fff; }
  .nav__langs { display: flex; padding: 12px 6px 4px; }
  .site-header__inner { gap: 10px; }
}
@media (max-width: 900px) {
  .home { display: block; min-height: 0; }
  .home__photo { height: 62vw; min-height: 280px; max-height: 520px; }
  .home__photo .photo {
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
    mask-image: linear-gradient(to bottom, #000 62%, transparent);
  }
  .home__photo .photo.is-missing .placeholder { padding-right: 0; padding-bottom: 12%; }
  .home__text { padding: 8px 20px 36px; text-align: center; }
  .home__langs { justify-content: center; }
  .home .lead, .benefits, .home__actions { margin-inline: auto; }
  .benefits li { text-align: left; }
}
@media (max-width: 700px) {
  .upl-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__names { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
  .brand__name { font-size: 21px; }
  .lang__toggle { padding: 0 10px; }
}
@media (max-width: 480px) {
  .home__actions { grid-template-columns: 1fr; }
  .benefits li { padding: 10px; font-size: 14px; gap: 8px; }
  .benefits li > span:first-child { width: 30px; height: 30px; }
}

/* ---------- Korrekturen nach Prüfung im Browser ---------- */
.nav__panel .nav__langs { display: none; }
.brand__sub { text-transform: none; letter-spacing: 0; font-weight: 400; }
.home { min-height: 100vh; }
.home__text { padding-top: 110px; }
@media (max-width: 1100px) {
  .nav.is-open .nav__panel .nav__langs { display: flex; padding: 12px 6px 4px; }
}
@media (max-width: 900px) {
  .home { min-height: 0; }
  .home__text { padding-top: 8px; }
}
.site-header__inner { width: min(1560px, 100% - 32px); }
.quiz { width: min(920px, 100% - 32px); }
.placeholder { border: 0 !important; }
@media (max-width: 900px) {
  .home__langs .lang--row { justify-content: center; }
  .home__globe { width: 100%; justify-content: center; }
}
.brand {
  padding: 6px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.footer .brand { padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 1500px) { .site-header .brand__sub { display: none; } }
@media (max-width: 1100px) {
  .site-header .brand { padding: 6px 12px; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Neue Schriften und mittiges Menü ---------- */
:root {
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: var(--font-head);
}
h1 { font-size: clamp(34px, 3.3vw, 58px); line-height: 1.16; }
h2 { font-size: clamp(27px, 2.5vw, 42px); line-height: 1.2; }
h3 { font-size: clamp(20px, 1.5vw, 24px); font-weight: 500; }
.intro h1 { font-size: clamp(30px, 2.8vw, 46px); }
.brand__name { font-size: 21px; font-weight: 500; letter-spacing: 0.01em; }
.home__name { font-size: clamp(22px, 1.8vw, 31px); font-weight: 500; letter-spacing: 0.12em; }
.home__claim { font-size: clamp(18px, 1.25vw, 22px); }
.cross__title { font-size: clamp(20px, 1.5vw, 25px); }
.signature { font-size: 24px; }
body { font-size: 17.5px; }
@media (min-width: 1101px) {
  .site-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .site-header__inner > .brand { justify-self: start; }
  .site-header__inner > .nav { margin-inline: 0; justify-self: center; }
  .site-header__inner > .lang--menu { justify-self: end; }
}
@media (max-width: 700px) { .brand__name { font-size: 19px; } }

/* ---------- Startfoto: nicht größer als das Original (427 × 640) zeigen ---------- */
@media (min-width: 901px) {
  .home__photo { display: flex; align-items: center; justify-content: flex-end; }
  .home__photo .photo:not(.is-missing) {
    position: relative; inset: auto; height: auto; aspect-ratio: 427 / 640;
    width: min(100%, 500px, calc((100vh - 140px) * 427 / 640));
    background: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 72%, transparent), linear-gradient(to top, transparent, #000 14%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 9%, #000 72%, transparent), linear-gradient(to top, transparent, #000 14%);
    mask-composite: intersect;
  }
}
@media (max-width: 900px) {
  .home__photo .photo:not(.is-missing) {
    left: 0; right: 0; width: min(100%, 480px); margin-inline: auto; background: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, #000 62%, transparent), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-composite: intersect;
  }
}
@media (max-width: 900px) {
  .home__photo:has(.photo:not(.is-missing)) { height: calc(min(100vw, 480px) * 1.15 + 76px); max-height: none; }
  .home__photo .photo:not(.is-missing) { top: 76px; height: auto; }
  .home__photo .photo:not(.is-missing) img { object-position: 50% 5%; }
}

/* ---------- Gut lesbare Schrift überall (07.11.2026): DM Sans, keine Zier- und Kursivschrift ---------- */
:root {
  --font-head: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: var(--font-head);
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }
h1 { line-height: 1.15; }
h1 em, h2 em, .home__claim, .signature, .cross__title { font-style: normal; }
.home__claim { font-weight: 500; }
.signature { font-weight: 600; }
.brand__name { font-weight: 600; letter-spacing: 0; }
.home__name { font-weight: 600; letter-spacing: 0.06em; }

/* ---------- Startfoto mit Rahmen (07.11.2026): statt weichem Auslaufen ---------- */
.home__photo .photo:not(.is-missing) {
  -webkit-mask-image: none; mask-image: none;
  background: #fff;
  border: 8px solid #fff;
  border-radius: 34px;
  box-shadow: 0 26px 60px rgba(47, 42, 49, 0.16), 0 4px 14px rgba(47, 42, 49, 0.06);
  overflow: visible;
}
.home__photo .photo:not(.is-missing) img { border-radius: 26px; }
.home__photo { isolation: isolate; }
/* Versetzte Fläche in Flieder hinter dem Foto */
.home__photo .photo:not(.is-missing)::before {
  content: ""; position: absolute; z-index: -1; inset: -8px;
  transform: translate(22px, 22px);
  background: var(--flieder); border: 1px solid #fff; border-radius: 34px;
}
@media (min-width: 901px) {
  .home__photo { padding: 40px 56px 40px 24px; }
  .home__photo .photo:not(.is-missing) { width: min(100%, 470px, calc((100vh - 200px) * 427 / 640)); }
}
@media (max-width: 900px) {
  .home__photo:has(.photo:not(.is-missing)) { height: auto; padding: 92px 20px 44px; }
  .home__photo .photo:not(.is-missing) {
    position: relative; inset: auto; top: auto; width: min(100% - 22px, 400px); aspect-ratio: 427 / 640;
  }
  .home__photo .photo:not(.is-missing)::before { transform: translate(14px, 14px); }
}
