/* =========================================================
   DK Veranstaltungstechnik – Corporate Design
   Primärfarbe aus dem Logo: #2393D3
   Keine externen Schriften/Skripte → keine Cookies, DSGVO-freundlich
   ========================================================= */

:root {
  /* CI-Farben */
  --dk-blue: #2393D3;
  --dk-blue-light: #5DB4E6;
  --dk-blue-dark: #1A6FA0;

  /* Flächen */
  --bg: #0A0F16;
  --bg-alt: #0F1620;
  --surface: #141D29;
  --surface-2: #1B2634;
  --line: #243243;
  --dark: #0A0F16;
  --shadow: none;

  /* Text */
  --text: #EEF3F8;
  --text-muted: #A3B1C2;
  --accent: #5DB4E6; /* helles Logo-Blau für Text auf dunklem Grund */
  --text-on-blue: #04121C;

  /* Typografie */
  --font: "Avenir Next", "Avenir", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.3rem + 4.2vw, 4.25rem);

  /* Raster */
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--dk-blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.02em; }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; text-wrap: pretty; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--dk-blue); }
.lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lg); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--dk-blue); color: var(--text-on-blue); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--dk-blue); color: var(--text-on-blue); }
.btn--primary:hover { background: var(--dk-blue-light); color: var(--text-on-blue); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(10,15,22,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav a { color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .btn:hover { color: var(--text-on-blue); }
.nav .btn { color: var(--text-on-blue); padding-inline: 1.2rem; min-height: 42px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-base); }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { color: #fff; position: relative; isolation: isolate; min-height: min(80vh, 760px); display: flex; align-items: center; padding-block: clamp(64px, 8vw, 104px) clamp(88px, 10vw, 128px); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,15,22,.75) 0%, rgba(10,15,22,0) 65%), linear-gradient(180deg, rgba(10,15,22,0) 60%, rgba(10,15,22,.7) 100%); }
.hero h1 { max-width: 15ch; }
.hero h1 span, .hero .eyebrow { color: var(--dk-blue-light); }
.hero .lead { color: #D3DDE8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ---------- Fakten ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(-48px, -4vw, -32px); position: relative; box-shadow: var(--shadow); }
.fact { background: var(--surface); padding: 24px; }
.fact strong { display: block; font-size: var(--fs-lg); margin-bottom: 4px; }
.fact span { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.5; display: block; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: border-color .25s, transform .25s;
}
.service:hover { border-color: var(--dk-blue-dark); transform: translateY(-3px); }
.service__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(35,147,211,.14); color: var(--accent); margin-bottom: 20px; }
.service__icon svg { width: 26px; height: 26px; }
.service h3 { margin-bottom: .4em; }
.service p { color: var(--text-muted); font-size: var(--fs-sm); }
.checklist { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.checklist li { position: relative; padding-left: 26px; line-height: 1.5; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .38em; width: 14px; height: 8px; border-left: 2px solid var(--dk-blue); border-bottom: 2px solid var(--dk-blue); transform: rotate(-45deg); }

/* ---------- Über uns ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before { content: counter(step, decimal-leading-zero); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--dk-blue); color: var(--accent); font-weight: 700; font-size: var(--fs-sm); }
.steps strong { display: block; }
.steps span { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 64px); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 12px; margin-top: 2rem; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: border-color .2s; }
a.contact-card:hover { border-color: var(--dk-blue); color: var(--text); }
.contact-card svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.contact-card small { display: block; color: var(--text-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.contact-card span { font-weight: 600; word-break: break-word; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem; min-height: 48px; transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::-webkit-calendar-picker-indicator { filter: invert(.8); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--dk-blue); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #E2665B; }
.form__note { font-size: var(--fs-xs); color: var(--text-muted); margin: 0; }
.form__status { grid-column: 1 / -1; margin: 0; font-size: var(--fs-sm); color: var(--accent); min-height: 1.5em; }

/* ---------- CTA-Band ---------- */
.cta-band { background: linear-gradient(120deg, var(--dk-blue-dark), var(--dk-blue)); color: #fff; border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); }
.cta-band .btn { background: #fff; color: var(--text-on-blue); }
.cta-band .btn:hover { background: var(--dark); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; background: var(--bg); font-size: var(--fs-sm); color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img { height: 56px; width: auto; margin-bottom: 16px; }
.site-footer h4 { color: var(--text); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-xs); }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 800px; }
.legal h1 { font-size: var(--fs-h2); }
.legal h2 { font-size: 1.375rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.0625rem; margin-top: 1.6em; }
.legal p, .legal li { color: #CBD5E1; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal address { font-style: normal; }
.todo { background: rgba(226,170,60,.12); border-left: 3px solid #E2AA3C; padding: 10px 14px; color: #F2D08A !important; font-size: var(--fs-sm); border-radius: 4px; }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Markenfläche (Über uns) ---------- */
.brand-panel { display: grid; place-items: center; padding: 12%; background: radial-gradient(90% 90% at 50% 0%, rgba(35,147,211,.22), transparent 70%), var(--surface); border: 1px solid var(--line); }
.brand-panel img { width: 100%; height: auto; object-fit: contain; }

/* Breite Leistungskarte (z. B. Eventmobiliar) über die ganze Zeile */
.service--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px 48px; align-items: center; }
.service--wide .service__intro p { margin-bottom: 0; }
.service--wide .checklist { margin: 0; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
@media (max-width: 760px) { .service--wide { grid-template-columns: 1fr; } .service--wide .checklist { margin-top: 12px; } }

/* =========================================================
   Mobile: Leistungen & Kontaktformular zum Ausklappen
   ========================================================= */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.more-toggle, .form-toggle { display: none; }
.form-title { margin: 0 0 4px; font-size: var(--fs-h3); }

.plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--dk-blue); transition: transform .25s, background .25s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--accent); border-radius: 1px; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
[aria-expanded="true"] > .plus { transform: rotate(45deg); background: rgba(35,147,211,.14); }

@media (max-width: 720px) {
  html:not(.no-js) .more-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
    margin-top: 4px; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); background: none;
    color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; text-align: left;
  }
  html:not(.no-js) .service .checklist { display: none; }
  html:not(.no-js) .service.is-open .checklist { display: grid; margin-top: 16px; }
  .service p { margin-bottom: 1em; }

  html:not(.no-js) .form-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
    padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--text); font: inherit; font-size: var(--fs-lg); font-weight: 700; cursor: pointer; text-align: left;
  }
  html:not(.no-js) .form-wrap.is-open .form-toggle { border-radius: var(--radius) var(--radius) 0 0; border-bottom-color: transparent; }
  html:not(.no-js) .form-wrap .form { display: none; }
  html:not(.no-js) .form-wrap.is-open .form { display: grid; border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding-top: 4px; }
  html:not(.no-js) .form-title { display: none; }
}

/* ---------- Referenzen: Laufband + Großansicht ---------- */
.gallery { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; }
.gallery__track { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0 16px; width: max-content; }
.gallery__track li { flex: none; }
.gallery__item { display: block; height: clamp(200px, 24vw, 300px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery__item img { height: 100%; width: auto; display: block; transition: transform .5s ease, filter .3s; -webkit-user-drag: none; user-select: none; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.04); }
.gallery__item:focus-visible { outline: 2px solid var(--dk-blue-light); outline-offset: 2px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(5, 8, 12, .92); }
.lightbox__img { max-width: min(92vw, 1600px); max-height: 86vh; width: auto; height: auto; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(10,15,22,.6); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lightbox__btn:hover { background: var(--dk-blue); border-color: var(--dk-blue); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; } .lightbox__prev { left: calc(50% - 60px); } .lightbox__next { right: calc(50% - 60px); } }
