/* ============================================================================
   ATELIER EDUARD WEINBENDER — Feine Uhrmacherei, Augsburg
   Unbeauftragte Pitch-Demo von AEVUM. Ruhig, seriös, handwerklich. Bewusst
   KEIN "Startup-Modern" — großzügiger Weißraum, gedämpfte Bewegung, gesetzte
   Typografie statt lauter Flächen.

   Schriften: Playfair Display (Headlines) + Source Serif 4 (Fließtext) +
   Inter (UI/Nav, klein, Versal-Anmutung) — selbst gehostet, siehe fonts.css.
   ============================================================================ */

:root {
  /* Flächen & Tiefen */
  --ink:      #15130F;   /* Anthrazit-Schwarz Basis */
  --ink-2:    #1D1B15;
  --ink-3:    #2A2620;
  --paper:    #F3EEE2;   /* Creme/Off-White */
  --paper-2:  #EAE2D0;
  --white:    #FBF9F3;

  /* Akzente */
  --brass:    #B8934A;   /* Messing-Gold */
  --brass-lt: #D2B679;
  --brass-dk: #8F7038;
  --wine:     #5C1F26;   /* Bordeaux, sparsam */

  /* Text-Nebentöne */
  --mute:     #A69C89;   /* gedämpftes Grau-Beige */
  --mute-dk:  #6E6656;   /* dasselbe, dunkler für Fließtext auf Creme */
  --line:     rgba(184, 147, 74, .28);
  --line-dk:  rgba(21, 19, 15, .12);

  /* Typografie */
  --display: 'Playfair Display', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --serif:   'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --t-xs:   .75rem;
  --t-sm:   .875rem;
  --t-base: 1.0625rem;
  --t-lg:   1.25rem;
  --t-xl:   1.5rem;
  --t-2xl:  clamp(1.7rem, 2.6vw, 2.2rem);
  --t-3xl:  clamp(2.1rem, 4vw, 3.1rem);
  --t-4xl:  clamp(2.6rem, 7vw, 5.4rem);

  /* Raster */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
  --s20: 80px; --s24: 96px; --s32: 128px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: 420ms;

  --bar-h: 84px;
  --max: 1240px;
}

:root { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.no-js .rise { opacity: 1 !important; transform: none !important; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.18;
  margin: 0;
  letter-spacing: .002em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-dk);
}
section[data-tone="dark"] .eyebrow { color: var(--brass-lt); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s6);
}
@media (min-width: 900px) {
  .container { padding: 0 var(--s10); }
}

/* ─────────────────────────────────────────────── Scroll-Reveal */
.rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.rise.in { opacity: 1; transform: none; }
.rise-1.in { transition-delay: 80ms; }
.rise-2.in { transition-delay: 160ms; }
.rise-3.in { transition-delay: 240ms; }
.rise-4.in { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────────────────────────── Buttons / Links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border: 1px solid var(--brass);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.btn:hover, .btn:focus-visible { background: var(--brass); color: var(--white); }
.btn--on-dark { color: var(--paper); border-color: var(--brass-lt); }
.btn--on-dark:hover, .btn--on-dark:focus-visible { background: var(--brass-lt); color: var(--ink); }
.btn--solid { background: var(--brass); color: var(--white); }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--brass-dk); }

.link-u {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur) var(--ease-out);
}
.link-u:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ============================================================================
   HEADER / NAV
   ============================================================================ */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), height var(--dur) var(--ease-out);
}
.hdr::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.hdr.is-stuck { height: 68px; box-shadow: 0 8px 30px rgba(21,19,15,.16); }
.hdr.is-stuck::before { opacity: .96; }
.hdr-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hdr-mark {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: .01em;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}
.hdr-mark b { color: var(--brass-lt); font-weight: 600; }

.nav {
  display: none;
}
@media (min-width: 900px) {
  .nav { display: flex; gap: var(--s8); align-items: center; }
  .nav a {
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--mute);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  }
  .nav a:hover, .nav a.is-active { color: var(--paper); border-color: var(--brass); }
}

.burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  padding: 8px 0;
  background: none;
  border: 0;
  cursor: pointer;
}
@media (min-width: 900px) { .burger { display: none; } }
.burger span {
  height: 1px;
  background: var(--paper);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.hdr.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr.is-open .burger span:nth-child(2) { opacity: 0; }
.hdr.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--s6);
  padding: var(--s10) var(--s10);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s var(--dur);
}
.nav-mobile.is-open {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.nav-mobile a {
  font-family: var(--display);
  font-size: var(--t-2xl);
  color: var(--paper);
  text-decoration: none;
}
@media (min-width: 900px) { .nav-mobile { display: none; } }

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  background: var(--ink);
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21,19,15,.55) 0%, rgba(21,19,15,.28) 38%, rgba(21,19,15,.72) 100%),
    linear-gradient(90deg, rgba(21,19,15,.55) 0%, rgba(21,19,15,.05) 45%, rgba(21,19,15,.1) 100%);
}
.hero-body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--s24) var(--s6) var(--s16);
}
@media (min-width: 900px) {
  .hero-body { padding: var(--s24) var(--s10) var(--s20); }
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: var(--t-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-lt);
  margin: 0 0 var(--s6);
}
.hero h1 {
  font-size: var(--t-4xl);
  max-width: 16ch;
  color: var(--white);
}
.hero-manifest {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-xl);
  color: var(--paper-2);
  margin-top: var(--s6);
  max-width: 32ch;
}
.hero-cta {
  margin-top: var(--s8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: var(--s8);
  transform: translateX(-50%);
  z-index: 1;
  color: var(--paper-2);
  opacity: .8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
}
.hero-scroll span {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-scroll svg { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll svg { animation: none; }
}
/* Auf schmalen/kurzen Viewports kollidiert der Scroll-Hinweis mit den
   Hero-CTA-Buttons (Anrufen/Kontakt) — dort ausblenden, Scrollen ist auf
   Mobilgeräten ohnehin selbsterklärend. */
@media (max-width: 700px) {
  .hero-scroll { display: none; }
}

/* ============================================================================
   SECTION-GRUNDGERÜST
   ============================================================================ */
section { position: relative; }
.sect {
  padding: var(--s24) 0;
}
@media (min-width: 900px) { .sect { padding: var(--s32) 0; } }
[data-tone="dark"] { background: var(--ink); color: var(--paper); }
[data-tone="dark"] .mute { color: var(--mute); }
[data-tone="dark"] .section-note { color: var(--paper-2); }
[data-tone="light"] { background: var(--paper); color: var(--ink); }
[data-tone="alt"] { background: var(--paper-2); color: var(--ink); }
.mute { color: var(--mute-dk); }

.sect-head {
  max-width: 52ch;
  margin: 0 0 var(--s16);
}
.sect-head h2 {
  font-size: var(--t-3xl);
  margin-top: var(--s4);
}
.sect-kicker { font-family: var(--sans); }

.rule {
  width: 64px;
  height: 1px;
  background: var(--brass);
  border: 0;
  margin: var(--s6) 0;
}

.section-note {
  margin-top: var(--s10);
  font-family: var(--sans);
  font-size: var(--t-xs);
  color: var(--mute-dk);
}

/* ============================================================================
   PHILOSOPHIE
   ============================================================================ */
.phil-grid {
  display: grid;
  gap: var(--s16);
}
@media (min-width: 900px) {
  .phil-grid { grid-template-columns: 1fr 1fr; gap: var(--s24); align-items: start; }
}
.phil-text p {
  font-size: var(--t-lg);
  color: var(--ink-2);
}
.phil-text p + p { margin-top: 1.4em; }
.phil-text .drop {
  font-family: var(--display);
  font-size: 1.05em;
}

.trust-card {
  border: 1px solid var(--line-dk);
  background: var(--white);
  padding: var(--s10) var(--s8);
}
.trust-card h3 {
  font-size: var(--t-xl);
  margin: var(--s3) 0 var(--s4);
}
.trust-card p { color: var(--ink-2); }
.trust-list {
  margin: var(--s6) 0 0;
  padding-left: 1.1em;
  color: var(--mute-dk);
  font-family: var(--sans);
  font-size: var(--t-sm);
}
.trust-list li { margin-bottom: var(--s2); }
.trust-list li:last-child { margin-bottom: 0; }

/* ============================================================================
   LEISTUNGEN
   ============================================================================ */
.leist-grid {
  display: grid;
  gap: var(--s8);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .leist-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .leist-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  padding: var(--s10) var(--s8);
  background: var(--white);
  border: 1px solid var(--line-dk);
}
.service-icon {
  width: 44px; height: 44px;
  color: var(--brass);
  margin-bottom: var(--s6);
}
.service-card h3 { font-size: var(--t-lg); margin-bottom: var(--s3); }
.service-card p { color: var(--mute-dk); font-size: var(--t-sm); }
.service-card ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--mute-dk);
  font-size: var(--t-sm);
}
.service-card li { margin-bottom: var(--s2); }
.service-card li:last-child { margin-bottom: 0; }

/* ============================================================================
   ATELIER
   ============================================================================ */
.atelier-grid {
  display: grid;
  gap: var(--s8);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .atelier-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .atelier-grid { grid-template-columns: repeat(4, 1fr); }
}
.atelier-fig { margin: 0; }
.atelier-media {
  aspect-ratio: 5 / 6;
  overflow: hidden;
}
.atelier-media img { width: 100%; height: 100%; object-fit: cover; }
.atelier-fig figcaption {
  margin-top: var(--s4);
  font-family: var(--display);
  font-style: italic;
  font-size: var(--t-base);
  color: var(--paper-2);
}

/* ============================================================================
   KONTAKT
   ============================================================================ */
.contact-grid {
  display: grid;
  gap: var(--s16);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: var(--s24); }
}
.contact-info h2 { font-size: var(--t-3xl); }
.hours { margin-top: var(--s10); }
.hours dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s2) var(--s8);
  font-family: var(--sans);
  font-size: var(--t-sm);
  margin: var(--s3) 0 0;
}
.hours dt { color: var(--mute); letter-spacing: .04em; }
.hours dd { margin: 0; color: var(--paper-2); }
.contact-links { margin-top: var(--s10); display: flex; flex-direction: column; gap: var(--s3); }
.contact-links a { text-decoration: none; color: var(--paper-2); font-family: var(--sans); font-size: var(--t-sm); }

.map-wrap { display: flex; }
.map-consent {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--ink-3);
  padding: var(--s8);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s4);
  align-items: flex-start;
}
.map-consent p { color: var(--paper-2); font-size: var(--t-sm); }
.map-consent .btn { margin-top: var(--s2); }
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.ftr {
  background: var(--ink);
  color: var(--mute);
  padding: var(--s16) 0 var(--s10);
  font-family: var(--sans);
  font-size: var(--t-sm);
}
.ftr-top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s10);
  justify-content: space-between;
  padding-bottom: var(--s10);
  border-bottom: 1px solid rgba(243,238,226,.1);
}
.ftr-mark { font-family: var(--display); font-size: var(--t-xl); color: var(--paper); }
.ftr-links { display: flex; gap: var(--s8); flex-wrap: wrap; }
.ftr-links a { text-decoration: none; color: var(--mute); }
.ftr-links a:hover { color: var(--paper); }
.ftr-nav { display: flex; gap: var(--s6); flex-wrap: wrap; }
.ftr-nav a { text-decoration: none; color: var(--mute); font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; }
.ftr-nav a:hover { color: var(--paper); }

.ftr-concept {
  margin-top: var(--s10);
  padding: var(--s6) var(--s6);
  border: 1px dashed rgba(184,147,74,.45);
  background: rgba(184,147,74,.06);
  font-size: var(--t-xs);
  line-height: 1.7;
  color: var(--paper-2);
}
.ftr-concept strong { color: var(--brass-lt); }

.ftr-bottom {
  margin-top: var(--s8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  justify-content: space-between;
  font-size: var(--t-xs);
  color: var(--mute);
}

/* ============================================================================
   RECHTSTEXT-SEITEN (Impressum / Datenschutz)
   ============================================================================ */
.legal {
  padding: calc(var(--bar-h) + var(--s16)) 0 var(--s24);
  max-width: 74ch;
  margin: 0 auto;
}
.legal h1 { font-size: var(--t-3xl); margin-bottom: var(--s6); }
.legal h2 { font-size: var(--t-xl); margin: var(--s12) 0 var(--s4); }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal .notice {
  margin: var(--s10) 0;
  padding: var(--s6);
  border: 1px dashed var(--brass);
  background: var(--paper-2);
  font-family: var(--sans);
  font-size: var(--t-sm);
}
.legal a { color: var(--brass-dk); }
.legal-back {
  display: inline-block;
  margin-top: var(--s16);
  font-family: var(--sans);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brass-dk);
}

/* Rechtstext-Seiten haben keinen Hero im Hintergrund der festen Kopfzeile,
   deshalb dauerhaft dunkler Grund statt erst beim Scrollen (sonst helle
   Nav-Schrift auf hellem Creme-Hintergrund, kaum lesbar). */
body.legal-page .hdr::before { opacity: .96; }
body.legal-page .hdr { box-shadow: 0 8px 30px rgba(21,19,15,.16); }
