/* Hoppen Innenausbau — eigene Marke in der Kiepenträger-Gruppe
   Eigen bleibt, was die Marke ausmacht: das Logo, das Rot #E00000 daraus,
   der ruhige Satz und die Pill-Buttons der alten Seite.
   Aus dem Gruppensystem (Fassung 3.0) kommen Schrift, Grund, Textfarben,
   Haarlinie und Seitenmaße — daran erkennt man die Zugehörigkeit.
   Die Schrift liegt lokal. Kein Aufruf an fonts.googleapis.com. */

/* Archivo, variabel (100–900, Breite 62–125 %). SIL Open Font License,
   Lizenztext in css/fonts/OFL.txt. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/web/content/38249/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/web/content/38248/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper:      #FFFFFF;   /* Fassung 3.0: Weiß als Grund, kein Papierton    */
  --white:      #FFFFFF;
  --ink:        #221E1A;   /* Überschriften, aus dem Gruppensystem  16,6 : 1  */
  --body:       #221E1A;   /* Fließtext trägt dieselbe Farbe                  */
  --body-dim:   #6B655C;   /* Fußzeile, Meta, Bildunterschrift       5,8 : 1  */
  --red:        #E00000;   /* Hoppen-Logo-Rot — die eigene Marke              */
  --red-deep:   #B00014;   /* Links und Kleintext, 7,4:1 auf Weiß             */
  --red-dark:   #6B0016;   /* Dunkelrot, CTA-Fläche                           */
  --line:       #D5D5D0;   /* Haarlinie aus dem Gruppensystem                 */
  --line-soft:  #EBEBE7;
  --font-sans:  "Archivo", "Helvetica Neue", Arial, sans-serif;
  --line-light: rgba(255, 255, 255, 0.22);
  --pill:       100px;
  --wrap:       75rem;   /* 1200 px, wie im Gruppensystem */
  --gut:        clamp(1.25rem, 4vw, 3rem);
}

*, *::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(--body);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5.6vw, 4.15rem); font-weight: 300; line-height: 1.06; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.85rem); font-weight: 400; line-height: 1.14; letter-spacing: -0.012em; }
h3 { font-size: clamp(1.125rem, 1.7vw, 1.4rem); font-weight: 500; line-height: 1.3; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

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

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.eyebrow {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; color: var(--red-deep); margin: 0 0 1rem;
}
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink); font-weight: 400; }
.muted { color: var(--body); }
.inline { font-weight: 500; }

/* Platzhalter für noch offene Angaben */
.placeholder {
  display: inline-block; border-bottom: 1.5px dashed var(--red);
  color: var(--red-deep); font-size: .92em; padding: 0 .2em;
  background: rgba(224, 0, 0, .05);
}

.preview-note {
  background: var(--ink); color: #F5F0EF; font-size: .82rem;
  padding: .6rem var(--gut); text-align: center; line-height: 1.5;
}
.preview-note strong { color: #fff; }

/* ---------------------------------------------------------------- Header */

.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 1px 20px rgba(0,0,0,.045); }

.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 5.25rem; }

.brand { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: clamp(115px, 13vw, 150px); height: auto; }
.brand-suffix {
  font-family: var(--font-sans); font-size: .82rem; font-weight: 400;
  color: var(--body-dim); letter-spacing: .01em; white-space: nowrap;
}
.brand-suffix::before { content: '| '; color: var(--red); font-weight: 500; }

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.85rem, 1.9vw, 1.9rem); }
.nav > *, .nav > a, .has-menu { flex: 0 0 auto; }
.nav > a, .has-menu > a {
  font-size: .97rem; color: var(--ink); text-decoration: none;
  padding: .4rem 0; white-space: nowrap;
}
.nav > a:hover, .has-menu > a:hover { color: var(--red-deep); }
.nav a[aria-current="page"] { color: var(--red-deep); box-shadow: inset 0 -1.5px 0 var(--red); }

.has-menu { position: relative; }
.has-menu > a::after { content: ' ⌄'; font-size: .8em; color: var(--body-dim); }
.submenu {
  position: absolute; top: calc(100% + .55rem); left: -1.25rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: .6rem; margin: 0;
  list-style: none; min-width: 17rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.09);
  opacity: 0; visibility: hidden; transform: translateY(-5px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu {
  opacity: 1; visibility: visible; transform: none;
}
.submenu a {
  display: block; padding: .55rem .85rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: .94rem;
}
.submenu a:hover { background: var(--paper); color: var(--red-deep); }

.nav-toggle {
  display: none; margin-left: auto;
  font: inherit; font-size: .92rem; color: var(--ink);
  background: none; border: 1px solid var(--line);
  border-radius: var(--pill); padding: .5rem 1.1rem; cursor: pointer;
}

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: .95rem; font-weight: 500;
  padding: .72rem 1.6rem; border-radius: var(--pill);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.btn-lg { padding: .95rem 2.1rem; font-size: 1rem; }
/* .nav > a ist spezifischer als .btn und würde das Padding überschreiben */
.nav > a.btn { padding: .68rem 1.5rem; }
.btn-oxide { background: var(--red); color: #fff; }
.btn-oxide:hover { background: var(--red-deep); color: #fff; }
.btn-ghost { border-color: var(--line-light); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-ink { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ink:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- Hero */

.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: min(84svh, 46rem); overflow: hidden;
  background: #2A2422;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Zwei Schleier: vertikal für die Gesamtstimmung, horizontal als Lesefläche links.
   Nötig, weil die Hero-Fotos teils sehr hell sind (Fenster, Weißdecken). */
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(18,14,13,.86) 0%, rgba(18,14,13,.66) 42%, rgba(18,14,13,.12) 78%),
    linear-gradient(180deg, rgba(18,14,13,.55) 0%, rgba(18,14,13,.30) 45%, rgba(18,14,13,.72) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.hero-inner .eyebrow { color: #fff; opacity: .9; }
.hero h1 { color: #fff; max-width: 44rem; text-shadow: 0 1px 24px rgba(0,0,0,.35); }
/* kein opacity - die zweite Zeile muss auf hellen Fotos genauso lesbar bleiben */
.hero h1 .oxide { display: block; color: #fff; font-weight: 500; }
.hero-sub {
  color: #F2ECEA; max-width: 34rem; margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem); line-height: 1.6;
  text-shadow: 0 1px 16px rgba(0,0,0,.4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* Ladechoreografie */
.anim { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.22,.7,.3,1) forwards; }
.hero-inner .anim:nth-child(1) { animation-delay: .05s; }
.hero-inner .anim:nth-child(2) { animation-delay: .14s; }
.hero-inner .anim:nth-child(3) { animation-delay: .23s; }
.hero-inner .anim:nth-child(4) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Sections */

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
/* Grund und Fläche sind beide weiß — die Abschnitte trennt darum eine
   Haarlinie, nicht mehr ein Farbwechsel. So macht es auch kiepentraeger.de. */
.s-plaster { background: var(--paper); border-top: 1px solid var(--line); }
.s-ink     { background: var(--white); }
.s-oxide + .s-plaster, .s-plaster:first-child { border-top: 0; }
.s-oxide   { background: var(--red-dark); color: #F6EDEE; }
.s-oxide h2, .s-oxide h3 { color: #fff; }
.s-oxide a { color: #fff; }
.s-oxide .placeholder { color: #fff; border-bottom-color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); }
.s-oxide .muted { color: #E8D7D9; }
/* .lead setzt sonst --ink und wäre auf Dunkelrot unlesbar */
.s-oxide .lead, .s-oxide p, .s-oxide li, .s-oxide label { color: #F6EDEE; }
.s-oxide strong { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }

.prose { max-width: 46rem; }
.prose h3 { margin: 2.5rem 0 .9rem; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose ol li { padding-left: .25rem; }

/* Leistungsliste */
.werk-list { border-top: 1px solid var(--line-soft); }
.werk-row {
  display: grid; grid-template-columns: 3rem 1fr 8.5rem;
  align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.1rem, 2.2vw, 1.7rem) 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none; color: inherit;
  transition: padding-inline .2s, background .2s;
}
.werk-row:hover { background: var(--white); padding-inline: 1.1rem; }
.werk-num {
  font-family: var(--font-sans); font-size: .92rem;
  color: var(--body-dim); font-variant-numeric: tabular-nums;
}
.werk-row:hover .werk-num { color: var(--red); }
.werk-title {
  display: block; font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem); font-weight: 400;
  color: var(--ink); line-height: 1.2; letter-spacing: -.01em;
}
.werk-row:hover .werk-title { color: var(--red-deep); }
.werk-desc { display: block; font-size: .95rem; color: var(--body); margin-top: .3rem; }
.werk-media { overflow: hidden; border-radius: 10px; aspect-ratio: 4/3; }
.werk-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.werk-row:hover .werk-media img { transform: scale(1.06); }

/* Übernahme-Band */
.takeover { background: var(--white); border-block: 1px solid var(--line-soft); }
.takeover-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: clamp(1.75rem, 5vw, 4.5rem); }

/* Statement */
.statement-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.statement-media { border-radius: 14px; overflow: hidden; }
.statement-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

.values { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.value { padding-top: 1.15rem; border-top: 1px solid var(--line); }
.value h3 { margin-bottom: .3rem; }
.value p { font-size: .95rem; color: var(--body); margin: 0; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }

/* Karten */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1rem; }
.card {
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 1.6rem;
  transition: border-color .18s, transform .18s;
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .95rem; margin: 0; }
a.card { text-decoration: none; }
a.card:hover { border-color: var(--red); transform: translateY(-2px); }
a.card:hover h3 { color: var(--red-deep); }
.s-ink .card { background: var(--paper); }
.s-oxide .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.s-oxide .card p { color: #E8D7D9; }

/* Tags */
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1.2rem; }
.tag {
  font-size: .88rem; padding: .38rem .9rem; border-radius: var(--pill);
  background: var(--white); border: 1px solid var(--line-soft); color: var(--ink);
}
.s-ink .tag { background: var(--paper); }

/* Tabelle */
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td {
  text-align: left; vertical-align: top; padding: .95rem 0;
  border-bottom: 1px solid var(--line-soft); font-weight: 400;
}
.facts th { width: 11rem; color: var(--ink); font-family: var(--font-sans); padding-right: 1.5rem; }
.s-oxide .facts th, .s-oxide .facts td { border-bottom-color: rgba(255,255,255,.18); }
.s-oxide .facts th { color: #fff; }

.contact-mail {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 300;
  color: #fff; text-decoration: none; letter-spacing: -.01em;
  border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: .15rem;
}
.contact-mail:hover { border-bottom-color: #fff; }

/* Formular */
label { display: block; font-size: .92rem; color: var(--ink); margin-bottom: .3rem; }
input, select, textarea {
  border-radius: 10px !important; border: 1px solid var(--line) !important;
  background: var(--white) !important;
}
input:focus, select:focus, textarea:focus { border-color: var(--red) !important; outline: none; }
input[type="checkbox"] { width: auto; }

/* ---------------------------------------------------------------- Footer */

.footer { background: var(--ink); color: #B9B2B0; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2.5rem; }
.footer h3 { color: #fff; font-size: 1rem; font-weight: 500; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .55rem; }
.footer a { color: #B9B2B0; text-decoration: none; font-size: .94rem; }
.footer a:hover { color: #fff; }
.footer .muted { color: #8E8785; font-size: .94rem; }
.footer .placeholder { color: #fff; border-bottom-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem; color: #8E8785;
}

/* ---------------------------------------------------------------- Reveal */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .anim { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 60rem) {
  .statement-grid, .takeover-grid { grid-template-columns: 1fr; }
  .statement-media img { aspect-ratio: 16/10; }
  .facts th { width: 8.5rem; }
}

@media (max-width: 52rem) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: .25rem; padding: 7rem var(--gut) 2.5rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .28s ease;
  }
  .nav.is-open { transform: none; }
  .nav > a, .has-menu > a {
    font-family: var(--font-sans); font-size: 1.5rem; font-weight: 400;
    padding: .55rem 0; width: 100%; border-bottom: 1px solid var(--line-soft);
  }
  .has-menu { width: 100%; }
  .has-menu > a::after { content: ''; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: none; padding: .4rem 0 .8rem;
    min-width: 0; border-radius: 0;
  }
  .submenu a { padding: .42rem 0; color: var(--body); }
  .nav .btn { margin: 1.5rem 0 0 !important; }
  .werk-row { grid-template-columns: 2rem 1fr; }
  .werk-media { display: none; }
}

@media (max-width: 34rem) {
  .brand-suffix { display: none; }
  .hero { min-height: min(76svh, 34rem); }
  .footer-bottom { flex-direction: column; }
}
