/* ============================================================
   GERD MÖCKL DACHDECKEREI — Augsburg — Design-Entwurf
   Palette: das echte Firmenblau aus dem Original-Logo, kombiniert
   mit warmem Ziegel-Terrakotta (Dachziegel, Backstein aus den
   echten Baustellenfotos). Bewusst kräftig/sachlich statt elegant-
   verspielt — passt zum Handwerksbetrieb, nicht zur Gastro-Optik.
   ============================================================ */
:root {
  --ink:         #14203A;
  --ink-2:       #1F2E4D;
  --ink-3:       #5C6779;
  --paper:       #F5F6F8;
  --paper-2:     #EAEDF2;
  --line:        #DBE0E8;
  --blue:        #1B4C8C;
  --blue-dk:     #123566;
  --terracotta:  #B2502E;
  --terracotta-dk: #8C3C21;
  --white:       #FFFFFF;

  --display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --t-xs: .75rem; --t-sm: .875rem; --t-base: 1rem; --t-lg: 1.125rem;
  --t-xl: 1.375rem; --t-2xl: 1.75rem; --t-3xl: 2.4rem; --t-4xl: clamp(2.2rem, 5.6vw, 3.9rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px;
  --s8: 32px; --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px;

  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-full: 999px;

  --sh-sm: 0 1px 2px rgba(20,32,58,.08), 0 2px 8px rgba(20,32,58,.06);
  --sh-md: 0 6px 20px rgba(20,32,58,.14);
  --sh-lg: 0 22px 55px rgba(20,32,58,.26);

  --ease: cubic-bezier(.22,.61,.36,1);
  --bar-h: 74px;
}

:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 8px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-base); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(760px, 92vw); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.eyebrow { font-size: var(--t-xs); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); margin: 0 0 var(--s4); display: block; }
.eyebrow.center { text-align: center; }

/* ============================================================ Buttons */
.btn {
  --bg: var(--terracotta); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 15px 30px; border: 1px solid var(--bg); border-radius: var(--r-md);
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: var(--t-sm); font-weight: 700; letter-spacing: .03em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); background: var(--terracotta-dk); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--blue { --bg: var(--blue); --fg: #fff; border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-dk); border-color: var(--blue-dk); }

/* ============================================================ Header */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.hdr__in { display: flex; align-items: center; gap: var(--s8); width: min(1200px, 92vw); margin-inline: auto; }
.hdr.is-stuck { background: rgba(245,246,248,.95); backdrop-filter: blur(14px) saturate(1.2); box-shadow: var(--sh-sm); }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: #fff; line-height: 1.15; }
.logo img { width: 36px; height: auto; border-radius: 4px; }
.logo b { font-family: var(--display); font-size: 1.15rem; font-weight: 800; display: block; }
.logo i { font-style: normal; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); display: block; }
.hdr.is-stuck .logo { color: var(--ink); }
.hdr.is-stuck .logo i { color: var(--ink-3); }

.nav { display: flex; gap: var(--s8); align-items: center; }
.nav a { font-size: var(--t-sm); font-weight: 600; text-decoration: none; letter-spacing: .01em; position: relative; padding: 6px 0; color: inherit; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--terracotta); transition: right .3s var(--ease); }
.nav a:hover::after { right: 0; }
.hdr:not(.is-stuck) .nav { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hdr.is-stuck .nav { color: var(--ink); }

.burger { display: none; width: 44px; height: 44px; margin-left: var(--s2); border: 0; background: transparent; color: inherit; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================ Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,22,40,.92) 0%, rgba(15,22,40,.66) 45%, rgba(15,22,40,.22) 80%),
    linear-gradient(180deg, rgba(15,22,40,.5) 0%, rgba(15,22,40,.08) 28%, rgba(15,22,40,.55) 78%, rgba(15,22,40,.92) 100%);
}
.hero__in { padding: calc(var(--bar-h) + var(--s16)) 0 var(--s20); color: #fff; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 18px; font-size: .8rem; font-weight: 600; margin-bottom: var(--s6); letter-spacing: .03em; }
.hero h1 { font-size: var(--t-4xl); font-weight: 800; letter-spacing: -.015em; line-height: 1.06; margin: 0 0 var(--s6); text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero h1 em { font-style: normal; color: #F0A878; }
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.2rem); max-width: 50ch; color: rgba(255,255,255,.88); margin-bottom: var(--s8); text-shadow: 0 1px 16px rgba(0,0,0,.4); font-weight: 400; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ============================================================ Trust */
.trust { background: var(--ink); color: var(--paper); padding: var(--s6) 0; border-top: 1px solid rgba(245,246,248,.08); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); text-align: center; }
.trust__item b { display: block; font-family: var(--display); font-size: var(--t-lg); font-weight: 800; color: #F0A878; margin-bottom: 2px; }
.trust__item span { font-size: var(--t-xs); letter-spacing: .03em; color: rgba(245,246,248,.72); }

/* ============================================================ Abschnitte */
.sec { padding: var(--s24) 0; position: relative; }
.sec--paper { background: var(--paper-2); }
.sec--dark { background: var(--ink); color: var(--paper); }
.sec__head { max-width: 68ch; margin-bottom: var(--s12); }
.sec__head.center { margin-inline: auto; text-align: center; }
.sec h2 { font-size: var(--t-3xl); margin-bottom: var(--s3); }
.sec__sub { color: var(--ink-3); font-size: var(--t-lg); margin: 0; font-weight: 400; }
.sec--dark .sec__sub { color: rgba(245,246,248,.7); }

/* ============================================================ Leistungen-Grid */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.service:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--terracotta); }
.service__icon { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--paper-2); display: grid; place-items: center; color: var(--blue); margin-bottom: var(--s4); }
.service__icon svg { width: 22px; height: 22px; }
.service h3 { font-size: var(--t-lg); font-weight: 700; margin-bottom: var(--s2); }
.service p { font-size: var(--t-sm); color: var(--ink-3); margin: 0; line-height: 1.55; }

/* ============================================================ Story (Text + Foto) */
.story { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s16); align-items: center; }
.story--rev { grid-template-columns: .95fr 1.05fr; }
.story--rev .story__text { order: 2; }
.story__img { border-radius: var(--r-lg); box-shadow: var(--sh-lg); width: 100%; aspect-ratio: 1280/826; object-fit: cover; }
.story p { color: var(--ink-2); font-weight: 400; }
.sec--dark .story p { color: rgba(245,246,248,.82); }
.story__strip { border-radius: var(--r-md); box-shadow: var(--sh-sm); width: 100%; margin-top: var(--s4); }

/* ============================================================ Referenzen-Streifen */
.refgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); }
.refcard img { border-radius: var(--r-md); box-shadow: var(--sh-sm); width: 100%; margin-bottom: var(--s4); }
.refcard h3 { font-size: var(--t-xl); margin-bottom: var(--s2); }
.refcard p { color: var(--ink-3); font-size: var(--t-sm); }

/* ============================================================ Materialpartner */
.partners { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }
.partner-pill { border: 1px solid var(--line); background: var(--white); border-radius: var(--r-full); padding: 10px 20px; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }

/* ============================================================ Standort */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s16); }
.cinfo { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.cinfo li { display: flex; gap: var(--s3); align-items: flex-start; }
.cinfo svg { width: 19px; height: 19px; color: var(--terracotta); flex: none; margin-top: 3px; }
.cinfo a { text-decoration: none; border-bottom: 1px solid var(--line); }
.cinfo a:hover { border-color: var(--terracotta); }
.cinfo small { display: block; color: var(--ink-3); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; }

.map-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); position: relative; aspect-ratio: 4/3; background: var(--ink); display: grid; place-items: center; }
.map-card__cta { text-align: center; color: #fff; padding: var(--s8); }
.map-card__cta b { font-family: var(--display); font-size: var(--t-xl); display: block; margin-bottom: var(--s2); }

/* ============================================================ Pitch-Banner */
.pitch { position: fixed; inset: auto 0 0 0; z-index: 95; background: var(--ink); color: var(--paper); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: var(--s3); font-size: var(--t-xs); text-align: center; box-shadow: 0 -6px 24px rgba(20,32,58,.22); border-top: 1px solid rgba(245,246,248,.14); }
.pitch b { color: #F0A878; }

/* ============================================================ Footer */
.ft { background: var(--ink); color: rgba(245,246,248,.6); padding: var(--s16) 0 calc(var(--s8) + 56px); font-size: var(--t-sm); }
.ft__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s12); margin-bottom: var(--s12); }
.ft h4 { color: var(--paper); font-family: var(--display); font-size: var(--t-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 var(--s4); }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.ft a { text-decoration: none; }
.ft a:hover { color: #F0A878; }
.ft__logo { font-family: var(--display); font-size: 1.4rem; color: var(--paper); font-weight: 800; margin-bottom: var(--s2); }
.ft__btm { border-top: 1px solid rgba(245,246,248,.12); padding-top: var(--s6); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: var(--t-xs); }

/* ============================================================ Einblenden */
.rise { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } }

/* ============================================================ Rechtstexte */
.legal-hdr { padding: var(--s6) 0; border-bottom: 1px solid var(--line); background: var(--ink); }
.legal-hdr .wrap { display: flex; align-items: center; justify-content: space-between; }
.legal-back { font-size: var(--t-sm); font-weight: 600; color: rgba(245,246,248,.7); text-decoration: none; }
.legal-back:hover { color: #fff; }
.legal { padding: var(--s16) 0 var(--s24); }
.legal h1 { font-size: var(--t-3xl); margin-bottom: var(--s8); }
.legal h2 { font-size: var(--t-xl); margin: var(--s12) 0 var(--s3); color: var(--ink-2); }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal .legal__note { font-size: var(--t-sm); font-style: italic; color: var(--ink-3); background: var(--paper-2); border-radius: var(--r-md); padding: var(--s4); margin-top: var(--s12); }

/* ============================================================ Responsiv */
@media (max-width: 980px) {
  :root { --s24: 68px; --s20: 56px; --s16: 44px; }
  .story, .story--rev { grid-template-columns: 1fr; gap: var(--s8); }
  .story--rev .story__text { order: 0; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s4); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .refgrid { grid-template-columns: 1fr; gap: var(--s12); }
  .contact { grid-template-columns: 1fr; gap: var(--s12); }
  .ft__grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .burger { display: flex; }
  #nav {
    position: fixed; inset: calc(var(--bar-h) + env(safe-area-inset-top)) 0 auto 0; z-index: 89;
    flex-direction: column; gap: 0; margin: 0;
    padding: var(--s2) var(--s6) calc(var(--s6) + env(safe-area-inset-bottom));
    background: rgba(245,246,248,.98); backdrop-filter: blur(16px);
    box-shadow: var(--sh-lg); border-top: 1px solid var(--line);
    color: var(--ink);
    transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .25s var(--ease), opacity .2s var(--ease), visibility 0s linear .25s;
  }
  #nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; transition: transform .25s var(--ease), opacity .2s var(--ease), visibility 0s; }
  #nav a { font-size: var(--t-lg); padding: 15px 2px; border-bottom: 1px solid var(--line); }
  #nav a::after { display: none; }
}
@media (max-width: 640px) {
  :root { --t-3xl: 1.85rem; --bar-h: 64px; }
  body { padding-bottom: 54px; }
  .logo i { display: none; }
  .logo b { font-size: 1rem; }
  .hdr__in > .btn { padding: 12px 16px; font-size: 11px; }
  .hero { min-height: 92svh; }
  .hero__cta .btn { flex: 1; }
  .services { grid-template-columns: 1fr; }
  .ft__grid { grid-template-columns: 1fr; gap: var(--s8); }
  .cinfo a, .ft ul a { display: inline-block; padding: 8px 0; }
  .pitch { font-size: 11px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .trust__grid { grid-template-columns: 1fr 1fr; }
}
