:root{
  --bg:#ffffff;
  --bg2:#f7f7f8;
  --card:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --line:#e5e7eb;

  /* Branding: Rot/Weiß */
  --accent:#c8102e;
  --accent2:#ff3b30;

  --shadow: 0 18px 55px rgba(17,24,39,.10);
  --shadow2: 0 10px 24px rgba(17,24,39,.08);

  --radius: 18px;
  --radius2: 24px;
  --container: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 450px at 15% 0%, rgba(200,16,46,.12), transparent 60%),
    radial-gradient(900px 450px at 85% 10%, rgba(255,59,48,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }
.container{
  width:min(var(--container), calc(100% - 48px));
  margin-inline:auto;
}

.skip{
  position:absolute; left:-999px; top:12px;
  background:#111827; color:#fff; padding:10px 12px; border-radius:10px;
}
.skip:focus{ left:12px; z-index:9999; }

.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;
}

/* Header */
.header{
  position:sticky; top:0;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand__text{ display:flex; flex-direction:column; line-height:1.1; }
.brand__text span{ color:var(--muted); font-size: 12px; margin-top:4px; }

.nav{
  display:flex; align-items:center; gap:10px;
}
.nav a{
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 12px;
}
.nav a:hover{ color:var(--text); text-decoration:none; background: rgba(17,24,39,.04); }
.nav__cta{
  color:#fff !important;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: var(--shadow2);
}


/* Keep CTA readable on hover/focus */
.nav .nav__cta:hover,
.nav .nav__cta:focus-visible{
  color:#fff !important;
  text-decoration:none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: var(--shadow2);
}
/* Hero single column */
.hero__grid--single{
  grid-template-columns: 1fr;
}

/* Hersteller als Text-Kachel-Grid (ohne Logos) */
.brand-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.brand-tile{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 10px 22px rgba(17,24,39,.06);
  padding: 16px;
  font-weight: 900;
  text-align:center;
}

/* Inhalte in Leistungs-Kacheln (Titel + Text) */
.tile-title{
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
}

.tile-text{
  font-weight: 600;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

/* Kompakte Kacheln (z. B. Geräte-Liste) */
.brand-tile--compact{
  padding: 14px 12px;
}

/* Überschrift zwischen Grids */
.subhead{
  margin: 22px 0 0;
  font-size: 18px;
}

@media (max-width: 1100px){
  .brand-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .brand-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .brand-grid{ grid-template-columns: 1fr; }
}


/* Abholservice Callout */
.callout{
  border: 1px solid rgba(200,16,46,.18);
}

/* Mobile nav */
.nav-toggle{
  display:none;
  border:1px solid var(--line);
  background: rgba(17,24,39,.03);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
}
.nav-toggle__icon{
  display:block; width:18px; height:12px; position:relative;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after{
  content:""; position:absolute; left:0; right:0; height:2px; border-radius:2px;
  background: var(--text);
}
.nav-toggle__icon::before{ top:0; }
.nav-toggle__icon::after{ bottom:0; }
.nav-toggle__icon{ background: var(--text); height:2px; top:5px; }

/* Hero */
.hero{ padding: 56px 0 10px; }
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  align-items: stretch;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(200,16,46,.08);
  border: 1px solid rgba(200,16,46,.18);
  color: #7a0b1b;
  margin: 0 0 14px;
  font-weight: 600;
}
h1{
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.accent{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip:text;
  color: transparent;
}
.lead{
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 18px;
}
.hero__cta{ display:flex; gap:12px; flex-wrap:wrap; margin: 18px 0 10px; }

.button{
  display:inline-flex; justify-content:center; align-items:center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  text-decoration:none;
  box-shadow: var(--shadow);
}
.button:hover{ text-decoration:none; transform: translateY(-1px); }
.button--ghost{
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(200,16,46,.35);
  box-shadow: none;
}

.hero__grid--single{
  grid-template-columns: 1fr;
}

/* Strip */
.strip{ padding: 14px 0 36px; }
.strip__grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.strip__item{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  padding: 14px 16px;
  box-shadow: 0 10px 22px rgba(17,24,39,.06);
}
.strip__kpi{ font-weight:900; letter-spacing:-0.01em; }
.strip__label{ color: var(--muted); margin-top:4px; }

/* Sections */
.section{ padding: 54px 0; }
.section--alt{
  background: linear-gradient(180deg, rgba(200,16,46,.04), rgba(255,255,255,0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head{ margin-bottom: 18px; }
.section__head h2, .section__head h1{
  font-size: 28px;
  margin: 0 0 8px;
}
.section__head p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 75ch;
}

.card{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 16px;
  box-shadow: 0 10px 22px rgba(17,24,39,.06);
}
.card h3{ margin: 0 0 8px; font-size: 18px; }
.card p{ margin: 0; color: var(--muted); line-height: 1.65; }

/* Steps */
.steps{
  list-style:none; padding:0; margin: 18px 0 0;
  display:grid; gap: 12px;
}
.steps li{
  display:flex; gap: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 14px;
  box-shadow: 0 10px 22px rgba(17,24,39,.06);
}
.steps__num{
  width: 42px; height: 42px;
  border-radius: 16px;
  display:grid; place-items:center;
  font-weight:900;
  color:#fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 20px rgba(200,16,46,.18);
}
.steps__body h3{ margin: 0 0 6px; }
.steps__body p{ margin:0; color: var(--muted); line-height: 1.65; }

/* Contact (single card) */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.contact--single{ grid-template-columns: 1fr; }
.contact__card{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 16px;
  box-shadow: 0 12px 26px rgba(17,24,39,.08);
}
.contact__line{ margin: 10px 0; color: var(--muted); line-height: 1.65; }
.contact__actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }

.muted{ color: var(--muted); font-size: 13px; line-height: 1.65; }

/* Legal pages */
.legal .legal-card{
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 18px;
  box-shadow: var(--shadow);
}
.legal .legal-card h2{
  margin: 18px 0 8px;
  font-size: 18px;
}
.legal .legal-card h2:first-of-type{ margin-top: 0; }
.legal .legal-hr{
  border:0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}
.legal .legal-list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.legal .legal-list li{ margin: 6px 0; line-height: 1.6; }
.legal .legal-back{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }

/* Footer */
.footer{
  padding: 28px 0 10px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.75);
}
.footer__grid{
  display:flex; justify-content:space-between; gap: 14px; align-items:flex-start;
}
.footer__brand{ font-weight:900; }
.footer__muted{ color: var(--muted); margin-top: 6px; }
.footer__links{ display:flex; gap: 14px; color: var(--muted); }
.footer__bottom{ padding: 14px 0 0; color: var(--muted); }

/* Responsive */
@media (max-width: 980px){
  body.nav-open{ overflow:hidden; }
  .hero__grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .cards--tight{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .strip__grid{ grid-template-columns: 1fr; }

  .nav-toggle{ display:inline-flex; }
  .nav{
    position:absolute;
    left:0; right:0;
    top: 64px;
    margin: 0 auto;
    width: min(var(--container), calc(100% - 24px));
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    padding: 10px;
    display:none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow: 0 18px 55px rgba(17,24,39,.10);
  }
  .nav a{ padding: 12px 12px; }
  .nav.is-open{ display:flex; }
}

/* Sticky Footer (nur für Seiten mit body.page) */
.page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main{
  flex: 1;
}

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