/* ==========================================================================
   Optik Federleicht – Design-Tokens
   ========================================================================== */
:root {
  --bg:            #f7f4ee;
  --bg-band:       #f2eee4;
  --bg-card:       #fdfbf6;
  --bg-input:      #ffffff;

  --ink:           #24241f;
  --ink-muted:     #55524a;
  --ink-soft:      #6d6a5e;
  --ink-eyebrow:   #8a8570;
  --ink-num:       #a09a84;

  --line:          #e7e2d5;
  --line-card:     #eae5d8;
  --line-input:    #d8d2c2;
  --line-ghost:    #c9c3b1;

  --accent:        #4c5a42;
  --accent-deep:   #3a4531;
  --accent-mid:    #5f6f52;

  --dark:          #2c3226;
  --on-dark:       #f2efe6;
  --on-dark-muted: #cfccbd;
  --on-dark-soft:  #a7b096;
  --on-dark-hi:    #c9d3b8;
  --line-dark:     #6c755d;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap:    1160px;
  --gutter:  clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

/* Der Sticky-Header darf Sprungziele nicht verdecken. */
[id] { scroll-margin-top: 88px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent-mid); outline-offset: 2px; }
::selection { background: #dde3d3; }

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

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

.muted { color: var(--ink-muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent-deep);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: var(--bg); }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-eyebrow);
  margin: 0;
}
.eyebrow--light { color: var(--on-dark-soft); }

.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.wordmark--sm { font-size: 22px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--sm { font-size: 15px; padding: 14px 26px; }
.btn--block { width: 100%; }

.btn--solid { background: var(--accent-deep); color: var(--bg); }
.btn--solid:hover { background: var(--accent-mid); color: var(--bg); }

.btn--ghost { border-color: var(--line-ghost); color: var(--ink); font-weight: 400; }
.btn--ghost:hover { border-color: var(--accent-mid); color: var(--accent-mid); }

.btn--light { background: var(--on-dark); color: var(--dark); font-size: 15px; padding: 14px 26px; }
.btn--light:hover { background: var(--on-dark-hi); color: var(--dark); }

.btn--outline-light { border-color: var(--line-dark); color: var(--on-dark); font-size: 15px; font-weight: 400; padding: 14px 26px; }
.btn--outline-light:hover { border-color: var(--on-dark-hi); color: var(--on-dark-hi); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.btn-menu {
  background: none;
  border: 1px solid var(--line-input);
  border-radius: 999px;
  padding: 10px 18px;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__links { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); }
.nav__links a { font-size: 15px; color: var(--ink); }
.nav__links a:hover { color: var(--accent-mid); }

.btn-menu { display: none; }

/* ==========================================================================
   Mobiles Vollbildmenü
   ========================================================================== */
.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 20px clamp(20px, 6vw, 40px) 40px;
}
.menu[hidden] { display: none; }

.menu__bar { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.menu__bar .btn-menu { display: inline-flex; align-items: center; }

.menu__links { display: flex; flex-direction: column; gap: 8px; margin-top: 48px; }
.menu__links a {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
}

.menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.menu__address { text-align: center; font-size: 14px; color: var(--ink-soft); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: clamp(48px, 9vw, 110px);
  padding-bottom: clamp(56px, 8vw, 96px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__text  { flex: 1 1 460px; min-width: 0; }
.hero__media { flex: 1 1 380px; min-width: 0; }

.hero h1 {
  font-size: clamp(42px, 6.5vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 28px 0 0;
}

/* ==========================================================================
   Bilder
   Das Seitenverhältnis kommt pro Bild über --slot-ratio aus dem HTML, damit
   der Platz schon vor dem Laden steht und nichts nachspringt.
   ========================================================================== */
.image-slot {
  width: 100%;
  /* Ohne height:auto gäbe das height-Attribut des <img> eine feste Höhe vor
     und aspect-ratio bliebe wirkungslos. */
  height: auto;
  aspect-ratio: var(--slot-ratio, 3 / 2);
  border-radius: 18px;
  background: var(--bg-band);
  object-fit: cover;
}
.image-slot--sm { border-radius: 14px; }

/* ==========================================================================
   USP-Band
   ========================================================================== */
.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-band);
}
.usp {
  padding-block: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.usp__item { display: flex; flex-direction: column; gap: 10px; }
.usp__item h2 { font-size: 26px; font-weight: 600; }
.usp__item p { font-size: 15px; line-height: 1.6; color: var(--ink-muted); margin: 0; }

/* ==========================================================================
   Sektionen
   ========================================================================== */
.section { padding-top: var(--section); }

.section__head { max-width: 620px; }
.section__head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.section__head--split > div { max-width: 620px; }

.section__title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  margin-top: 16px;
}
.section__aside {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 40ch;
  margin: 0;
}

.prose {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 54ch;
  margin: 24px 0 0;
}
.prose + .prose { margin-top: 16px; }
.prose--narrow { max-width: 46ch; }

/* Leistungen */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: clamp(36px, 5vw, 56px);
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: 16px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card__num { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink-num); }
.card h3 { font-size: 26px; font-weight: 600; }
.card p { font-size: 15px; line-height: 1.6; color: var(--ink-muted); margin: 0; }

/* Über uns */
.about {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about__media { flex: 1 1 340px; min-width: 0; }
.about__text  { flex: 1 1 420px; min-width: 0; }

/* Brillen */
.frames {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: clamp(36px, 5vw, 56px);
}
.frame { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.frame figcaption { font-family: var(--serif); font-size: 22px; font-weight: 600; }

/* ==========================================================================
   Standort
   ========================================================================== */
.location {
  background: var(--dark);
  color: var(--on-dark);
  margin-top: var(--section);
}
.location__inner {
  padding-block: clamp(56px, 8vw, 96px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 88px);
}
.location__main { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.location__main .section__title { margin-top: 0; font-size: clamp(32px, 4vw, 46px); }
.location__main .btn-row { margin-top: 0; }

.location__address { font-size: 17px; line-height: 1.7; margin: 0; }

.location__phone {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  color: var(--on-dark);
}
.location__phone:hover { color: var(--on-dark-hi); }

.location__map {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 14px;
  /* Solange die Kacheln laden, würde sonst das dunkle Band durchscheinen. */
  background: var(--bg-band);
  filter: grayscale(0.4);
}


.location__hours { flex: 1 1 340px; min-width: 0; }
.location__hours h3 { margin: 0 0 20px; }

.hours { margin: 0; display: flex; flex-direction: column; }
.hours__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(242, 239, 230, 0.14);
  color: var(--on-dark-muted);
}
.hours__row dt, .hours__row dd { margin: 0; font-size: 16px; }
.hours__row dd { display: inline-flex; align-items: center; gap: 10px; }

.hours__row.is-today { color: var(--on-dark); font-weight: 600; }
.hours__row.is-today dd::before {
  content: 'Heute';
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--on-dark-hi);
  color: var(--dark);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact {
  padding-bottom: var(--section);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 88px);
}
.contact__text { flex: 1 1 340px; min-width: 0; }
.contact__form { flex: 1 1 400px; min-width: 0; }

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.6;
  font-style: normal;
  color: var(--ink);
}
.contact__phone { font-weight: 600; }
.contact__hours { color: var(--ink-muted); }
.contact .btn-row { margin-top: 28px; }

.form, .form-done {
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: 18px;
}
.form { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.form[hidden] { display: none; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }

.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line-input);
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  font-weight: 400;
  background: var(--bg-input);
  color: var(--ink);
}
.field input, .field select { min-height: 44px; }
.field textarea { resize: vertical; }
.field :is(input, textarea):user-invalid { border-color: #a4553f; }

.form__note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.form__note a { text-decoration: underline; text-underline-offset: 2px; }

.form__error { margin: 0; font-size: 14px; font-weight: 500; color: #a4553f; }
.form__error[hidden] { display: none; }

.form-done { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.form-done[hidden] { display: none; }
.form-done h3 { font-size: 28px; font-weight: 600; }
.form-done p { font-size: 15px; line-height: 1.6; color: var(--ink-muted); margin: 0; }
.form-done a { font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-band); }
.site-footer__inner {
  padding-block: clamp(40px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
}
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col:nth-child(1) { flex: 1 1 240px; }
.site-footer__col:nth-child(2) { flex: 1 1 200px; }
.site-footer__col:nth-child(3) { flex: 1 1 160px; }
.site-footer .muted { font-size: 14px; line-height: 1.7; }
.site-footer a.muted:hover { color: var(--ink); }
.site-footer__phone { font-size: 14px; font-weight: 600; }
.site-footer .eyebrow { letter-spacing: 0.14em; }

/* ==========================================================================
   Mobile Call-Bar
   ========================================================================== */
.callbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(44, 50, 38, 0.97);
  backdrop-filter: blur(8px);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.callbar a {
  flex: 1;
  min-height: 44px;
  padding: 13px 10px;
  border-radius: 999px;
  text-align: center;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.callbar__primary { background: var(--on-dark); color: var(--dark); font-weight: 600; }
.callbar__primary:hover { color: var(--dark); }
.callbar__secondary { border: 1px solid var(--line-dark); color: var(--on-dark); }
.callbar__secondary:hover { color: var(--on-dark); }

/* ==========================================================================
   Breakpoint – der Entwurf schaltet bei 800px auf die mobile Variante
   ========================================================================== */
@media (max-width: 799px) {
  .nav__links { display: none; }
  .btn-menu   { display: inline-flex; align-items: center; }
  .callbar    { display: flex; }

  /* Platz für die fixe Call-Bar am unteren Rand. */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

@media (min-width: 800px) {
  .menu { display: none; }
}

/* ==========================================================================
   Einblend-Animation
   ========================================================================== */
[data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(16px);
}
[data-reveal] {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal].is-hidden { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Honeypot: für Bots sichtbar, für Menschen und Screenreader nicht.
   Kein display:none - darauf sind die gängigen Spam-Skripte eingestellt. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Impressum und Datenschutz
   ========================================================================== */
.legal {
  max-width: 760px;
  padding-block: clamp(48px, 7vw, 88px);
}
.legal h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.1; }
.legal h2 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal p { line-height: 1.7; color: var(--ink-muted); margin: 14px 0 0; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal__lead { font-size: 18px; color: var(--ink); max-width: 58ch; margin-top: 24px; }

/* Offene Pflichtangaben sollen auffallen, solange sie nicht ausgefüllt sind. */
.legal mark.todo {
  display: block;
  background: #fdf3d3;
  border-left: 3px solid #c9a227;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  line-height: 1.6;
}
