/* MatzeFixIT — static rebuild
   Open Design: cal-inspired structure + brand blue from logo */

:root {
  --ink: #0b1f2a;
  --ink-soft: #163447;
  --charcoal: #1a2b36;
  --text: #1c2a33;
  --muted: #5b6b76;
  --line: rgba(11, 31, 42, 0.1);
  --surface: #ffffff;
  --surface-2: #f3f7fa;
  --brand: #2080c0;
  --brand-deep: #15679e;
  --brand-soft: #e8f3fb;
  --accent: #0f766e;
  --ok: #0f766e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 0 rgba(34, 42, 53, 0.06), 0 12px 32px rgba(11, 31, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 42, 0.14);
  --max: 1120px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.55;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-panel {
  display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem 1.25rem; box-shadow: var(--shadow);
}
.nav-panel.open { display: block; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.nav-list a {
  display: block; padding: 0.7rem 0.85rem; text-decoration: none;
  color: var(--ink); border-radius: var(--radius-sm); font-weight: 600;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-deep); }
.nav-list a.btn {
  display: inline-flex; padding: 0.7rem 1.2rem; font-weight: 600;
}
.nav-list a.btn-brand,
.nav-list a.btn-brand:hover,
.nav-list a.btn-primary,
.nav-list a.btn-primary:hover {
  background: var(--brand); color: #fff;
}
.nav-list a.btn-brand:hover,
.nav-list a.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.nav-cta { margin-top: 0.5rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-panel {
    display: block !important; position: static; border: 0; padding: 0;
    box-shadow: none; background: transparent;
  }
  .nav-list { flex-direction: row; align-items: center; gap: 0.15rem; }
  .nav-list a { padding: 0.45rem 0.7rem; font-size: 0.95rem; font-weight: 500; }
  .nav-cta { margin-top: 0; margin-left: 0.4rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 48px; padding: 0.7rem 1.2rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost {
  background: #fff; color: var(--ink); border-color: var(--line);
  box-shadow: 0 0 0 1px rgba(34,42,53,.04);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-sm { min-height: 42px; padding: 0.55rem 1rem; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(32,128,192,0.28), transparent 60%),
    linear-gradient(165deg, #081820 0%, #0f2c3d 45%, #13405a 100%);
  color: #eaf4fb;
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(3rem, 9vw, 5.5rem);
}
.hero .wrap {
  display: grid; gap: 2rem; align-items: center;
}
.hero-brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.02em; color: #fff; margin-bottom: 1rem;
}
.hero-brand img {
  width: 56px; height: 56px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow);
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(234,244,251,0.88); max-width: 38rem; margin-bottom: 1.5rem;
}
.hero-visual {
  justify-self: center; width: min(100%, 420px);
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.35));
}
.hero-visual img { width: 100%; }
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
}

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--surface-2); }
.eyebrow {
  display: inline-block; font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand-deep); margin-bottom: 0.7rem;
}
.section-head { max-width: 40rem; margin-bottom: 1.75rem; }

.grid { display: grid; gap: 1rem; }
@media (min-width: 700px) {
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .card-cta { font-weight: 600; text-decoration: none; color: var(--brand-deep); }
.feature {
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: 0; }
.feature strong {
  display: block; font-family: var(--font-display);
  font-size: 1.2rem; color: var(--ink); margin-bottom: 0.25rem;
}

.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  position: relative; padding: 1.25rem 1.25rem 1.25rem 4.2rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.1rem; top: 1.15rem;
  width: 2.2rem; height: 2.2rem; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-family: var(--font-display); font-weight: 700;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.split {
  display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; }
  .split.reverse { grid-template-columns: 1.1fr 0.9fr; }
  .split.reverse > :first-child { order: 2; }
}
.portrait {
  width: min(280px, 70%); margin-inline: auto;
  border-radius: 50%; border: 6px solid #fff; box-shadow: var(--shadow-lg);
  background: var(--brand-soft);
}
.video {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; background: #0b1f2a; box-shadow: var(--shadow);
  cursor: pointer;
}
.video img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  border-radius: 999px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 1.25rem;
  box-shadow: var(--shadow-lg); pointer-events: none;
}
.video[data-loaded="1"] .yt-play { display: none; }

/* YouTube slider */
.yt-slider { max-width: 820px; margin-inline: auto; }
.yt-slider-viewport { overflow: hidden; border-radius: var(--radius); }
.yt-slider-track {
  display: flex; transition: transform .35s ease;
  will-change: transform;
}
.yt-slide {
  flex: 0 0 100%; min-width: 100%; padding: 0 2px;
}
.yt-slide h3 {
  margin: 0.9rem 0 0; font-size: 1.15rem; text-align: center;
  padding: 0 0.5rem;
}
.yt-slider-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin-top: 1rem;
}
.yt-nav {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.yt-nav:hover { border-color: var(--brand); color: var(--brand-deep); }
.yt-dots { display: flex; gap: 0.45rem; }
.yt-dot {
  width: 10px; height: 10px; border-radius: 999px; border: 0;
  background: #c5d3de; cursor: pointer; padding: 0;
}
.yt-dot[aria-current="true"] { background: var(--brand); }
@media (prefers-reduced-motion: reduce) {
  .yt-slider-track { transition: none; }
}

.price-card {
  text-align: center; padding: 1.75rem 1.25rem;
}
.price-card .amount {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: var(--ink); line-height: 1;
}
.price-card .unit { color: var(--muted); margin-top: 0.35rem; }

.project {
  display: grid; gap: 1rem; padding: 1.25rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (min-width: 720px) {
  .project { grid-template-columns: 220px 1fr; align-items: start; }
}
.project img {
  width: 100%; aspect-ratio: 16/11; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--surface-2);
}
.project .meta {
  font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem;
}
.timeline { display: grid; gap: 1rem; }
.tl-item {
  display: grid; gap: 0.35rem; padding: 1.1rem 1.2rem;
  border-left: 3px solid var(--brand); background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow);
}
.tl-item .when {
  font-family: var(--font-display); font-size: 0.85rem;
  font-weight: 600; color: var(--brand-deep); letter-spacing: 0.04em;
}

.contact-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card a {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  text-decoration: none; color: var(--ink); word-break: break-word;
}
.contact-card a:hover { color: var(--brand-deep); }

.legal {
  max-width: 48rem;
}
.legal h2 { margin-top: 1.8rem; font-size: 1.35rem; }
.legal h3 { margin-top: 1.3rem; font-size: 1.1rem; }
.legal ul { margin-bottom: 1em; }
.page-hero {
  padding: clamp(2rem, 5vw, 3.2rem) 0 0.5rem;
}
.page-hero h1 {
  max-width: none;
  text-wrap: balance;
}

.cta-band {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft) 55%, #14506d);
  color: #eaf4fb; padding: clamp(2rem, 5vw, 3rem) 0; margin-top: 1rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(234,244,251,0.88); max-width: 36rem; }

/* Footer */
.site-footer {
  background: var(--ink); color: rgba(234,244,251,0.78);
  padding: 2.5rem 0 2rem; margin-top: 0;
}
.footer-grid {
  display: grid; gap: 1.5rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #9fd0ef; }
.site-footer h3 {
  color: #fff; font-size: 0.95rem; margin-bottom: 0.7rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

/* Motion */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ---------- Cookie-Banner + Icon (Fahrlässig-Muster, hell) ---------- */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1400;
  display: none; max-width: 640px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 20px 22px 18px;
}
.consent-banner.open { display: block; }
.consent-kicker {
  margin: 0 0 8px; font-size: 0.82rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand-deep);
  font-family: var(--font-display); font-weight: 700;
}
.consent-text { margin: 0 0 14px; font-size: 0.98rem; color: var(--muted); line-height: 1.5; }
.consent-text strong { color: var(--text); }
.consent-text a { color: var(--brand-deep); }
.consent-cats { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 16px; }
.consent-cat {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; color: var(--text); cursor: pointer;
}
.consent-cat input { accent-color: var(--brand); width: 16px; height: 16px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-revisit {
  position: fixed; left: 16px; bottom: 16px; z-index: 1300;
  width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--brand-deep);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.consent-revisit:hover { border-color: var(--brand); color: var(--brand); }
.consent-banner.open ~ .consent-revisit { display: none; }
@media (max-width: 560px) {
  .consent-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .consent-actions .btn { flex: 1 1 100%; justify-content: center; }
}



/* Breadcrumbs */
.breadcrumbs { padding: 0.85rem 0 0; }
.breadcrumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem;
  font-size: 0.9rem; color: var(--muted);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li:not(:last-child)::after {
  content: "/"; color: #9aabb6; margin-left: 0.15rem;
}
.breadcrumbs a { color: var(--brand-deep); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }
