/* Wegerpixel – Stylesheet */

@font-face {
  font-family: "Encode Sans SC";
  font-style: normal; font-weight: 300; font-display: swap;
  src: url("fonts/encode-sans-semi-condensed-v10-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Encode Sans SC";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/encode-sans-semi-condensed-v10-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "PT Sans";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/pt-sans-v17-latin-regular.woff2") format("woff2");
}

:root {
  --bg: #0e0e10;
  --bg-2: #151518;
  --surface: #1c1c20;
  --text: #f2efea;
  --muted: #a7a39c;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ec2347;
  --accent-hover: #ff3d60;
  --radius: 4px;
  --wrap: 1240px;
  --head: "Encode Sans SC", "Arial Narrow", system-ui, sans-serif;
  --body: "PT Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.25rem); font-weight: 300; text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.klein { font-size: 0.9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.kicker {
  font-family: var(--head); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.8rem; color: var(--accent); margin-bottom: 0.8em;
}
.intro { color: var(--muted); max-width: 70ch; margin-bottom: 2rem; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 60ch; }
.sub { color: var(--muted); font-family: var(--head); letter-spacing: 0.05em; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-family: var(--head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.9rem;
  padding: 0.95em 1.6em; border-radius: var(--radius); border: 1px solid var(--accent);
  transition: background 0.2s, transform 0.2s; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.8rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.center .cta-row, .cta-row.center { justify-content: center; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: linear-gradient(rgba(14,14,16,0.85), rgba(14,14,16,0));
  transition: background 0.3s;
}
.site-header.scrolled { background: rgba(14,14,16,0.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 38px; width: auto; }
.hauptnav ul { list-style: none; display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); margin: 0; padding: 0; }
.hauptnav a:not(.btn) {
  text-decoration: none; font-family: var(--head); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.82rem; color: rgba(255,255,255,0.85); padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.hauptnav a:not(.btn):hover, .hauptnav a[aria-current="page"] { color: #fff; border-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .hauptnav {
    position: fixed; inset: 72px 0 auto 0; background: rgba(14,14,16,0.98);
    border-bottom: 1px solid var(--line); display: none;
  }
  .hauptnav.offen { display: block; }
  .hauptnav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; }
  .hauptnav li a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
  .hauptnav li .btn { margin-top: 16px; display: block; text-align: center; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero, .seitenkopf { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.seitenkopf { min-height: 86svh; }
.hero .kicker, .seitenkopf .kicker { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,16,0.35) 0%, rgba(14,14,16,0.15) 40%, rgba(14,14,16,0.92) 100%); }
.hero-inner { position: relative; padding-top: 120px; padding-bottom: clamp(48px, 9vh, 110px); width: 100%; }
.hero-inner h1 { text-shadow: 0 2px 30px rgba(0,0,0,0.4); }
.seitenkopf-schlicht { padding-top: 130px; }
.pt0 { padding-top: 0 !important; }

.crumbs { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 1rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Sektionen */
.sektion { padding: clamp(64px, 10vw, 120px) 0; }
.sektion-dunkel { background: var(--bg-2); }
.kat + .kat { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 80px); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.prosa p, .prosa li { color: #dcd8d2; }
.prosa ol { padding-left: 1.2em; }
.prosa li { margin-bottom: 0.5em; }
.prosa h2 { font-size: 1.4rem; margin-top: 2em; }
.sprung a { white-space: nowrap; }

/* Leistungskarten */
.karten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 2rem; }
@media (max-width: 1000px) { .karten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .karten { grid-template-columns: 1fr; } }
.karte { background: var(--surface); text-decoration: none; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s; }
.karte img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 0.6s; }
.karte:hover { transform: translateY(-4px); }
.karte:hover img { transform: scale(1.04); }
.karte-text { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.karte-text p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.mehr { color: var(--accent); font-family: var(--head); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }

/* Galerie (Masonry über CSS-Spalten) */
.galerie { columns: 3 320px; column-gap: 14px; margin-bottom: 2rem; }
.g-item { break-inside: avoid; margin: 0 0 14px; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.g-item a { display: block; }
.g-item img { width: 100%; transition: transform 0.6s, filter 0.3s; }
.g-item:hover img { transform: scale(1.03); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75)); font-size: 0.9rem;
  font-family: var(--head); letter-spacing: 0.04em; pointer-events: none;
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s;
}
.g-item:hover figcaption, .g-item:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .g-item figcaption { opacity: 1; transform: none; } }

/* Schritte */
.schritte { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
@media (max-width: 900px) { .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .schritte { grid-template-columns: 1fr; } }
.schritte li { counter-increment: s; border-top: 2px solid var(--accent); padding-top: 18px; }
.schritte li::before { content: "0" counter(s); font-family: var(--head); color: var(--accent); font-size: 0.85rem; letter-spacing: 0.15em; }
.schritte h3 { margin-top: 0.4em; }
.schritte p { color: var(--muted); }

/* Referenzen */
.refs { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(24px, 5vw, 64px); }
.refs img { height: 54px; width: auto; filter: grayscale(1) invert(1); mix-blend-mode: screen; opacity: 0.8; transition: opacity 0.2s; }
.refs img:hover { opacity: 1; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--head); font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #d6d2cc; padding-bottom: 12px; }

/* CTA */
.cta-band { padding: clamp(64px, 9vw, 110px) 0; background: radial-gradient(ellipse at center, rgba(236,35,71,0.18), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.cta-band p { color: #d6d2cc; }

/* Kontakt */
.kontakt-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .kontakt-grid { grid-template-columns: 1fr; } }
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.formular .voll { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) { .formular { grid-template-columns: 1fr; } }
.feld label { display: block; font-size: 0.9rem; margin-bottom: 6px; }
.feld input, .feld select, .feld textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
}
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--accent); }
.kontakt-box { background: var(--surface); padding: 28px; border-radius: var(--radius); }
.kontakt-box .gross { font-family: var(--head); font-size: 1.2rem; text-decoration: none; line-height: 2; }
.kontakt-box address { font-style: normal; color: var(--muted); margin-bottom: 1em; }
.kontakt-box img { margin-top: 1.2rem; border-radius: var(--radius); }

/* Footer */
.site-footer { background: #09090a; border-top: 1px solid var(--line); padding: 64px 0 24px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 170px; margin-bottom: 16px; }
.footer-h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 1em; }
.site-footer address { font-style: normal; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4em; }
.footer-links a, .site-footer address a { text-decoration: none; }
.footer-links a:hover, .site-footer address a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; color: var(--muted); font-size: 0.85rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,5,6,0.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; margin: 0 auto; }
.lightbox figcaption { margin-top: 12px; color: var(--muted); font-family: var(--head); letter-spacing: 0.04em; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 12px 18px; opacity: 0.8; }
.lightbox button:hover { opacity: 1; color: var(--accent); }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.hero-eis { object-position: 72% 50%; }

/* Sprachumschalter */
.lang-switch a {
  border: 1px solid rgba(255,255,255,0.35) !important; border-radius: var(--radius);
  padding: 4px 8px !important; font-size: 0.75rem !important; letter-spacing: 0.12em;
}
.lang-switch a:hover { border-color: var(--accent) !important; }
@media (max-width: 1000px) {
  .hauptnav li.lang-switch a { display: inline-block; margin-top: 14px; border-bottom: 1px solid rgba(255,255,255,0.35) !important; }
}
