/* ==========================================================================
   Frese Zimmerei & Holzbau — Design tokens
   Theme: light. Single accent: brand orange. Sharp, architectural radius.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* neutrals — cool stone, not warm cream */
  --paper: #f2f1ee;
  --paper-raised: #ffffff;
  --stone: #e6e4de;
  --ink: #1b1c1e;
  --ink-soft: #55564f;
  --ink-faint: #8b8c84;
  --line: #d9d7cf;

  /* brand accent — real logo orange */
  --accent: #ff5c01;
  --accent-ink: #c23e00; /* AA-safe on paper for small text/links */
  --accent-tint: #fdece0;

  --radius: 0px;
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --shadow-sm: 0 2px 10px rgba(27, 22, 14, 0.08);
  --shadow-md: 0 12px 32px rgba(27, 22, 14, 0.12);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17181a;
    --paper-raised: #1f2023;
    --stone: #232426;
    --ink: #f3f2ee;
    --ink-soft: #c7c6be;
    --ink-faint: #8c8d86;
    --line: #33342f;
    --accent-tint: #2a1a10;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--accent);
  color: #1b1c1e;
}
.btn-primary:hover {
  background: #ff7326;
}
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--ink);
}
.btn-outline-invert {
  background: transparent;
  border-color: rgba(27, 22, 14, 0.35);
  color: var(--ink);
}
.btn-outline-invert:hover {
  border-color: var(--ink);
  background: rgba(27, 22, 14, 0.06);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

/* position:fixed nav must stay relative to the viewport — no filter/transform
   on any ancestor, or it becomes the containing block instead. */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}
.brand svg {
  width: 26px;
  height: 26px;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-name span {
  font-size: 0.7rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-call {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-call .icon {
  color: var(--accent-ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon {
  width: 20px;
  height: 20px;
}
.nav-toggle .icon-close {
  display: none;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 2rem var(--gutter);
    gap: 2rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  body.nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .nav-links a {
    font-size: 1.5rem;
    color: var(--ink);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
  }
  body.nav-open .nav-toggle .icon-menu {
    display: none;
  }
  body.nav-open .nav-toggle .icon-close {
    display: block;
  }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Hero — pinned scroll-scrubbed video that crossfades into Leistungen
   ========================================================================== */

.hero-pin {
  position: relative;
  height: 260vh;
  padding-block: 0;
}
@media (max-width: 700px) {
  .hero-pin {
    height: 220vh;
  }
}

.hero-anchor {
  position: absolute;
  top: 0;
  left: 0;
  scroll-margin-top: 72px;
}

.hero-pin-sticky {
  position: sticky;
  top: 72px;
  height: calc(100dvh - 72px);
  overflow: hidden;
  background: #100e0c;
}

.hero-canvas,
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s var(--ease);
}
.hero-canvas {
  opacity: 0;
}
.hero-canvas.is-ready {
  opacity: 1;
}
.hero-canvas.is-ready + .hero-poster {
  opacity: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(11, 9, 7, 0.78) 0%,
    rgba(11, 9, 7, 0.42) 46%,
    rgba(11, 9, 7, 0.2) 75%
  );
}

.hero-scrim-2 {
  position: absolute;
  inset: 0;
  background: #0b0907;
  opacity: 0;
  will-change: opacity;
}

.hero-stage {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  max-width: 620px;
  will-change: opacity, transform;
}
.hero-copy-main {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  color: #f5f3ee;
}
.hero-copy-main h1 {
  font-size: clamp(2.4rem, 1.9rem + 2.4vw, 4rem);
  max-width: 14ch;
  color: #f5f3ee;
}
.hero-copy-main h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-copy-main .hero-sub {
  max-width: 42ch;
  font-size: 1.1rem;
  color: rgba(245, 243, 238, 0.82);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-copy-leistungen {
  opacity: 0;
  max-width: 720px;
}
.hero-copy-leistungen h2 {
  color: #f5f3ee;
  font-size: clamp(1.6rem, 1.35rem + 1vw, 2.25rem);
  margin-bottom: 1.5rem;
}

.hero-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
}
@media (min-width: 640px) {
  .hero-service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero-service {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0;
  color: #f5f3ee;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 243, 238, 0.18);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero-service .icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--accent);
  flex-shrink: 0;
}
.hero-service:hover {
  color: var(--accent);
  border-color: rgba(255, 92, 1, 0.5);
}

.hero-scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245, 243, 238, 0.75);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.4s var(--ease);
}
.hero-scroll-cue .icon {
  width: 1rem;
  height: 1rem;
  animation: heroCueBounce 1.6s ease-in-out infinite;
}

@keyframes heroCueBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pin {
    height: auto;
  }
  .hero-pin-sticky {
    position: relative;
    top: 0;
    height: auto;
    min-height: calc(100dvh - 72px);
    display: flex;
    flex-direction: column;
  }
  .hero-canvas {
    display: none;
  }
  .hero-poster {
    opacity: 1;
    position: absolute;
  }
  .hero-stage {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 3rem;
    padding-block: clamp(3rem, 8vw, 5rem);
  }
  .hero-copy {
    position: relative;
    left: auto;
    right: auto;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-copy-leistungen {
    max-width: none;
  }
  .hero-scroll-cue {
    display: none;
  }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

section {
  padding-block: clamp(4rem, 9vw, 7rem);
  scroll-margin-top: 72px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 46ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.section-head h2 {
  font-size: clamp(1.9rem, 1.6rem + 1.2vw, 2.75rem);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ==========================================================================
   Bewertungen — auto-scrolling marquee, right to left
   ========================================================================== */

.reviews {
  padding-block: clamp(2.75rem, 6vw, 4rem);
}

.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}
.reviews-head h2 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
}

.reviews-rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.reviews-rating img {
  width: 14px;
  height: 14px;
  margin-left: 0.2rem;
  vertical-align: -2px;
}

.review-stars {
  display: flex;
  gap: 0.15rem;
  color: var(--accent);
}
.review-stars .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.reviews-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.reviews-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding-inline: var(--gutter);
  animation: reviews-scroll 38s linear infinite;
}
.reviews-marquee:hover .reviews-track,
.reviews-marquee:focus-within .reviews-track {
  animation-play-state: paused;
}

@keyframes reviews-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.review-chip {
  flex: 0 0 auto;
  width: min(340px, 82vw);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: 1.5rem;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.review-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.review-who {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.review-who strong {
  font-size: 0.94rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-source {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.review-source img {
  width: 12px;
  height: 12px;
}

.review-chip .review-stars {
  margin-bottom: 0.7rem;
}

.review-text {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .reviews-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .reviews-track {
    animation: none;
  }
  .review-chip[aria-hidden="true"] {
    display: none;
  }
}

/* ==========================================================================
   Projekte
   ========================================================================== */

.project-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .project-feature {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .project-feature--reverse {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .project-feature--reverse .project-photo {
    order: 2;
  }
  .project-feature--reverse .project-text {
    order: 1;
  }
}
.project-feature + .project-feature {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.project-photo {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.project-photo img {
  width: 100%;
  height: clamp(260px, 32vw, 420px);
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-photo:hover img {
  transform: scale(1.035);
}
.project-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(0deg, rgba(20, 16, 10, 0.72), rgba(20, 16, 10, 0));
  color: #f4f2ee;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-text h3 {
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}
.project-text p {
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  width: fit-content;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.project-links a:hover {
  color: var(--accent-ink);
  border-color: var(--accent-ink);
}
.project-links .icon {
  width: 1.05em;
  height: 1.05em;
}

/* ==========================================================================
   Karriere band
   ========================================================================== */

.jobs {
  background: var(--accent);
  color: #1b1c1e;
}
.jobs .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 800px) {
  .jobs .container {
    grid-template-columns: 1.4fr 1fr;
  }
}
.jobs h2 {
  font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.5rem);
  margin-bottom: 0.75rem;
}
.jobs p {
  max-width: 48ch;
  color: rgba(27, 28, 30, 0.82);
}
.jobs-actions {
  display: flex;
  justify-content: flex-start;
}
@media (min-width: 800px) {
  .jobs-actions {
    justify-content: flex-end;
  }
}
.jobs .btn-primary {
  background: #1b1c1e;
  color: var(--accent);
}
.jobs .btn-primary:hover {
  background: #2b2c2f;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 900px) {
  .contact {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-block + .contact-block {
  margin-top: 2.25rem;
}

.contact-block h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-address {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.contact-address div {
  min-width: 200px;
}
.contact-address p {
  color: var(--ink-soft);
}
.contact-address strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  width: fit-content;
  transition: color 0.2s var(--ease);
}
.contact-links a:hover {
  color: var(--accent-ink);
}
.contact-links .icon {
  color: var(--accent-ink);
  width: 1.1em;
  height: 1.1em;
}

.people {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.people li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.people .who {
  display: flex;
  flex-direction: column;
}
.people strong {
  font-size: 0.98rem;
}
.people span {
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.people a {
  font-size: 0.9rem;
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
}
.people a:hover {
  text-decoration: underline;
}

.map-card {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: 2rem;
}
.map-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.map-card p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
  background: var(--paper-raised);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.footer-brand svg {
  width: 28px;
  height: 28px;
  margin-top: 2px;
}
.footer-brand-text strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}
.footer-brand-text span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer-nav {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.footer-nav div {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-nav h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin: 0 0 0.4rem;
  font-weight: 600;
}
.footer-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover {
  color: var(--ink);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 40px;
  height: 40px;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.footer-social:hover {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}
.footer-social .icon {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ==========================================================================
   Legal pages (Impressum / Datenschutz)
   ========================================================================== */

.legal-hero {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  font-size: clamp(2rem, 1.7rem + 1.4vw, 3rem);
}

.legal-body {
  max-width: 72ch;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.legal-body h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-body h3:first-child {
  margin-top: 0;
}
.legal-body p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.legal-body ul {
  color: var(--ink-soft);
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal-body li {
  margin-bottom: 0.4rem;
}
.legal-body a {
  color: var(--accent-ink);
}
