/* Reset & Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  scroll-behavior: smooth;
}

/* THEME TOKENS */
:root{
  --wrap: clamp(16px, 4vw, 28px);
  --max: 1200px;
  --accent: #d30000;
  --muted: #6b7280;

  /* light */
  --bg: #ffffff;
  --fg: #0f0f12;
  --panel: #fafafa;
  --border: rgba(0,0,0,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}
html[data-theme="dark"]{
  --bg: #0c0c0f;
  --fg: #f4f6f8;
  --panel: #15161a;
  --border: rgba(255,255,255,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.5);
}

.wrap{ max-width: calc(var(--max) + 2*var(--wrap)); padding: 0 var(--wrap); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: saturate(140%) blur(8px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

/* Grid: Logo | Nav | Toggle */
.headerbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 800;
  letter-spacing: .2px;
}
.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--fg);
  opacity: .9;
  font-weight: 500;
}
.nav a:hover {
  color: var(--accent);
  opacity: 1;
}

@media (max-width: 720px) {
  .brand span { display: none; } /* nur Logo auf Mobile */
  .nav { gap: 12px; font-size: 14px; }
}


/* iOS-Style Switch */
.switch{
  position: relative; display:inline-flex; align-items:center;
  width: 62px; height: 34px; border: none; background: transparent; padding: 0; cursor: pointer;
}
.switch-track{
  position:absolute; inset:0;
  background: color-mix(in oklab, var(--fg) 10%, var(--bg));
  border:1px solid var(--border);
  border-radius: 999px;
  transition: background .2s ease, border-color .2s ease;
}
.switch-thumb{
  position:absolute; top:3px; left:3px; width:28px; height:28px; border-radius:50%;
  background: #fff; display:grid; place-items:center; box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), background .2s ease;
}
html[data-theme="dark"] .switch-track{ background: color-mix(in oklab, var(--fg) 30%, var(--bg)); border-color: color-mix(in oklab, var(--fg) 25%, var(--border)); }
.switch[aria-pressed="true"] .switch-thumb{ transform: translateX(28px); background: #fff; }
.switch-icon{ font-size: 14px; line-height: 1; }
.switch .moon{ display:none; }
.switch[aria-pressed="true"] .sun{ display:none; }
.switch[aria-pressed="true"] .moon{ display:inline; }

/* Buttons */
.btn{
  display:inline-block; padding: 14px 18px; border-radius: 12px; text-decoration:none; font-weight:600;
  border:1px solid var(--border); transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  will-change: transform; color: var(--fg);
}
.btn.primary{ background: #111; color:#fff; border-color: #111; }
html[data-theme="dark"] .btn.primary{ background:#e4e7eb; color:#0c0c0f; border-color:#e4e7eb; }
.btn.ghost{ background: transparent; }
.btn.small{ padding: 10px 14px; font-size: 14px; }
.btn:hover{ transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.btn.primary:hover{ background:#000; }
html[data-theme="dark"] .btn.primary:hover{ background:#fff; }

/* Hero */
.hero{
  position: relative; min-height: 88vh; display:flex; align-items:center; justify-content:center; overflow:hidden;
  background: radial-gradient(1200px 600px at 50% 15%, color-mix(in oklab, var(--accent) 22%, transparent) 0%, transparent 60%);
}
.hero .content{ position:relative; z-index: 2; text-align:center; padding: 80px 0 40px; }
.hero h1{ font-size: clamp(42px, 8vw, 88px); line-height: 1.05; letter-spacing:-.02em; margin: 0 0 12px; color: var(--fg); }
.hero .muted{ color: var(--muted); font-weight: 300; }
.hero .kicker{ color: color-mix(in oklab, var(--fg) 85%, transparent); font-size: clamp(16px, 2.2vw, 22px); margin-bottom: 26px; }
.hero .cta-row{ display:flex; gap:12px; justify-content:center; }

/* weiche Lichtflaechen */
.bg-layer{ position:absolute; inset:-10%; z-index:0; }
.layer-1{ background: radial-gradient(500px 400px at 12% 88%, color-mix(in oklab, var(--accent) 30%, transparent) 0%, transparent 60%); }
.layer-2{ background: radial-gradient(600px 300px at 88% 28%, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 60%); mix-blend-mode: multiply; }

/* Shorts: iPhone-Style 9:16 */
.shorts-sub{ color: color-mix(in oklab, var(--fg) 80%, transparent); }
.rail-wrap{ position: relative; }
.rail{
  margin-top: 14px; display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; padding: 8px 8px 16px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.rail::-webkit-scrollbar{ height: 8px; }
.rail::-webkit-scrollbar-thumb{ background: color-mix(in oklab, var(--fg) 20%, transparent); border-radius: 8px; }

.short-card{
  display:flex; flex-direction:column; gap:10px; text-decoration:none; color: var(--fg);
  scroll-snap-align: start; min-width: clamp(220px, 30vw, 340px);
}
.phone{
  position: relative; width: 100%; aspect-ratio: 9/16; border-radius: 26px; background:#000;
  border:1px solid var(--border); box-shadow: var(--shadow); overflow:hidden;
}
.notch{
  position:absolute; top:0; left:50%; transform: translate(-50%, -30%);
  width: 40%; height: 28px; background: #000; border-bottom-left-radius: 18px; border-bottom-right-radius: 18px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.screen{
  position:absolute; inset:0; overflow:hidden; border-radius: 26px;
}
/* Cropping-Trick: YouTube Player ist 16:9 – wir croppen mittig auf 9:16 */
.screen iframe{
  position:absolute; left:50%; top:50%; transform: translate(-50%, -50%);
  /* hoeher als 100% damit vertikal gefuellt wird */
  height: 177.78%;  /* 16/9 * 100% */
  width: 100%;
  border: 0;
  /* optional leichte Abrundungen innen */
  border-radius: 12px;
}
.short-title{ font-weight:600; text-align:center; }

.rail-btn{
  position:absolute; top:50%; transform: translateY(-50%); z-index:2;
  width:40px; height:40px; border-radius:50%; border:1px solid var(--border); background: var(--panel); color: var(--fg);
  display:grid; place-items:center; cursor:pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.rail-btn:hover{ transform: translateY(-50%) scale(1.06); box-shadow: var(--shadow); }
.rail-btn.prev{ left: -6px; }
.rail-btn.next{ right: -6px; }

/* About */
.section{ padding: 100px 0; }
.section h2{ font-size: clamp(28px, 4vw, 44px); margin: 0 0 14px; letter-spacing:-.01em; color: var(--fg); }
.section p{ font-size: 18px; color: color-mix(in oklab, var(--fg) 85%, transparent); max-width: 80ch; }

.features{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 18px; }
.feature{ background: var(--panel); border:1px solid var(--border); border-radius: 14px; padding: 18px; }

/* Services */
.services .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
  justify-content: center;   /* Grid als Ganzes zentrieren */
  justify-items: center;     /* Items in ihrer Zelle zentrieren */
}


.card{
  background: var(--bg); border:1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start;
}
.card .icon{
  font-size: 34px; display:grid; place-items:center; width:64px; height:64px; margin: 4px auto 6px; border-radius: 16px;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  transition: transform .18s ease, background .18s ease;
}
.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(211,0,0,.18), 0 6px 18px rgba(0,0,0,.08);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 6%, transparent), color-mix(in oklab, var(--accent) 2%, transparent));
  border-color: color-mix(in oklab, var(--accent) 45%, var(--border));
}
.card:hover .icon{ transform: scale(1.08); background: color-mix(in oklab, var(--accent) 16%, transparent); }
.card h3{ margin: 10px 0; text-align:center; color: var(--fg); }
.card p, .card ul{ color: color-mix(in oklab, var(--fg) 85%, transparent); }
.card ul{ margin: 10px 0 0 18px; }
.card-cta{ margin-top: 14px; display:flex; justify-content:center; }

/* Contact & Footer */
.contact .contact-form{ background: var(--panel); border:1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.contact .row{ display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.contact label{ display:block; margin: 8px 0; color: var(--fg); }
.contact input, .contact textarea{
  width:100%; padding: 12px 12px; border-radius: 10px; border:1px solid var(--border); font-size: 16px; color: var(--fg); background: var(--bg);
}
.site-footer{ border-top: 1px solid var(--border); padding: 28px 0; color: color-mix(in oklab, var(--fg) 85%, transparent); background: var(--bg); }
.site-footer .wrap{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.foot-nav a{ margin-right: 12px; text-decoration:none; color: var(--fg); opacity:.9; }
.foot-nav a:hover{ color: var(--accent); opacity:1; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}
/* Shorts Section */
.shorts {
  padding: 2rem 0;   /* weniger Abstand */
}

.shorts-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.short {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 180px;   /* ~70% kleiner */
  height: 320px;  /* 9:16 Format */
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.short:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}

.short iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* About weniger Abstand nach unten */
#about.section {
  padding-bottom: 20px;  /* statt 80px */
}

/* Shorts fast ohne Abstand nach oben */
#shorts.shorts {
  padding-top: 8px;      /* minimaler Abstand */
  padding-bottom: 28px;  /* unten normal lassen */
}

/* Shorts: Links/Rechts Abstand ueber Innenabstaende am Wrapper */
.rail-wrap{
  position: relative;
  padding-inline: 16px;     /* Abstand links/rechts */
}

/* horizontale Leiste bleibt wie gehabt – nur leicht angepasst */
.shorts-container{
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 8px 8px;       /* unten etwas Luft, plus mini Seiten-Polster */
  scrollbar-width: thin;
}
.shorts-container::-webkit-scrollbar{ height: 8px; }
.shorts-container::-webkit-scrollbar-thumb{
  background: color-mix(in oklab, var(--fg) 20%, transparent);
  border-radius: 8px;
}

/* Pfeiltasten: fast transparent, beim Hover farbig */
.rail-btn{
  position:absolute; top:50%; transform: translateY(-50%);
  width:40px; height:40px; border-radius:50%;
  border:1px solid var(--border);
  background: var(--panel);
  color: var(--fg);
  display:grid; place-items:center; cursor:pointer;
  opacity: .2;                 /* fast transparent */
  transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  box-shadow: var(--shadow);
  user-select: none;
}
.rail-btn.prev{ left: 4px; }
.rail-btn.next{ right: 4px; }
.rail-btn:hover{
  opacity: 1;
  transform: translateY(-50%) scale(1.06);
  background: color-mix(in oklab, var(--accent) 10%, var(--panel));
  border-color: color-mix(in oklab, var(--accent) 45%, var(--border));
  color: var(--fg);
}

/* Deaktiviert-Zustand (wenn nichts mehr zu scrollen ist) */
.rail-btn[disabled]{
  opacity: .08;
  pointer-events: none;
}

/* Shorts selbst (wenn noch nicht gesetzt) – kompakt 9:16 */
.shorts{ padding: 8px 0 28px; }         /* wenig Abstand zum About */
.short{
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 160px;
  height: 284px;                       /* 9:16 */
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.short:hover{
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.short iframe{
  width: 100%;
  height: 100%;
  border: 0;
}

/* Abstand links & rechts vom Fenster */
.shorts-container {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 40px 8px;   /* <<< links & rechts je 40px Abstand */
  scrollbar-width: thin;
}

/* Buttons für scrollen positionieren */
.rail-btn.prev { left: 12px; }   /* vorher 4px */
.rail-btn.next { right: 12px; }  /* vorher 4px */


.shorts-container {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 40px 8px;     /* Abstand links & rechts */
  scrollbar-width: thin;
  justify-content: center; /* <<< sorgt dafür, dass die Inhalte mittig starten */
}

/* Grundzustand: unsichtbar & leicht verschoben */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Sobald sichtbar */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}




/* Alle Sections text-align center */
.section {
  text-align: center;
}

.section p {
  margin-left: auto;
  margin-right: auto;
}

.feature {
  text-align: center;
}

.card {
  text-align: center;
}




/* Keine Bulletpoints bei dienstleistungen */
.card ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}


