:root {
  --blue: #005da8;
  --green: #009330;
  --yellow: #ffdc00;
  --orange: #f29300;
  --red: #e43117;
  --ink: #1b2430;
  --ink-soft: #4a5563;
  --paper: #fbfaf7;
  --line: #e7e3da;
  --stripes: linear-gradient(180deg,
    var(--blue) 0 20%, var(--green) 20% 40%, var(--yellow) 40% 60%,
    var(--orange) 60% 80%, var(--red) 80% 100%);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--blue); }
img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.rainbow { height: 15px; background: var(--stripes); }
.rainbow--thin { height: 10px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 60%;
  background: url("hero.jpg") 56% center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.hero__inner {
  position: relative;
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
  padding: 96px 0 140px;
}
.hero__content { max-width: 540px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(255, 220, 0, .7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(255, 220, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 220, 0, 0); }
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.04;
  font-weight: 850;
  letter-spacing: -.025em;
}
.paint {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  z-index: 0;
}
.paint::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.08em;
  right: -.08em;
  bottom: .02em;
  height: .36em;
  background: var(--stripes);
  border-radius: 3px 8px 5px 10px;
  transform-origin: left center;
  transform: scaleX(0) skewX(-8deg);
  animation: roll 1.3s cubic-bezier(.65, 0, .25, 1) .5s forwards;
  opacity: .92;
}
@keyframes roll { to { transform: scaleX(1) skewX(-8deg); } }

.hero p.lead {
  margin: 0 0 30px;
  font-size: clamp(18px, 2vw, 21px);
  color: rgba(255, 255, 255, .9);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { flex: none; }
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.btn--ghost { color: #fff; border: 2px solid rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* Schild "Frisch gestrichen" */
.sign {
  position: absolute;
  right: max(16px, calc((100% - 1120px) / 2));
  bottom: 120px;
  width: 230px;
  padding: 18px 18px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transform: rotate(4deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  transition: transform .2s ease;
}
.sign::before,
.sign::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 64px;
  height: 22px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.sign::before { left: 14px; transform: rotate(-8deg); }
.sign::after { right: 14px; transform: rotate(7deg); }
.sign:hover { transform: rotate(1deg) scale(1.03); }
.sign:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.sign__top {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sign__main {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -.01em;
}
.sign__hint {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.sign.is-touched { animation: wobble .5s ease; }
@keyframes wobble {
  25% { transform: rotate(7deg); }
  60% { transform: rotate(1deg); }
  100% { transform: rotate(4deg); }
}

.print {
  position: absolute;
  z-index: 50;
  width: 64px;
  height: 82px;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  animation: dry 4.5s ease forwards;
}
@keyframes dry {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.3); }
  8% { opacity: .9; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1); }
  75% { opacity: .9; }
  100% { opacity: 0; }
}

/* Logo-Karte */
.card-logo {
  position: relative;
  z-index: 2;
  margin: -64px auto 0;
  width: fit-content;
  max-width: 100%;
  padding: 22px 34px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(27, 36, 48, .14);
}
.card-logo img { width: 420px; height: auto; }

/* Sektionen */
.section { padding: 72px 0 8px; }
.section__head { max-width: 720px; margin-bottom: 30px; }
.section__head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
}
.section__head p { margin: 0; color: var(--ink-soft); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.tile {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tile__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
}
.tile:nth-child(1) .tile__icon { background: var(--blue); }
.tile:nth-child(2) .tile__icon { background: var(--green); }
.tile:nth-child(3) .tile__icon { background: var(--red); }
.tile h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tile__big {
  display: block;
  font-size: 22px;
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.tile__big:hover { color: var(--blue); }
.tile p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; }

/* Baustellen-Tagebuch */
.diary {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.diary h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -.02em; }
.diary > div > p { margin: 0 0 22px; color: var(--ink-soft); }

.meter {
  position: relative;
  height: 26px;
  border-radius: 8px;
  background: repeating-linear-gradient(-45deg, #f1eee7 0 10px, #e9e5dc 10px 20px);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: 0;
  background: var(--stripes);
  border-radius: 8px 3px 3px 8px;
  animation: fill 2.2s cubic-bezier(.3, 0, .2, 1) .8s forwards;
}
@keyframes fill { to { width: 68%; } }
.meter__label { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.steps li:last-child { border-bottom: 0; }
.steps .st {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}
.st--done { background: #e3f3e8; color: var(--green); }
.st--now { background: #fff6cc; color: #9a6b00; }
.st--next { background: #f1eee7; color: #8b8578; }
.steps strong { display: block; line-height: 1.3; }
.steps span.sub { font-size: 14px; color: var(--ink-soft); }
.st--now + div strong::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: middle;
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Leistungen */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
}
.chip::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--c, var(--blue));
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}
.stat b {
  display: block;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -.02em;
}
.stat span { color: rgba(255, 255, 255, .75); font-size: 15px; }
.stat:nth-child(1) b { color: var(--yellow); }
.stat:nth-child(2) b { color: #6fd08c; }
.stat:nth-child(3) b { color: #66b3f0; }

.band {
  margin-top: 72px;
  padding: 30px 34px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #fff6cc, #ffe9c4);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  align-items: center;
  justify-content: space-between;
}
.band h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.01em; }
.band p { margin: 0; color: var(--ink-soft); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); }

/* Rechtstexte */
.page-head { background: var(--ink); color: #fff; padding: 46px 0 40px; }
.page-head h1 { margin: 10px 0 0; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.02em; }
.back { color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 600; }
.back:hover { color: #fff; }
.legal { max-width: 760px; padding: 40px 0 70px; }
.legal h2 { margin: 34px 0 8px; font-size: 21px; }
.legal address { font-style: normal; }
.legal p, .legal li { color: #2c3642; }

/* 404 */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}
.notfound h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 10px; letter-spacing: -.02em; }
.notfound p { color: var(--ink-soft); margin: 0 0 26px; }

/* Footer */
.footer { margin-top: 80px; background: var(--ink); color: rgba(255, 255, 255, .8); font-size: 15px; }
.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: space-between;
  padding: 34px 0;
}
.footer strong { color: #fff; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }

@media (max-width: 900px) {
  .grid, .stats { grid-template-columns: 1fr; }
  .diary { grid-template-columns: 1fr; gap: 26px; padding: 26px; }
  .sign { position: relative; right: auto; bottom: auto; margin: 40px 0 0 6px; display: block; }
  .hero { flex-direction: column; align-items: stretch; }
  .hero::before { position: relative; display: block; width: 100%; height: 300px; background-image: url("hero-960.jpg"); background-position: 58% 40%; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .hero__inner { padding: 0 0 100px; margin-top: -20px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .card-logo { padding: 16px 20px; }
  .card-logo img { width: 280px; }
  .tile__big { font-size: 20px; }
  .band { padding: 24px; }
  .btn { width: 100%; justify-content: center; }
  .paint { white-space: normal; }
}

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