/* ==========================================================================
   SteLar Druck & Handel GbR  |  stelar-druck.de
   Zentrales Stylesheet für alle Seiten, v3 (heller Framer-Stil)
   Schriften: Inter Tight (Überschriften), Inter (Text)
   Farben, Schriften und Abstände nur hier in :root ändern.
   ========================================================================== */

/* ---------- Design-Token ---------- */
:root {
  --paper:      #F6F6F3;   /* Seitenhintergrund */
  --surface:    #FFFFFF;   /* Karten */
  --paper-deep: #EFEFEB;   /* Abgesetzte Flächen */
  --ink:        #0C0C10;   /* Text */
  --ink-2:      #2A2A33;
  --muted:      #5D5D68;   /* Sekundärtext */
  --blue:       #1E4FD8;   /* SteLar-Blau */
  --blue-dark:  #1741B3;   /* Hover */
  --tint:       #E9EEFF;   /* Blau-Tint */
  --line:       rgba(12, 12, 16, 0.09);
  --line-strong:rgba(12, 12, 16, 0.16);
  --glow-1:     #5B7CFF;
  --glow-2:     #A78BFA;
  --glow-3:     #38BDF8;

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(12,12,16,.05);
  --shadow-md: 0 1px 2px rgba(12,12,16,.04), 0 12px 32px -12px rgba(12,12,16,.14);
  --shadow-lg: 0 2px 4px rgba(12,12,16,.04), 0 40px 80px -30px rgba(30,79,216,.28);
  --section: clamp(56px, 7vw, 96px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin: 0 0 .5em; overflow-wrap: break-word; }
h1 { font-size: clamp(42px, 7.4vw, 104px); line-height: .98; letter-spacing: -0.048em; }
h2 { font-size: clamp(32px, 4.8vw, 60px); line-height: 1.04; letter-spacing: -0.04em; }
h3 { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.2; letter-spacing: -0.025em; }
p  { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.55vw, 20px); line-height: 1.55; color: var(--muted); max-width: 48ch; letter-spacing: -0.01em; }
/* Hervorhebung in Überschriften: Farbverlauf im SteLar-Blau */
.em-i {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue) 10%, #6D5BFF 55%, #0EA5E9 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .01em;
  padding: 6px 14px 6px 10px; background: rgba(255,255,255,.75);
  border: 1px solid var(--line); border-radius: var(--pill); box-shadow: var(--shadow-sm);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--tint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--pill);
  background: var(--ink); color: #fff; border: 1px solid transparent;
  font: 500 15px/1 var(--font-body); letter-spacing: -0.01em; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 8px 20px -8px rgba(12,12,16,.5);
  transition: transform .3s var(--ease), background .2s, box-shadow .3s var(--ease);
}
.btn::after { content: "→"; transition: transform .3s var(--ease); }
.btn:hover { background: #22222B; color: #fff; }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost::after { content: none; }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }

/* ---------- Navigation: schwebende Pille ---------- */
.site-header {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100;
  width: min(calc(100% - 24px), 1160px);
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--line); border-radius: 30px;
  box-shadow: 0 8px 30px -12px rgba(12,12,16,.12);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(255,255,255,.9); box-shadow: 0 12px 40px -14px rgba(12,12,16,.22); }
.nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 7px 7px 7px 18px; max-width: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font: 650 19px/1 var(--font-display); letter-spacing: -0.03em; margin: 0; }
.brand:hover { color: var(--ink); }
.brand-star { width: 24px; height: 24px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 9px 12px; border-radius: var(--pill); color: var(--ink-2); font-size: 14.5px; font-weight: 450; transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--paper-deep); color: var(--ink); }
.nav-links a.nav-cta { background: var(--ink); color: #fff; margin-left: 8px; padding: 10px 18px; font-weight: 500; }
.nav-links a.nav-cta:hover { background: #22222B; color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper-deep); color: var(--ink); font-size: 18px; cursor: pointer; }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 4px 4px 8px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 16px; }
  .nav-links a.nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- Hero mit leuchtendem Farbverlauf ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(130px, 15vw, 180px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% 10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(30% 40% at 25% 20%, rgba(91,124,255,.55), transparent 70%),
    radial-gradient(28% 38% at 78% 15%, rgba(167,139,250,.45), transparent 70%),
    radial-gradient(26% 32% at 52% 55%, rgba(56,189,248,.35), transparent 70%);
  filter: blur(40px);
  animation: drift 18s var(--ease) infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 25%, transparent 75%);
}
@keyframes drift { to { transform: translate3d(30px, 24px, 0) scale(1.06); } }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 20ch; margin-bottom: 26px; }
.hero .lead { margin: 0 auto 34px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Eckdaten als Glas-Leiste */
.spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0;
  width: 100%; max-width: 1000px; margin: clamp(40px, 5vw, 64px) auto 0; padding: 8px;
  background: rgba(255,255,255,.62); border: 1px solid var(--line); border-radius: var(--r-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg); text-align: left;
}
.spec div { padding: 18px 20px; border-radius: 20px; }
.spec div + div { border-left: 1px solid var(--line); }
.spec dt { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.spec dd { margin: 0; font: 600 16px/1.35 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
@media (max-width: 820px) { .spec div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Sektionen ---------- */
.section { padding: var(--section) 0; position: relative; }
.section-deep { background: transparent; }
.section-deep::before { content: ""; position: absolute; inset: 0 clamp(8px, 1.5vw, 20px); background: var(--paper-deep); border-radius: 40px; z-index: -1; }
.section, .section-deep { isolation: isolate; }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 { margin-bottom: 18px; }
.section-head .lead { margin: 0; }

/* ---------- Karten (Bento) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 34px); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { margin: 10px 0 8px; }
.card p { color: var(--muted); margin: 0; }
.card-tags {
  align-self: flex-start; font-size: 12.5px !important; font-weight: 500;
  padding: 5px 11px; border-radius: var(--pill); background: var(--tint); color: var(--blue) !important;
}
.card-link { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--ink); }
.card-link::after { content: "→"; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-deep); transition: transform .4s var(--ease), background .3s, color .3s; }
.card:hover .card-link::after { background: var(--ink); color: #fff; transform: rotate(-45deg); }

/* Startseite: drei gleich große Kacheln, Laser dunkel, 3D-Druck blau */
.home .card:nth-child(2) { background: var(--ink); border-color: transparent; }
.home .card:nth-child(3) { background: linear-gradient(145deg, #2657E6, #1739A8); border-color: transparent; }
.home .card:nth-child(2) h3, .home .card:nth-child(3) h3, .home .card:nth-child(2) .card-link, .home .card:nth-child(3) .card-link { color: #fff; }
.home .card:nth-child(2) p { color: rgba(255,255,255,.66); }
.home .card:nth-child(3) p { color: rgba(255,255,255,.8); }
.home .card:nth-child(2) .card-tags, .home .card:nth-child(3) .card-tags { background: rgba(255,255,255,.14); color: #fff !important; }
.home .card:nth-child(2) .card-link::after, .home .card:nth-child(3) .card-link::after { background: rgba(255,255,255,.14); }
.home .card:nth-child(2):hover .card-link::after, .home .card:nth-child(3):hover .card-link::after { background: #fff; color: var(--ink); }

@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr !important; } }

/* ---------- Bildplatzhalter ----------
   Zum Ersetzen: <div class="ph-box">bilder/NAME.jpg</div> durch
   <img src="bilder/NAME.jpg" alt="Beschreibung" loading="lazy"> tauschen. */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr; } }
.ph { margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ph:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ph-box, .ph img {
  aspect-ratio: 4 / 3; width: 100%; border-radius: 20px !important; object-fit: cover;
  display: grid; place-items: center; padding: 16px; text-align: center;
  font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(91,124,255,.22), transparent 60%),
    radial-gradient(90% 90% at 90% 90%, rgba(167,139,250,.2), transparent 60%),
    repeating-linear-gradient(135deg, #ECECE8 0 14px, #F2F2EF 14px 28px);
}
.ph img { padding: 0; height: auto; display: block; }
.ph figcaption { padding: 14px 10px 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }

/* ---------- Befestigungssysteme (Startseite) ---------- */
.band .band-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-sm);
}
.band .band-grid > div:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 5vw, 72px); align-items: end; padding: 8px 4px 18px; }
.band .band-grid > div:first-child .eyebrow, .band .band-grid > div:first-child h2 { grid-column: 1; }
.band .band-grid > div:first-child p:not(.eyebrow), .band .band-grid > div:first-child .btn { grid-column: 2; justify-self: start; }
.band .band-grid > div:first-child .eyebrow { justify-self: start; }
@media (max-width: 800px) { .band .band-grid > div:first-child { grid-template-columns: 1fr; } .band .band-grid > div:first-child > * { grid-column: 1 !important; } }
.band .band-grid > div:first-child p { color: var(--muted); }
.band .band-grid h2 { font-size: clamp(28px, 3.2vw, 40px); }
.band-item { padding: 24px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.band-item h3 { font-size: 18px; margin-bottom: 8px; }
.band-item p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 800px) { .band .band-grid { grid-template-columns: 1fr; } }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 50%;
  background: var(--tint); color: var(--blue); font: 600 14px/1 var(--font-display);
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 24px; transition: border-color .3s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 21px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 500; font-size: 17px; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-deep); font-size: 18px; transition: transform .3s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--tint); color: var(--blue); }
.faq details p { color: var(--muted); margin: 0 0 22px; max-width: 70ch; }

/* ---------- Abschluss-CTA (dunkel mit Glow) ---------- */
.cta-block {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  background: var(--ink); color: #fff; border-radius: 36px;
  padding: clamp(56px, 8vw, 110px) clamp(24px, 6vw, 80px);
}
.cta-block::before {
  content: ""; position: absolute; inset: 30% -20% -60%; z-index: -1;
  background: radial-gradient(35% 50% at 25% 60%, rgba(91,124,255,.7), transparent 70%),
              radial-gradient(35% 50% at 78% 60%, rgba(167,139,250,.55), transparent 70%);
  filter: blur(50px);
}
.cta-block h2 { color: #fff; }
.cta-block .lead { color: rgba(255,255,255,.72); margin: 0 auto 30px; }
.cta-block .btn { background: var(--blue); }
.cta-block .btn:hover { background: var(--blue-dark); }

/* ---------- Über uns / Kontakt ---------- */
.about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.contact-grid { align-items: start; }
.about-grid p:not(.eyebrow) { color: var(--ink-2); }
.about-grid .ph-box, .about-grid .ph img { aspect-ratio: 4 / 5; }
.about-grid .ph { max-width: 480px; justify-self: end; width: 100%; }
@media (max-width: 900px) { .about-grid .ph { justify-self: stretch; max-width: none; } }
@media (max-width: 900px) { .about-grid, .contact-grid { grid-template-columns: 1fr; } }

.contact-grid > div > p:not(.eyebrow):not(.lead) {
  padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink-2);
}
form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  font: 400 16px/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--tint); }
form .btn { width: 100%; min-height: 52px; background: var(--blue); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 24px -10px rgba(30,79,216,.7); }
form .btn:hover { background: var(--blue-dark); }
.form-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.form-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Rechtliches ---------- */
.legal { padding-top: clamp(120px, 14vw, 160px); }
.legal h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 32px; }
.legal h2 { margin-top: 1.6em; font-size: clamp(28px, 3.4vw, 40px); }
.legal h3 { margin-top: 1.6em; font-size: 20px; }
.legal p { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(32px, 4vw, 56px); padding: 56px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; overflow: hidden; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--blue); }
.site-footer strong { color: var(--ink); font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-grid .brand { margin-bottom: 14px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll-Animationen ----------
   Nur aktiv, wenn JavaScript läuft (Klasse "js" im <head>). Ohne JS bleibt alles sichtbar. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease-out, transform .55s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2), .band-grid .reveal:nth-child(3) { transition-delay: .05s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3), .band-grid .reveal:nth-child(4) { transition-delay: .1s; }
.steps .reveal:nth-child(4) { transition-delay: .15s; }

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

/* ==========================================================================
   FOTOS AUSGEBLENDET
   Solange keine echten Fotos da sind, sind Galerien und das Team-Foto
   ausgeblendet. Wenn die Fotos in /bilder liegen: diesen Block löschen.
   (Das Team-Foto bei "Über uns" ist bereits eingebunden.)
   ========================================================================== */
.fotos { display: none !important; }

/* Mobiles Menü geöffnet: Hintergrund deckend */
.site-header:has(.nav-links.open) { background: rgba(255,255,255,.97); }
