/* madex.biz – Marco Desiderio
   Helles Design mit Blau-Akzent; das Waben-Motiv stammt von der alten Seite.
   Schrift Manrope liegt selbst auf dem Server (SIL Open Font License), keine externen Dienste. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-2: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f0f4f9;
  --line: #dae2eb;
  --line-soft: #e6ecf3;
  --text: #12263f;
  --muted: #4a5a6b;
  --dim: #687789;
  --accent: #1769aa;
  --accent-strong: #0f4f85;
  --accent-bright: #3b9be0;
  --accent-soft: #e8f1fa;
  --hex-fill: linear-gradient(160deg, #4aa8ec 0%, #1769aa 55%, #0f3f6e 100%);

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --shadow: 0 1px 2px rgba(20, 32, 43, .04), 0 8px 24px -12px rgba(20, 32, 43, .12);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 4px 18px -14px rgba(20, 32, 43, .35); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 50px; width: auto; }

@media (max-width: 380px) {
  .brand img { height: 38px; }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav .nav-cta { color: #fff; background: var(--accent); margin-left: 8px; }
.nav .nav-cta:hover { color: #fff; background: var(--accent-strong); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 18px;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 12px 24px -18px rgba(20, 32, 43, .4);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

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

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 11px; font-weight: 620; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -10px rgba(23, 105, 170, .6); }
.btn-primary:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: #b9c6cb; color: var(--text); }

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

.hero {
  position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 80px); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(59, 155, 224, .15), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(23, 105, 170, .06), transparent 70%),
    linear-gradient(180deg, #f5f9fd 0%, #ffffff 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48.5' viewBox='0 0 84 48.5'%3E%3Cpath d='M0 24.25L14 0h28l14 24.25L42 48.5H14zM56 24.25h28' fill='none' stroke='%231769aa' stroke-opacity='.08' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 75% 40%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 70% at 75% 40%, #000 15%, transparent 72%);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-size: .82rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 1px; }

.hero h1 span { color: var(--accent); }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Wabenhaufen (Anordnung wie auf der alten Startseite) */
.comb {
  --w: clamp(128px, 15vw, 182px);
  --h: calc(var(--w) * .866);
  --gap: 10px;
  position: relative;
  width: calc(var(--w) * 1.75 + var(--gap));
  height: calc(var(--h) * 2.5 + var(--gap) * 1.5);
  margin-left: auto; margin-right: auto;
}
.comb-cell { position: absolute; width: var(--w); height: var(--h); filter: drop-shadow(0 10px 22px rgba(23, 105, 170, .22)); transition: filter .25s, transform .25s; }
.comb-cell:nth-child(1) { left: calc(var(--w) * .75 + var(--gap)); top: 0; }
.comb-cell:nth-child(2) { left: 0; top: calc(var(--h) * .5 + var(--gap) * .5); }
.comb-cell:nth-child(3) { left: calc(var(--w) * .75 + var(--gap)); top: calc(var(--h) + var(--gap)); }
.comb-cell:nth-child(4) { left: 0; top: calc(var(--h) * 1.5 + var(--gap) * 1.5); }
.comb-cell:hover { filter: drop-shadow(0 14px 28px rgba(23, 105, 170, .35)); transform: translateY(-3px); }
.comb-cell:nth-child(2) .hex-inner, .comb-cell:nth-child(4) .hex-inner { background: #fff; color: var(--accent); }
.comb-cell:nth-child(2) .hex-inner span, .comb-cell:nth-child(4) .hex-inner span { color: var(--accent-strong); }

.hex {
  position: relative; width: 100%; height: 100%;
  clip-path: var(--hex);
  background: var(--hex-fill);
}
.hex-inner {
  position: absolute; inset: 3px 3.4px; clip-path: var(--hex);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .22), transparent 55%),
    linear-gradient(170deg, #2a86cf, #12508a);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #fff; text-align: center;
}
.hex-inner svg { width: 30%; height: auto; aspect-ratio: 1; }
.hex-inner span { font-size: clamp(.72rem, 1vw, .86rem); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #fff; }

.stats {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.stat { padding: 22px 18px 0 0; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 720; letter-spacing: -.02em; color: var(--text); }
.stat span { color: var(--muted); font-size: .92rem; line-height: 1.4; display: block; }
.stats-note { margin-top: 14px; color: var(--dim); font-size: .8rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .comb { --w: clamp(104px, 30vw, 150px); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-bottom: 18px; }
}

/* ---------- Abschnitte ---------- */

.section { padding: clamp(68px, 10vw, 120px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px 26px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: rgba(23, 105, 170, .35); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(20, 32, 43, .04), 0 16px 32px -16px rgba(23, 105, 170, .3); }
.card p { color: var(--muted); font-size: .98rem; }
.card-icon {
  width: 52px; height: 45px; margin-bottom: 20px; flex: none;
  clip-path: var(--hex);
  background: var(--hex-fill);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.card-icon svg { width: 22px; height: 22px; }
.tags { list-style: none; margin: auto 0 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; color: #344451; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 10px; }

@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* Projekte */
.feature {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: start;
  background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: 22px; position: relative; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; right: -140px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 155, 224, .12), transparent);
  pointer-events: none;
}
.reos-logo { width: 200px; height: auto; margin-bottom: 18px; }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px;
}
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; position: relative; }
.checks li { position: relative; padding: 12px 14px 12px 44px; font-size: .97rem; line-height: 1.45; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 16px; top: 15px; width: 16px; height: 14px;
  clip-path: var(--hex); background: var(--hex-fill);
}

@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px 24px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.project:hover { border-color: rgba(23, 105, 170, .35); transform: translateY(-2px); }
.shot { width: min(78%, 260px); aspect-ratio: 1.1547; margin: 0 auto 22px; filter: drop-shadow(0 12px 20px rgba(23, 105, 170, .2)); }
.shot img { position: absolute; inset: 3px 3.4px; width: calc(100% - 6.8px); height: calc(100% - 6px); object-fit: cover; clip-path: var(--hex); }
.project .kind { font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.project p { color: var(--muted); font-size: .97rem; }
.project .facts { list-style: none; padding: 0; margin: 0 0 16px; display: flex; gap: 18px; flex-wrap: wrap; }
.project .facts strong { display: block; font-size: 1.25rem; color: var(--text); font-variant-numeric: tabular-nums; }
.project .facts span { font-size: .8rem; color: var(--dim); }
.ext { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.ext svg { width: 15px; height: 15px; }

@media (max-width: 980px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }

/* Eigene Apps: Kasten im Seitenstil, nur die App-Karten im Pergament der Kobel-Apps */
.kobel-box {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow); padding: clamp(24px, 4vw, 48px); overflow: hidden;
}
.kobel-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; margin-bottom: 28px; }
.kobel-lead { color: var(--muted); font-size: 1.08rem; max-width: 34em; margin: 0; }

/* Fächer aus echten Bildschirmfotos */
.fan {
  --b: clamp(108px, 13vw, 158px);
  position: relative; height: calc(var(--b) * 2.25); margin-bottom: calc(var(--b) * .32); min-width: 0;
}
.fan img {
  position: absolute; left: 50%; bottom: 0; width: var(--b); height: auto; aspect-ratio: 400 / 835;
  margin-left: calc(var(--b) / -2);
  border: 4px solid #1d2733; border-radius: calc(var(--b) * .13); background: #fff;
  box-shadow: 0 18px 36px -18px rgba(18, 38, 63, .55);
  transform-origin: 50% 170%;
  transition: transform .3s ease;
}
.fan img:nth-child(1) { transform: rotate(-21deg); }
.fan img:nth-child(2) { transform: rotate(-7deg); }
.fan img:nth-child(3) { transform: rotate(7deg); }
.fan img:nth-child(4) { transform: rotate(21deg); }
.fan img:nth-child(1):hover { transform: rotate(-21deg) translateY(-14px); }
.fan img:nth-child(2):hover { transform: rotate(-7deg) translateY(-14px); }
.fan img:nth-child(3):hover { transform: rotate(7deg) translateY(-14px); }
.fan img:nth-child(4):hover { transform: rotate(21deg) translateY(-14px); }

@media (max-width: 900px) {
  .kobel-top { grid-template-columns: 1fr; }
  .fan { --b: clamp(80px, 21vw, 150px); margin-top: 8px; }
}

.kobel-apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kobel-apps li {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start;
  background: #fbf7ec; border: 1px solid #e2d5ba; border-radius: 16px; padding: 18px 20px;
}
.kobel-apps img { width: 64px; height: 64px; border-radius: 15px; }
.kobel-apps b { font: 600 1.3rem/1.2 Georgia, "Times New Roman", serif; color: #4e3d27; margin-right: 10px; }
.kobel-apps span { display: inline-block; vertical-align: 3px; font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #8a6d45; background: #f1e6cf; border-radius: 999px; padding: 2px 9px; }
.kobel-apps p { margin: 6px 0 0; color: #6b5a45; font-size: .95rem; line-height: 1.5; }
@media (max-width: 760px) { .kobel-apps { grid-template-columns: 1fr; } }

/* Arbeitsweise */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; left: 30px; right: 30px; top: 26px; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(23, 105, 170, .12)); }
.step { position: relative; padding-right: 8px; }
.step-num {
  width: 60px; height: 52px; clip-path: var(--hex); position: relative; z-index: 1;
  background: var(--hex-fill); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 750; font-size: 1.15rem; margin-bottom: 18px;
}
.step p { color: var(--muted); font-size: .97rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 6px; }
  .steps::before { left: 29px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), rgba(23, 105, 170, .12)); }
  .step { display: grid; grid-template-columns: 60px 1fr; gap: 0 18px; }
  .step-num { grid-row: 1 / span 2; margin-bottom: 14px; }
  .step h3 { grid-column: 2; margin-top: 12px; }
  .step p { grid-column: 2; }
}

.tech { margin-top: clamp(40px, 6vw, 64px); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tech h3 { font-size: .85rem; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; margin: 0 10px 0 0; font-weight: 650; }
.tech ul { display: contents; }
.tech li { list-style: none; font-size: .88rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: #2c3a46; }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.monogram { width: min(100%, 340px); aspect-ratio: 1.1547; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(23, 105, 170, .28)); }
.monogram .hex-inner { gap: 4px; }
.monogram .hex-inner b { font-family: var(--font-display); font-size: clamp(3.4rem, 8vw, 5.6rem); font-weight: 400; letter-spacing: .04em; line-height: 1; }
.monogram .hex-inner small { font-family: var(--font-display); font-variant: small-caps; letter-spacing: .2em; font-size: clamp(.8rem, 1.4vw, 1rem); color: #dcecfa; }
.about p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.about p strong { color: var(--text); font-weight: 620; }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 14px; align-items: flex-start; }
.points svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }

@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .monogram { width: min(70%, 260px); } }

/* Kontakt */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(23, 105, 170, .2); border-radius: calc(var(--radius) + 8px);
  padding: clamp(32px, 6vw, 72px);
  background: linear-gradient(150deg, #eaf3fb 0%, #f7fafd 60%);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px; align-items: end;
}
.contact::before {
  content: ""; position: absolute; z-index: -1; right: -60px; bottom: -60px; width: 300px; height: 260px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48.5' viewBox='0 0 84 48.5'%3E%3Cpath d='M0 24.25L14 0h28l14 24.25L42 48.5H14zM56 24.25h28' fill='none' stroke='%231769aa' stroke-opacity='.14' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
.contact p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.contact .btn { margin-top: 10px; }
.address { font-style: normal; color: var(--muted); line-height: 1.7; border-left: 3px solid var(--accent); padding-left: 18px; }
.address strong { color: var(--text); font-weight: 620; }

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Fußzeile ---------- */

.site-footer { border-top: 1px solid var(--line-soft); padding: 28px 0 36px; color: var(--dim); font-size: .9rem; background: var(--bg-2); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

/* ---------- Rechtstexte ---------- */

.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .8em; }
.legal h2 { font-size: 1.35rem; margin: 2em 0 .6em; }
.legal p, .legal li, .legal address { color: #2c3a46; }
.legal ul { padding-left: 1.2em; }
.legal address { font-style: normal; }
.legal .muted { color: var(--dim); font-size: .92rem; }
.todo { background: #fff4d6; color: #7a5200; border-radius: 4px; padding: 0 6px; }

/* ---------- Einblenden beim Scrollen ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .comb-cell, .card, .project, .btn { transition: none; }
}

@media print {
  .site-header, .hero::after { display: none; }
}
