/* ------------------------------------------------------------------
   Malerbetrieb Schiffgens, Aachen — Demo
   Entwurfsrichtung: Traditionshaus. Gealtertes Papier als Grund,
   ein einziger Akzent (tiefes Tannengruen), viel Weissraum,
   Serifen-Display (Fraunces) gegen ruhige Grotesk (Inter).
   Schriften liegen lokal als woff2 im Site-Ordner (OFL).
------------------------------------------------------------------ */

@font-face { font-family: "Schiff Display"; src: url("display.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schiff Body"; src: url("body.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --paper:      #FBF7EF;
  --paper-2:    #F4EDE0;
  --paper-3:    #EBE1CE;
  --ink:        #1F1D19;
  --ink-2:      #423D34;
  --muted:      #6B6255;
  --line:       #DDD2BC;
  --line-soft:  #E8DFCC;
  --accent:     #2C4638;
  --accent-2:   #3D6350;
  --accent-ink: #22392D;
  --on-accent:  #F7F2E7;
  --tone:       #C9AE85;

  --display: "Schiff Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Schiff Body", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1140px;
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .num, .brand { font-family: var(--display); font-weight: 600; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }
.narrow { max-width: 720px; }

.kicker {
  hyphens: none; -webkit-hyphens: none;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.acc { color: var(--accent); }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 15px 26px; border-radius: var(--r);
  font-size: 16px; font-weight: 600; letter-spacing: 0.005em;
  text-decoration: none; border: 1px solid transparent;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.btn .ic { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 11px 18px; font-size: 14.5px; }
.btn-light { background: var(--paper); color: var(--accent-ink); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }

/* ── Demo-Banner (bei Live-Schaltung entfernen) ── */
.demo-banner {
  background: var(--accent-ink); color: var(--on-accent);
  text-align: center; padding: 8px 18px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  position: relative; z-index: 30;
}

/* ── Kopf ── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 247, 239, .93);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 26px; padding-top: 15px; padding-bottom: 15px; }
.brand {
  font-size: 20px; letter-spacing: -0.01em; line-height: 1.1;
  color: var(--ink); text-decoration: none; flex: none;
  font-variation-settings: "opsz" 30;
}
.brand .brand-sub {
  display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 3px;
}
.main-nav { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; font-weight: 500; }
.main-nav a { text-decoration: none; color: var(--ink-2); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.main-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Abschnitte ── */
.section { padding: clamp(66px, 9vw, 118px) 0; }
.section-alt { background: var(--paper-2); }
.head { max-width: 660px; margin-bottom: clamp(34px, 4.5vw, 56px); }
.head h2 { font-size: clamp(29px, 4vw, 45px); font-variation-settings: "opsz" 60; text-wrap: balance; }
.head p { margin-top: 18px; color: var(--ink-2); }

/* ── Hero ── */
.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 7vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 76px); align-items: center; }
.hero h1 {
  font-size: clamp(40px, 6.6vw, 78px);
  line-height: 1.0;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.hero h1 .zeile2 { display: block; color: var(--accent); }
.hero .lead { margin-top: 26px; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 34px;
  font-size: 14px; color: var(--muted);
}
.hero-meta strong { color: var(--ink); font-weight: 600; }
.hero-figure { position: relative; }
.hero-bild { position: relative; z-index: 0; }
.hero-bild img { width: 100%; border-radius: var(--r); }
.hero-bild::after {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 1px solid var(--line); border-radius: var(--r); z-index: -1;
}
.hero-figure figcaption {
  margin-top: 12px; font-size: 12px; color: var(--muted); letter-spacing: 0.03em;
}

/* ── Signature 1: die Jahreszahl ── */
.jahre { background: var(--paper-3); padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.jahre-in { text-align: center; }
.jahre-ueber { font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.jahre-num {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(122px, 25vw, 290px);
  line-height: 0.82; letter-spacing: -0.045em;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
  margin: 0;
}
.jahre-wort {
  font-family: var(--display); font-size: clamp(22px, 3.2vw, 38px);
  margin: 14px 0 0; font-variation-settings: "opsz" 60; letter-spacing: -0.01em;
}
.jahre-text { max-width: 610px; margin: 26px auto 0; color: var(--ink-2); }
.jahre-quelle { margin-top: 20px; font-size: 12.5px; color: var(--muted); }
.jahre-linie { display: flex; align-items: center; gap: 20px; max-width: 560px; margin: 0 auto 30px; }
.jahre-linie span { flex: 1; height: 1px; background: var(--line); }
.jahre-linie svg { width: 24px; height: 24px; color: var(--accent); flex: none; }

/* ── Leistungen ── */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
/* 8 Kacheln: 1, 2 oder 4 Spalten — so bleibt nie ein leeres Feld im Raster stehen. */
@media (min-width: 620px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc { background: var(--paper); padding: 30px 26px 32px; transition: background-color .25s ease; }
.section-alt .svc { background: var(--paper-2); }
.svc:hover { background: #fff; }
.section-alt .svc:hover { background: var(--paper); }
.svc-nr { font-family: var(--display); font-size: 13px; color: var(--accent); letter-spacing: 0.12em; display: block; margin-bottom: 14px; }
.svc h3 { font-size: 20px; font-variation-settings: "opsz" 40; hyphens: none; -webkit-hyphens: none; }
.svc p { margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.62; }
.svc.svc-cta { background: var(--accent); color: var(--on-accent); display: flex; flex-direction: column; justify-content: center; }
.svc.svc-cta:hover, .section-alt .svc.svc-cta:hover { background: var(--accent-ink); }
.svc.svc-cta .svc-nr { color: rgba(247, 242, 231, .6); }
.svc.svc-cta p { color: rgba(247, 242, 231, .82); }
.svc.svc-cta .svc-tel { display: inline-block; margin-top: 16px; font-family: var(--display); font-size: 23px; color: var(--on-accent); text-decoration: none; letter-spacing: -0.015em; font-variation-settings: "opsz" 60; }
.svc.svc-cta .svc-tel:hover { text-decoration: underline; text-underline-offset: 5px; }
.svc-note { margin-top: 26px; font-size: 14.5px; color: var(--muted); max-width: 620px; }

/* ── Signature 2: Farbtoene ── */
.toene { position: relative; overflow: hidden; transition: background-color .5s ease; }
.toene::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1100px 420px at 50% 8%, var(--tone), transparent 70%);
  opacity: 0; transition: opacity .5s ease; 
}
.toene.aktiv::before { opacity: .3; }
.toene > .container { position: relative; z-index: 1; }
.ton-reihe { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 8px; }
.ton {
  appearance: none; border: 0; background: transparent; padding: 0; margin: 0;
  cursor: pointer; text-align: left; font: inherit; color: inherit;
}
.ton-flaeche {
  display: block; aspect-ratio: 3 / 4; border-radius: var(--r);
  border: 1px solid rgba(31, 29, 25, .12);
  box-shadow: 0 1px 0 rgba(31, 29, 25, .04);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
}
.ton:hover .ton-flaeche, .ton:focus-visible .ton-flaeche {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(31, 29, 25, .14);
}
.ton:focus-visible { outline: none; }
.ton:focus-visible .ton-flaeche { border-color: var(--accent); }
.ton-name { display: block; margin-top: 12px; font-size: 13.5px; font-weight: 500; }
.ton-hex { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: 0.08em; }
.ton-note { margin-top: 30px; font-size: 14.5px; color: var(--muted); max-width: 640px; }

/* ── Einblicke ── */
.werk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.werk-breit { margin-top: 22px; }
figure { margin: 0; }
.werk img { width: 100%; border-radius: var(--r); }
.werk figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ── Betrieb ── */
.betrieb-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.betrieb-text p { color: var(--ink-2); }
.stern { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.stern-wert { font-family: var(--display); font-size: 34px; color: var(--accent); line-height: 1; font-variation-settings: "opsz" 60; }
.stern-txt { font-size: 14px; color: var(--muted); }
.bewertung-box { border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 24px; background: var(--paper); margin-bottom: 24px; }
.section-alt .bewertung-box { background: var(--paper-2); }
.fakten { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fakten li { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.fakten dt, .fakten .f-label { flex: 0 0 108px; color: var(--muted); font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 3px; }
.fakten .f-wert { flex: 1 1 200px; overflow-wrap: anywhere; }
.fakten a { color: var(--accent); text-decoration-color: var(--line); text-underline-offset: 3px; }

/* ── Kontakt ── */
.kontakt { background: var(--accent); color: var(--on-accent); padding: clamp(66px, 9vw, 116px) 0; }
.kontakt h2 { font-size: clamp(30px, 4.2vw, 48px); font-variation-settings: "opsz" 90; }
.kontakt .kicker { color: rgba(247, 242, 231, .62); }
.kontakt-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.kontakt p { color: rgba(247, 242, 231, .84); }
.kontakt-num {
  display: inline-block; margin: 22px 0 8px; font-family: var(--display);
  font-size: clamp(34px, 5vw, 56px); color: var(--on-accent); text-decoration: none;
  letter-spacing: -0.02em; font-variation-settings: "opsz" 120; line-height: 1.05;
}
.kontakt-num:hover { text-decoration: underline; text-underline-offset: 8px; }
.kontakt-liste { list-style: none; margin: 0; padding: 0; }
.kontakt-liste li { padding: 15px 0; border-bottom: 1px solid rgba(247, 242, 231, .2); font-size: 15.5px; }
.kontakt-liste li:first-child { border-top: 1px solid rgba(247, 242, 231, .2); }
.kontakt-liste .k-label { display: block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(247, 242, 231, .58); margin-bottom: 3px; }
.kontakt-liste a { color: var(--on-accent); text-decoration-color: rgba(247, 242, 231, .4); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ── Fuss ── */
.site-footer { background: var(--paper-3); padding: 34px 0; font-size: 13.5px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--ink-2); text-decoration-color: var(--line); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--accent); }

/* ── Mobiler Anruf-Knopf ── */
.sticky-call { display: none; }
@media (max-width: 760px) {
  .sticky-call {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 40; padding: 16px 18px; border-radius: var(--r);
    background: var(--accent); color: var(--on-accent);
    font-size: 16px; font-weight: 600; text-decoration: none;
    box-shadow: 0 10px 26px rgba(31, 29, 25, .28);
  }
  .sticky-call .ic { width: 18px; height: 18px; }
}

/* ── Unterseiten (Impressum/Datenschutz) ── */
.doc h1 { font-size: clamp(30px, 5vw, 44px); font-variation-settings: "opsz" 80; margin-bottom: 24px; }
.doc h2 { font-size: 20px; margin: 32px 0 10px; font-variation-settings: "opsz" 30; }
.doc p { color: var(--ink-2); }
.doc .hinweis { margin-top: 26px; padding: 18px 20px; background: var(--paper-2); border-left: 2px solid var(--accent); font-size: 14.5px; color: var(--muted); }
.doc .zurueck { display: inline-block; margin-top: 34px; color: var(--accent); }

/* ── Scroll-Reveal ── */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ── Mobil ── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 440px; margin: 4px auto 0; }
  .hero-bild::after { display: none; }
  .betrieb-grid, .kontakt-grid { grid-template-columns: 1fr; }
  .werk-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .main-nav { display: none; }
  .ton-reihe { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .werk-grid { grid-template-columns: 1fr; }
  body { font-size: 16.5px; }
  h1, h2, h3, p, li { overflow-wrap: break-word; }
  .kontakt { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 400px) {
  .hero-meta { gap: 10px 22px; font-size: 13.5px; }
  .fakten .f-label { flex: 0 0 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .ton:hover .ton-flaeche, .ton:focus-visible .ton-flaeche { transform: none; }
  .toene, .toene::before { transition: none; }
  .btn:hover { transform: none; }
}
