/* ============================================================
   True Legacy Ink – Stylesheet
   Fonts lokal (kein Google-Server => DSGVO-freundlich)
   ============================================================ */
@font-face { font-family: "Pirata One"; src: url("../fonts/PirataOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("../fonts/PermanentMarker-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ink: #06030b;
  --panel: #120a1e;
  --panel-2: #1a0f2b;
  --line: #34214f;
  --magenta: #ff2fd0;
  --violet: #8a2bff;
  --blue: #1f8bff;
  --cyan: #4fe3ff;
  --chrome: #ece7f5;
  --muted: #aaa1c2;
  --ok: #3ee69b;
  --err: #ff5470;
  --display: "Pirata One", "UnifrakturMaguntia", Georgia, serif;
  --tag: "Permanent Marker", "Comic Sans MS", cursive;
  --body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --neon: linear-gradient(90deg, var(--magenta), var(--violet) 50%, var(--blue));
  --chrome-text: linear-gradient(180deg, #ffffff 0%, #ddd6ea 38%, #ff8fe9 56%, #a68bff 74%, #6fd6ff 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chrome);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
/* Sprühnebel im Hintergrund */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 30vw at 8% 12%, rgba(255, 47, 208, .10), transparent 70%),
    radial-gradient(38vw 34vw at 95% 30%, rgba(31, 139, 255, .10), transparent 70%),
    radial-gradient(45vw 30vw at 50% 105%, rgba(138, 43, 255, .12), transparent 70%);
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--magenta); color: #000; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
.chrome {
  background: var(--chrome-text);
  background-size: 100% 1.05em; background-repeat: repeat-y;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 47, 208, .35)) drop-shadow(0 2px 0 rgba(0, 0, 0, .8));
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.7rem; color: var(--chrome); }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; color: #d9d2ea; }
.tag-note { font-family: var(--tag); color: var(--cyan); font-size: 1.15rem; transform: rotate(-3deg); display: inline-block; }

/* Überschrift mit Farbtropfen */
.drip-head { margin-bottom: 2rem; }
.drip-head h2 { margin-bottom: .1em; }
.fit-line { max-width: 100%; }
.drip-head .drip-bar { display: block; width: 220px; height: 26px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 3, 11, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand-name { font-family: var(--display); font-size: 1.75rem; background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mainnav { display: flex; gap: .3rem; }
.mainnav a {
  position: relative; padding: .55rem .9rem; color: var(--chrome); text-decoration: none;
  font-family: var(--display); font-size: 1.35rem;
}
.mainnav a::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 3px;
  background: var(--neon); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.mainnav a:hover::after, .mainnav a.is-active::after { transform: scaleX(1); }
.mainnav a.is-active { color: #fff; text-shadow: 0 0 12px rgba(255, 47, 208, .7); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--chrome); margin: 4px 0; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .mainnav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; display: none;
  }
  .mainnav.open { display: flex; }
  .brand-name { font-size: 1.4rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font: 600 1rem/1 var(--body); text-decoration: none; letter-spacing: .02em;
  padding: .95rem 1.5rem; border-radius: 999px; border: 0; color: #fff;
  background: var(--neon); box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 8px 28px rgba(255, 47, 208, .28);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 10px 34px rgba(138, 43, 255, .45); }
.btn-ghost { background: transparent; border: 1.5px solid var(--cyan); color: var(--cyan); box-shadow: none; }
.btn-ghost:hover { color: #000; background: var(--cyan); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-banner { position: relative; max-width: 1600px; margin: 0 auto; }
.hero-banner img { width: 100%; aspect-ratio: 1983 / 793; object-fit: cover; }
.hero-banner::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 35%;
  background: linear-gradient(transparent, var(--ink));
}
.hero-copy { position: relative; padding: 1.5rem 0 3rem; }
@media (min-width: 861px) { .hero-copy { margin-top: -2.5rem; padding-top: 0; } }
.hero-copy .tag-note { margin-bottom: .6rem; }
.hero-copy p { font-size: 1.2rem; }

/* ---------- Sektionen ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(138, 43, 255, .06) 30%, rgba(31, 139, 255, .05) 70%, transparent); }
.split > * { min-width: 0; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.about-badge { position: relative; justify-self: center; max-width: 360px; }
.about-badge img { filter: drop-shadow(0 0 40px rgba(138, 43, 255, .45)); }
.about-badge .tag-note { position: absolute; bottom: -.5rem; right: -1rem; font-size: 1.4rem; color: var(--magenta); }

/* Leistungen als Flash-Sheet */
.flash-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0; border: 1px dashed var(--line); }
.flash-item { padding: 1.6rem 1.6rem 1.4rem; border: 1px dashed var(--line); position: relative; }
.flash-item h3 { font-size: 1.85rem; margin-bottom: .3rem; background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flash-item p { color: var(--muted); margin: 0; }
.flash-item::before { content: ""; position: absolute; left: 1.6rem; top: 0; width: 36px; height: 3px; background: var(--neon); }

/* Galerie-Vorschau */
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.strip a { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 1; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.strip a:hover img { transform: scale(1.06); }

/* Info-Block */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.info-grid h3 { color: var(--magenta); font-size: 1.6rem; }
.cta-band {
  border-radius: 18px; padding: 2.5rem; text-align: center;
  background: radial-gradient(circle at 20% 0%, rgba(255, 47, 208, .25), transparent 55%),
              radial-gradient(circle at 90% 100%, rgba(31, 139, 255, .25), transparent 55%), var(--panel);
  border: 1px solid var(--line);
}
.cta-band p { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head { padding: 3.5rem 0 1rem; }
.page-head p { color: var(--muted); }

/* ---------- Vorlagen ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.chip {
  font: 600 .95rem/1 var(--body); padding: .6rem 1rem; border-radius: 999px; cursor: pointer; text-decoration: none;
  color: var(--chrome); background: var(--panel); border: 1px solid var(--line);
}
.chip:hover { border-color: var(--violet); color: #fff; }
.chip.is-active { background: var(--neon); border-color: transparent; color: #fff; }
.chip small { opacity: .7; font-weight: 400; margin-left: .25rem; }
.search { display: flex; gap: .5rem; margin-bottom: 2rem; max-width: 460px; }
.search input { flex: 1; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem; }
.tpl {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
}
.tpl-img { background: #f4f1f8; aspect-ratio: 1; display: grid; place-items: center; padding: 14px; cursor: zoom-in; }
.tpl-img img { max-height: 100%; object-fit: contain; }
.tpl-img .pdf { font-family: var(--display); font-size: 3rem; color: #333; }
.tpl-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .8rem; }
.tpl-meta strong { display: block; font-weight: 600; line-height: 1.25; }
.tpl-meta small { color: var(--muted); display: block; }
.tpl-meta .src { font-size: .78rem; opacity: .8; }
.dl-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--neon); color: #fff; text-decoration: none; box-shadow: 0 4px 18px rgba(255, 47, 208, .35);
}
.dl-btn:hover { color: #fff; transform: scale(1.08); }
.dl-btn svg { width: 20px; height: 20px; }
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pager a, .pager span { padding: .5rem .85rem; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--chrome); }
.pager .cur { background: var(--neon); border-color: transparent; }
.notice { color: var(--muted); font-size: .95rem; border-left: 3px solid var(--violet); padding: .4rem 0 .4rem 1rem; margin-top: 2.5rem; }

/* ---------- Galerie ---------- */
.masonry { columns: 3 280px; column-gap: 1rem; }
.masonry figure { margin: 0 0 1rem; break-inside: avoid; position: relative; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.masonry figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem .9rem .7rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85)); opacity: 0; transition: opacity .2s;
}
.masonry figure:hover figcaption, .masonry figure:focus-within figcaption { opacity: 1; }
.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4, 2, 8, .94); display: none; place-items: center; padding: 2rem; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 84vh; max-width: 92vw; border-radius: 8px; box-shadow: 0 0 60px rgba(138, 43, 255, .4); }
.lightbox p { text-align: center; margin: .8rem auto 0; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; }
.lb-next { right: 1rem; top: 50%; }

/* ---------- Formulare ---------- */
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 1.3rem; } }
label { display: block; font-weight: 600; margin-bottom: .35rem; }
label .req { color: var(--magenta); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--chrome); background: #0c0614; border: 1px solid var(--line);
  border-radius: 10px; padding: .75rem .9rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(255, 47, 208, .2); }
textarea { min-height: 160px; resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--muted); }
.check input { margin-top: .35rem; accent-color: var(--magenta); }
.hp { position: absolute; left: -5000px; }
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center;
  padding: 1.6rem 1rem; border: 2px dashed var(--line); border-radius: 12px; background: #0c0614; cursor: pointer;
  font-weight: 400; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--magenta); background: rgba(255, 47, 208, .06); }
.dropzone:focus-within { border-color: var(--cyan); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dz-title { font-family: var(--display); font-size: 1.5rem; color: var(--chrome); }
.dz-hint { color: var(--muted); font-size: .92rem; max-width: 52ch; }
.file-list { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .45rem; }
.file-list li { display: flex; align-items: center; gap: .7rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .6rem; }
.file-list img, .file-list .ficon { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; background: #241538; display: grid; place-items: center; font-size: .75rem; font-weight: 600; color: var(--cyan); }
.file-list .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list small { color: var(--muted); }
.file-list .bad { color: var(--err); }
.file-list button { background: none; border: 1px solid var(--line); color: var(--chrome); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; flex: none; }
.file-list button:hover { border-color: var(--err); color: var(--err); }
.alert { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.2rem; border: 1px solid; }
.alert-success { border-color: var(--ok); background: rgba(62, 230, 155, .08); }
.alert-error { border-color: var(--err); background: rgba(255, 84, 112, .08); }
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-side h3 { color: var(--magenta); }

/* ---------- Rechtstexte ---------- */
.legal { padding-bottom: 4rem; }
.legal h2 { font-size: 2rem; margin-top: 2rem; }
.legal h3 { font-family: var(--body); font-weight: 600; font-size: 1.15rem; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 4rem; background: #04020a; position: relative; padding-top: 3.5rem; border-top: 0; }
.drip-top { position: absolute; top: 0; left: 0; width: 100%; height: 46px; }
.footer-grid { display: grid; grid-template-columns: 140px repeat(3, 1fr); gap: 2rem; padding-block: 2rem; }
.footer-grid h3 { color: var(--magenta); font-size: 1.5rem; }
.footer-grid p { color: var(--muted); }
.footer-grid a { color: var(--chrome); text-decoration: none; }
.footer-grid a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer-bottom a { color: var(--muted); margin-left: 1.1rem; text-decoration: none; }
.footer-bottom a:hover { color: var(--cyan); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.footer-logo { display: inline-block; border-radius: 50%; transition: filter .2s, transform .2s; }
.footer-logo:hover { filter: drop-shadow(0 0 14px rgba(255, 47, 208, .55)); transform: rotate(-4deg); }
.brand-logo { display: block; border-radius: 50%; flex: none; transition: filter .2s, transform .2s; }
.brand-logo:hover { filter: drop-shadow(0 0 12px rgba(255, 47, 208, .6)); transform: rotate(-6deg); }
a.brand-name { text-decoration: none; }
