/* ============================================================
   IDW Werbeagentur – Stylesheet
   2026-07-05 hellid: Basis-Design One-Pager (dunkel, Verläufe)
   ------------------------------------------------------------
   AUFBAU DIESER DATEI:
   1. Variablen (Farben, Abstände)   → hier Farben zentral ändern
   2. Grundlagen (Reset, Typografie)
   3. Header & Navigation
   4. Hero
   5. Sektionen allgemein (Badges, Überschriften)
   6. Angebot (Karten)
   7. Referenzen (Chips)
   8. Über uns (Zahlen)
   9. Kontakt (Buttons)
   10. Footer
   11. Unterseiten (Impressum/Datenschutz)
   12. Animationen
   13. Responsive (Handy/Tablet)
   ============================================================ */

/* ---------- 1. VARIABLEN ---------- */
:root {
  --bg: #0b0b14;              /* Seitenhintergrund */
  --bg-soft: #12121f;         /* Kartenhintergrund */
  --bg-card: #161627;         /* Karten, etwas heller */
  --line: rgba(255,255,255,.08);
  --text: #f4f4f8;            /* Haupttext */
  --text-mut: #a8a8bf;        /* gedämpfter Text */
  --acc1: #8b5cf6;            /* Violett  */
  --acc2: #ec4899;            /* Pink     */
  --acc3: #22d3ee;            /* Cyan     */
  --grad: linear-gradient(100deg, var(--acc1), var(--acc2));
  --grad-3: linear-gradient(100deg, var(--acc3), var(--acc1), var(--acc2));
  --radius: 18px;
  --maxw: 1120px;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace;
}

/* ---------- 2. GRUNDLAGEN ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; } /* verhindert seitliches Scrollen am Handy */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
::selection { background: var(--acc1); color: #fff; }
img, svg { vertical-align: middle; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Verlaufstext (z.B. Wort im Slogan) */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 3. HEADER & NAVIGATION ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11,11,20,.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .logo { width: 40px; height: 40px; color: #fff; transition: transform .4s ease; }
.brand:hover .logo { transform: rotate(360deg); }
.brand .brand-name { font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.brand .brand-name span { color: var(--text-mut); font-weight: 400; }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  text-decoration: none; color: var(--text-mut);
  padding: 8px 14px; border-radius: 999px; font-size: 15px;
  transition: color .2s, background .2s;
  white-space: nowrap; /* Buttons brechen nie in zwei Zeilen um */
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,.07); }
.nav-cta {
  background: var(--grad) !important; color: #fff !important; font-weight: 600;
}
.nav-toggle { display: none; }

/* ---------- 4. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  text-align: center;
}
/* animierte Farbflächen im Hintergrund */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: .35; z-index: -1;
}
.hero::before {
  width: min(540px, 90vw); height: min(540px, 90vw); background: var(--acc1);
  top: -140px; left: -140px;
  animation: float1 14s ease-in-out infinite alternate;
}
.hero::after {
  width: min(460px, 80vw); height: min(460px, 80vw); background: var(--acc2);
  bottom: -120px; right: -120px;
  animation: float2 17s ease-in-out infinite alternate;
}
@keyframes float1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes float2 { to { transform: translate(-120px, -70px) scale(1.1); } }

.hero .wrap { width: 100%; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding: 7px 16px; border-radius: 999px;
  font-size: 14px; color: var(--text-mut);
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.5); opacity: .6; } }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.06; letter-spacing: -.02em;
  font-weight: 800; margin: 26px 0 22px;
}
.hero .sub {
  max-width: 680px; margin: 0 auto 34px;
  color: var(--text-mut); font-size: clamp(1.2rem, 2.4vw, 1.44rem); /* +20% lt. Helmut */
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.mono-line {
  margin-top: 56px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .28em;
  color: var(--text-mut); text-transform: uppercase;
}
.mono-line b { color: #fff; font-weight: 700; }

/* Scroll-Hinweis (springender Pfeil) */
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--text-mut); animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,10px);} }

/* ---------- 5. SEKTIONEN ALLGEMEIN ---------- */
section { padding: 110px 0; position: relative; }

/* Zarte Farb-Flares (wie im Hero, nur dezenter) für mehr Tiefe */
#angebot::before, #referenzen::before, #agentur::before, #kontakt::before {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(120px); z-index: -1; pointer-events: none;
}
#angebot::before {
  width: min(480px, 70vw); height: min(480px, 70vw);
  background: var(--acc1); opacity: .14;
  top: 5%; right: -160px;
}
#referenzen::before {
  width: min(520px, 75vw); height: min(520px, 75vw);
  background: var(--acc3); opacity: .10;
  top: 25%; left: -200px;
}
#agentur::before {
  width: min(440px, 65vw); height: min(440px, 65vw);
  background: var(--acc2); opacity: .12;
  bottom: 0; right: -140px;
}
#kontakt::before {
  width: min(560px, 80vw); height: min(560px, 80vw);
  background: var(--acc1); opacity: .16;
  top: 15%; left: 50%; transform: translateX(-50%);
}
.sec-head { max-width: 700px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.12; letter-spacing: -.015em; font-weight: 800;
  margin-top: 18px;
}
.sec-head p { color: var(--text-mut); margin-top: 14px; font-size: 1.26rem; } /* +20% */

/* ---------- 6. ANGEBOT (Karten) ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative; overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(139,92,246,.45);
  background: var(--bg-card);
}
/* dezenter Verlaufsschein oben auf jeder Karte */
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity .35s ease;
}
.card:hover::before { opacity: 1; }

.card .num {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .2em;
  color: var(--text-mut);
}
.card .icon {
  width: 52px; height: 52px; margin: 18px 0 16px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(139,92,246,.12);
  color: var(--acc1);
  transition: transform .35s ease, background .35s ease, color .35s ease;
}
.card:hover .icon { transform: scale(1.12) rotate(-6deg); background: rgba(236,72,153,.14); color: var(--acc2); }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { color: var(--text-mut); font-size: 1.16rem; } /* +20% */

/* Mini-Überschrift (z.B. „Ausgewählte Kundenbeispiele") */
.mini-title {
  text-align: center;
  font-family: var(--mono); font-size: 13px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-mut);
  margin: -20px 0 34px;
}

/* ---------- 7. REFERENZEN (Kundenkarten mit Kurzbeschreibung) ---------- */
.client-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.client-card {
  display: block; text-decoration: none;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.client-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139,92,246,.5);
  box-shadow: 0 14px 36px -16px rgba(139,92,246,.45);
}
.client-card h3 { font-size: 1.12rem; margin-bottom: 8px; letter-spacing: -.01em; }
.client-card p { color: var(--text-mut); font-size: 1.05rem; margin-bottom: 12px; }
.client-card .domain {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .05em;
  color: var(--acc3);
}
.client-card:hover .domain::after { content: " ↗"; }

/* ---------- 7b. BRANCHEN („Wir sind für alle da") ---------- */
.branches { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.branch-chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text-mut);
  padding: 9px 18px; border-radius: 999px;
  font-size: 1.02rem;
  transition: all .25s ease;
  cursor: default;
}
.branch-chip:hover {
  color: #fff; transform: translateY(-2px);
  border-color: rgba(236,72,153,.5);
  background: rgba(139,92,246,.12);
}
/* Zufälliges Aufleuchten einzelner Pillen (Klasse wird per script.js gesetzt) */
.branch-chip.glow {
  color: #fff;
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 0 26px -4px rgba(236,72,153,.65);
  transform: translateY(-2px) scale(1.06);
}
.branch-chip { transition: all .6s ease; }
.branches-note {
  text-align: center; margin-top: 34px;
  color: var(--text-mut); font-size: 1.2rem; font-style: italic;
}

/* ---------- 8. ÜBER UNS ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center;
}
.about-text p { color: var(--text-mut); font-size: 1.28rem; } /* +20% */
.about-text p + p { margin-top: 18px; }
.about-text strong { color: var(--text); }

.stats { display: grid; gap: 18px; }
.stat {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 24px 28px;
  transition: transform .3s ease, border-color .3s ease;
}
.stat:hover { transform: translateX(8px); border-color: rgba(236,72,153,.4); }
.stat .n {
  font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat .l { color: var(--text-mut); font-size: .95rem; }

/* ---------- 9. KONTAKT ---------- */
.contact { text-align: center; }
.contact-ctas {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 40px;
}

/* Buttons – gelten auch im Hero */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 1.02rem;
  padding: 16px 30px; border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 34px -12px rgba(236,72,153,.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -12px rgba(236,72,153,.7); }
.btn-ghost {
  border: 1px solid var(--line); color: var(--text);
  background: rgba(255,255,255,.04);
}
.btn-ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,.09); }
/* Lichtstreifen, der beim Hover über den Button läuft */
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
}
.btn:hover::after { left: 130%; }
.btn .btn-icon { width: 21px; height: 21px; }

/* ---------- 10. FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0; color: var(--text-mut); font-size: .92rem;
}
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.site-footer a { color: var(--text-mut); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 22px; }

/* ---------- 11. UNTERSEITEN (Impressum/Datenschutz) ---------- */
.subpage { padding: 150px 0 90px; max-width: 780px; }
.subpage h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 30px; letter-spacing: -.015em; }
.subpage h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.subpage h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.subpage h4 { font-size: 1rem; margin: 20px 0 6px; color: var(--text); }
.subpage p, .subpage li { color: var(--text-mut); margin-bottom: 12px; font-size: 1.2rem; } /* +20% */
.subpage ul { padding-left: 22px; }
.subpage a { color: var(--acc3); }

/* ---------- 12. ANIMATIONEN (Scroll-Reveal) ---------- */
/* Elemente mit .reveal werden per JS eingeblendet, sobald sie ins Bild scrollen */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
/* gestaffelte Verzögerung für Karten & Chips */
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

/* Nutzer, die Animationen reduziert haben wollen, bekommen alles sofort */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 13. RESPONSIVE ---------- */
@media (max-width: 920px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .client-cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .cards { grid-template-columns: 1fr; }
  .client-cards { grid-template-columns: 1fr; }
  /* Navigation: auf dem Handy nur Logo + Anfrage-Button, alles einzeilig */
  .main-nav a:not(.nav-cta) { display: none; }
  .site-header .wrap { height: 60px; gap: 10px; }
  .brand .logo { width: 32px; height: 32px; }
  .brand .brand-name { font-size: 15px; }
  .brand .brand-name span { display: none; } /* nur „IDW" neben dem Logo */
  .nav-cta { padding: 8px 16px !important; font-size: 14px; }
  .hero { padding-top: 110px; }
  .mono-line { letter-spacing: .18em; font-size: 11px; }
  .contact-ctas .btn { width: 100%; justify-content: center; }
  /* Branchen-Bereich kompakter (weniger Scroll-Höhe) */
  .branches { gap: 7px; }
  .branch-chip { padding: 5px 12px; font-size: .82rem; }
  .branches-note { margin-top: 24px; font-size: 1.05rem; }
  #branchen { padding: 60px 0; }
}
