/* Schriften selbst gehostet (Exo 2, Inter; SIL Open Font License, siehe fonts/) */
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/exo-2-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/exo-2-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/exo-2-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/exo-2-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
[hidden] { display: none !important; }
:root {
  color-scheme: only light;
  --red: #e30613;
  --red-dark: #b8050f;
  --red-deep: #8f040b;
  --ink: #1d1d1f;
  --ink-2: #3a3a3e;
  --muted: #6b6b70;
  --bg: #ffffff;
  --bg-soft: #f6f4f2;
  --line: #e7e3df;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 29, 31, .08);
  --display: 'Exo 2', 'Segoe UI', Arial, sans-serif;
  --body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --header-h: 119px;
  --section-pad: clamp(70px, 9vw, 110px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font: 400 17px/1.65 var(--body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  font: 600 .8rem/1 var(--display);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--red); border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  font: 600 1rem/1 var(--display);
  color: #fff; background: var(--red);
  border: 2px solid var(--red);
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(227, 6, 19, .25); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.btn-sm { padding: 10px 18px; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand { display: block; cursor: pointer; }
.brand img { width: 242px; height: auto; cursor: pointer; user-select: none; -webkit-user-drag: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0; margin-right: -6px;
  border: 0; background: transparent; cursor: pointer; border-radius: 10px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.btn-call { white-space: nowrap; gap: 8px; }
.btn-call .btn-ico { width: 17px; height: 17px; flex: none; }
.nav a:not(.btn) { text-decoration: none; font: 500 1rem var(--display); color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--red); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(227, 6, 19, .07), transparent 45%),
    var(--bg-soft);
  padding: clamp(36px, 4.5vw, 60px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }
.hero h1 span { color: var(--red); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  transform: rotate(-4deg);
}
.wall span {
  grid-column: span 2;
  height: 54px;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--red), var(--red-dark));
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .12), 0 6px 14px rgba(143, 4, 11, .18);
  animation: lay .6s ease-out backwards;
}
.wall span.half { grid-column: span 1; background: linear-gradient(160deg, var(--red-dark), var(--red-deep)); }
.wall span:nth-child(2n) { background: linear-gradient(160deg, #d10512, var(--red-deep)); }
.wall span:nth-child(1)  { animation-delay: .05s } .wall span:nth-child(2)  { animation-delay: .1s }
.wall span:nth-child(3)  { animation-delay: .15s } .wall span:nth-child(4)  { animation-delay: .2s }
.wall span:nth-child(5)  { animation-delay: .25s } .wall span:nth-child(6)  { animation-delay: .3s }
.wall span:nth-child(7)  { animation-delay: .35s } .wall span:nth-child(8)  { animation-delay: .4s }
.wall span:nth-child(9)  { animation-delay: .45s } .wall span:nth-child(10) { animation-delay: .5s }
.wall span:nth-child(11) { animation-delay: .55s } .wall span:nth-child(12) { animation-delay: .6s }
@keyframes lay { from { opacity: 0; transform: translateY(-18px); } }

/* Sections */
.section { padding: var(--section-pad) 0; }
/* Beim Anspringen über das Menü: Titel ~28px unter der Kopfzeile */
.section[id] { scroll-margin-top: calc(28px - var(--section-pad)); }
/* Letzter Abschnitt: genug Höhe, damit er ganz nach oben scrollen kann */
#kontakt { min-height: calc(100vh - var(--header-h) - 100px + var(--section-pad) - 28px); }
.section-dark { background: var(--ink); color: #f1efed; }
.section-dark p { color: #c9c6c3; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.card-specs { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: .95rem; }
.card-specs li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-weight: 600; color: var(--ink); }
.card-specs span { font-weight: 400; color: var(--muted); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.icon {
  width: 58px; height: 58px; border-radius: 12px;
  background: rgba(227, 6, 19, .08);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.icon svg { width: 32px; height: 32px; fill: var(--red); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li {
  position: relative;
  display: grid; gap: 4px; align-content: start;
  padding: 18px 20px 18px 56px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  color: #d6d3d0;
}
.checks li strong { color: #fff; font-family: var(--display); font-size: 1.05rem; line-height: 1.3; }
.checks li span { color: #bdbab7; line-height: 1.5; }
.checks li::before {
  content: "";
  position: absolute; left: 20px; top: 23px;
  width: 22px; height: 12px;
  border-radius: 3px;
  background: var(--red);
}

/* About */
.about { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; grid-template-areas: "photo head" "photo text"; grid-template-rows: auto 1fr; column-gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-head { grid-area: head; max-width: 680px; }
.about-head h2 { margin-bottom: .3em; }
.about-photo { grid-area: photo; }
.about-text { grid-area: text; }
.about-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 28px); }
.about-photo img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.about-photo figcaption { margin-top: 20px; }
.about-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.about-facts li { position: relative; padding-left: 36px; color: #d6d3d0; line-height: 1.45; }
.about-facts li:first-child { color: #fff; font-family: var(--display); font-weight: 600; }
.about-facts li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 22px; height: 12px; border-radius: 3px; background: var(--red);
}
.about-text { max-width: 680px; }
.about-text p { color: #cfccc9; }
.about-greeting { font: 700 1.35rem/1.3 var(--display); color: #fff !important; margin-top: .4em; }
.about-quote {
  margin: 1.6em 0; padding: 18px 22px;
  border-left: 4px solid var(--red); background: rgba(255, 255, 255, .05); border-radius: 0 12px 12px 0;
  font: 600 1.2rem/1.45 var(--display); color: #fff;
}
.about-sign { margin-top: 1.6em; color: #cfccc9; }
.about-sign strong { font-family: var(--display); font-size: 1.15rem; color: #fff; }
.checks-row { grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 72px); }
.checks-row li { padding: 16px 18px 16px 52px; font-size: .95rem; }
.checks-row li::before { left: 18px; top: 21px; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.contact-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 6px;
}
.contact-card address { font-style: normal; color: var(--ink-2); margin-top: 4px; }
.contact-card address strong { font-family: var(--display); color: var(--ink); }
.contact-note { margin: 6px 0 0; display: block; font-size: .92rem; color: var(--muted); }
.contact-card.link { justify-content: center; transition: background .2s, color .2s, transform .2s; }
.contact-card.link:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.contact-card.link:hover .label { color: rgba(255, 255, 255, .8); }
.label { font: 600 .78rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.value { font: 700 1.15rem var(--display); word-break: break-word; }
.maplink { color: var(--red); font-weight: 600; text-decoration: none; margin-top: 8px; }
.maplink:hover { text-decoration: underline; }
/* Address cards: whole card is a link, map link pinned to the bottom, same hover as phone/e-mail */
.contact-card.addr { justify-content: flex-start; }
.contact-card.addr .maplink { margin-top: auto; padding-top: 14px; }
.contact-card.addr .contact-note { display: block; }
.contact-card.addr address, .contact-card.addr address strong, .contact-card.addr .contact-note, .contact-card.addr .maplink { transition: color .2s; }
.contact-card.addr:hover address, .contact-card.addr:hover address strong,
.contact-card.addr:hover .contact-note, .contact-card.addr:hover .maplink { color: #fff; }

/* Legal pages */
.legal { padding: clamp(50px, 7vw, 90px) 0; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal a { color: var(--red); }
.legal-meta { color: var(--muted) !important; font-size: .95rem; }
.legal-back { margin-top: 3em; }
.legal-back a { font-weight: 600; text-decoration: none; }
.site-footer a[aria-current="page"] { color: #fff; }

/* Footer */
.site-footer { border-top: 4px solid var(--red); background: #141416; color: #9a9794; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px 24px; padding: 26px 0; }
.footer-left { display: grid; gap: 4px; }
.site-footer .credit { font-size: .82rem; color: #7d7a77; }
.site-footer .credit a { color: #9a9794; }
.site-footer .credit a:hover { color: #fff; }
.site-footer p { margin: 0; }
.site-footer a { color: #c9c6c3; text-decoration: none; }
.site-footer a:hover { color: #fff; }


/* Projekte / Instagram-Galerie */
.section-soft { background: #f6f4f1; }
.section-intro { max-width: 640px; color: var(--muted); margin: 0; }
.gallery { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery li { margin: 0; }
.gallery[data-n="3"], .gallery[data-n="6"], .gallery[data-n="9"] { grid-template-columns: repeat(3, 1fr); } /* z. B. Gratis-Abo mit 6 Beiträgen: 2 volle Reihen */
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.post:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-img, .gallery .ph { display: block; position: relative; overflow: hidden; background: #e7e3df; aspect-ratio: 1 / 1; }
.gallery .ph { border-radius: 12px; }
.post-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; cursor: pointer; }
.post-body .post-text { transition: color .2s; }
.post-body:hover .post-text { color: var(--red); }
.post-text { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.post-more { align-self: flex-start; margin-top: auto; padding: 0; border: 0; background: none; font: 600 .88rem var(--body, inherit); color: var(--red); cursor: pointer; }
.post-more:hover, .post-more:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: none; }
.gallery .ph { animation: ph 1.4s ease-in-out infinite alternate; }
@keyframes ph { to { background: #efebe7; } }
.g-badge { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); background: center / contain no-repeat; }
.g-video { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12.5-7.5z' fill='%23fff'/%3E%3C/svg%3E"); }
.g-multi { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='7' y='3' width='14' height='14' rx='2' fill='%23fff'/%3E%3Cpath d='M4 7v12a2 2 0 0 0 2 2h12' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); }
.projekte-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.insta-btn { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.insta-btn .btn-ico { width: 20px; height: 20px; flex: none; }
.gallery-fallback { margin: 30px 0 0; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.gallery-fallback a { color: var(--red); font-weight: 600; text-decoration: none; }
.lb-meta { display: inline-flex; gap: 18px; align-items: baseline; white-space: nowrap; margin-top: auto; padding-bottom: 4px; }
.lb-link { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--red); }
.lb-link:hover { color: #ffb3b7; }
.post-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-img:hover img, .post-img:focus-visible img { transform: scale(1.05); }
.post-img:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(17, 17, 18, .94); color: #fff; }
.lightbox::backdrop { background: rgba(17, 17, 18, .94); }
.lightbox[open] { display: grid; grid-template: 100% / 100%; place-items: center; }
.lightbox figure { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 62px 72px 20px; box-sizing: border-box; }
.lightbox img { flex: none; max-width: 100%; max-height: 55vh; max-height: 55dvh; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; max-width: 760px; padding-top: 14px; font-size: .95rem; line-height: 1.55; color: #d9d6d3; text-align: center; }
.lb-cap { display: block; flex: 0 1 auto; min-height: 0; overflow-y: auto; white-space: pre-line; overscroll-behavior: contain; }
.lb-cap:empty { display: none; }
.lb-count { color: #8f8c89; font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--red); outline: none; }
.lb-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Lightbox Desktop: Bild links, Text rechts (wie Instagram) */
@media (min-width: 901px) {
  .lightbox figure { display: grid; grid-template-columns: auto 340px; column-gap: 32px; justify-content: center; align-content: center; align-items: start; padding: 56px 88px; }
  .lightbox img { max-width: calc(100vw - 176px - 372px); max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); }
  .lightbox figcaption { align-self: start; max-width: none; max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); padding-top: 0; align-items: stretch; text-align: left; }
  .lb-cap { flex: 1 1 auto; }
  .lb-meta { margin-top: 0; padding-top: 6px; flex-wrap: wrap; white-space: normal; }
}

/* Responsive */
@media (max-width: 1000px) {
  .checks-row { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .nav-links { gap: 18px; }
  .contact { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  :root { --header-h: 107px; }
  .nav { gap: 10px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(29, 29, 31, .12);
    padding: 6px 20px 14px;
  }
  .site-header.menu-open .nav-links { display: flex; }
  .nav-links a { padding: 15px 4px; font-size: 1.1rem !important; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .brand img { width: 210px; }
  .hero-inner, .split, .about { grid-template-columns: 1fr; gap: 40px; }
  .about { grid-template-areas: "head" "photo" "text"; grid-template-rows: none; row-gap: 24px; }
  .about-photo { position: static; max-width: 360px; }
  .about-photo img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; }
  .hero-visual { max-width: 420px; }
}
@media (max-width: 520px) {
  :root { --header-h: 95px; }
  body { font-size: 16px; }
  .cards, .contact, .checks-row { grid-template-columns: 1fr; }
  .gallery, .gallery[data-n] { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .post-body { padding: 10px 12px 12px; gap: 6px; }
  .post-text { font-size: .85rem; }
  .post-more { font-size: .82rem; }
  .g-badge { top: 7px; right: 7px; width: 18px; height: 18px; }
  .lightbox figure { padding: 62px 10px 80px; }
  .lightbox img { max-height: 52vh; max-height: 52dvh; }
  .lb-meta { white-space: normal; flex-wrap: wrap; justify-content: center; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
  .nav .btn-sm { padding: 9px 14px; font-size: .85rem; }
  .brand img { max-width: none; width: 180px; }
}
@media (max-width: 440px) {
  :root { --header-h: 89px; }
  .btn-call .btn-label { display: none; }
  .nav .btn-call { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .btn-call .btn-ico { width: 20px; height: 20px; }
  .brand img { width: 164px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
