/* =============================================
   PRIME AV – Website
   ============================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #000;
  --bg-2: #070707;
  --surface: #0c0c0c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f5f3;
  --muted: #a3a3a0;
  --dim: #6d6d6a;
  --radius: 20px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 40px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: height .3s var(--ease), background .3s, border-color .3s;
}
.site-header.scrolled {
  --header-h: 62px;
  height: 62px;
  background: rgba(0, 0, 0, 0.86);
  border-bottom-color: var(--line);
}
.logo { height: 26px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .logo { height: 22px; }

.desktop-nav { display: none; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.desktop-nav a { color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.desktop-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.desktop-nav a:hover, .desktop-nav a.active { color: #fff; }
.desktop-nav a:hover::after, .desktop-nav a.active::after { transform: scaleX(1); }
.desktop-nav a.nav-cta {
  color: #000; background: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 700;
}
.desktop-nav a.nav-cta::after { display: none; }
.desktop-nav a.nav-cta:hover { opacity: .85; }

.menu-button {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 0 8px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; position: relative; z-index: 1001;
}
.menu-button span {
  display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Mobile Navigation ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 100px 32px 40px;
  background: rgba(0, 0, 0, 0.97);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-size: clamp(30px, 9vw, 44px); font-weight: 700; letter-spacing: -0.02em;
  padding: 6px 0; color: #fff;
  transform: translateY(16px); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s;
}
.mobile-nav.open a { transform: none; opacity: 1; }
.mobile-nav.open a:nth-child(2) { transition-delay: .04s; }
.mobile-nav.open a:nth-child(3) { transition-delay: .08s; }
.mobile-nav.open a:nth-child(4) { transition-delay: .12s; }
.mobile-nav.open a:nth-child(5) { transition-delay: .16s; }
.mobile-nav.open a:nth-child(6) { transition-delay: .2s; }
.mobile-nav a.mobile-nav-small { font-size: 16px; font-weight: 500; color: var(--muted); margin-top: 24px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, opacity .2s;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: #fff; color: #000; }
.button.primary:hover { background: #e6e6e3; }
.button.secondary { color: #fff; border-color: var(--line-strong); background: rgba(255,255,255,.02); }
.button.secondary:hover { border-color: rgba(255,255,255,.5); }
.button.full { width: 100%; }
.button[disabled] { opacity: .5; cursor: progress; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 60px) 20px 110px;
  text-align: center;
  background: var(--bg);
}
.hero-light {
  position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(ellipse 38% 55% at 50% 0%, rgba(255,255,255,.16), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(255,255,255,.05), transparent 70%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .65; transform: scale(1.04); } }

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: 92px;
  width: 100%; height: 70px; opacity: .16; pointer-events: none;
}
.hero-wave path {
  fill: none; stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
  animation: draw 2.4s .4s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-inner { position: relative; max-width: 900px; }
.eyebrow {
  display: inline-block; margin: 0 0 28px;
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
}
.hero h1 {
  font-size: clamp(46px, 11vw, 112px);
  line-height: .95; font-weight: 800; letter-spacing: -0.045em;
  margin-bottom: 28px;
}
.hero h1 .line { display: block; }
.js .hero h1 .line {
  opacity: 0; transform: translateY(.35em);
  animation: rise .9s var(--ease) forwards;
  animation-delay: calc(.1s + var(--i) * .12s);
}
.hero h1 .line:last-child {
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.22));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-text { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 600px; margin: 0 auto 38px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; translate: -50% 0;
  width: 28px; height: 44px; border: 1px solid var(--line-strong); border-radius: 999px;
}
.hero-scroll-hint span {
  position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px;
  background: #fff; border-radius: 3px; animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sektionen ---------- */
.section { padding: 100px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.kicker {
  margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dim);
}
.kicker a:hover { color: #fff; }
.section h2 { font-size: clamp(32px, 5.5vw, 54px); line-height: 1.05; font-weight: 800; }
.section-head { margin-bottom: 48px; }
.section-subtitle { color: var(--muted); margin: 14px 0 0; }

/* Über uns */
.about-grid { display: grid; gap: 28px; }
.about-text p { color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.65; margin: 0 0 1em; }
.about-text p:first-child { color: var(--text); }
.facts { display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--bg); padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; }
.fact strong { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.fact span { color: var(--dim); font-size: 14px; }

/* Leistungen */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #0f0f0f, #080808);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px 36px;
  transition: border-color .3s, transform .3s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.08), transparent 45%);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 14px; margin-bottom: 26px; color: #fff;
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Galerie */
.gallery-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 20px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 82%; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); aspect-ratio: 4 / 3; cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.gallery-item:hover img { transform: scale(1.04); }

/* Instagram */
.instagram { background: var(--bg-2); text-align: center; }
.instagram .section-head { margin-bottom: 36px; }
.insta-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  max-width: 900px; margin: 0 auto 36px;
}
.insta-grid a {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--surface);
}
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.insta-grid a:hover img { transform: scale(1.06); opacity: .75; }
.insta-badge { position: absolute; top: 8px; right: 10px; font-size: 12px; text-shadow: 0 1px 4px #000; }

/* Kontakt */
.contact-grid { display: grid; gap: 48px; }
.contact-intro > p { color: var(--muted); margin: 18px 0 32px; }
.contact-direct { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-direct li { display: flex; flex-direction: column; gap: 2px; }
.contact-direct span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.contact-direct a, .contact-direct strong { font-size: 18px; font-weight: 600; }
.contact-direct a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.contact-direct a:hover { text-decoration-color: #fff; }

.contact-form {
  display: grid; gap: 16px; padding: 28px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
}
.field { display: grid; gap: 7px; }
.field-row { display: grid; gap: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: #fff;
  background: #050505; border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 14px 16px; transition: border-color .2s, background .2s;
}
.field input[type="date"] { color-scheme: dark; min-height: 52px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: #fff; background: #000; }
.field input::placeholder, .field textarea::placeholder { color: #4d4d4b; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #eb5757; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--dim); margin: 0; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin: 0; min-height: 1.4em; font-size: 15px; text-align: center; }
.form-status.success { color: #7ddc9f; }
.form-status.error { color: #ff7a7a; }

/* ---------- Floating CTA (Mobile) ---------- */
.floating-cta {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 900;
  translate: -50% 0;
  background: #fff; color: #000; font-weight: 800; font-size: 15px;
  padding: 15px 28px; border-radius: 999px; box-shadow: 0 14px 40px rgba(0,0,0,.6);
  transition: opacity .3s, transform .3s var(--ease);
}
.floating-cta.hidden { opacity: 0; pointer-events: none; transform: translateY(16px); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(0,0,0,.95); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 60px 16px; }
.lightbox img { max-width: min(1400px, 92vw); max-height: 80vh; width: auto; border-radius: 12px; }
.lightbox figcaption { color: var(--muted); font-size: 14px; }
.lightbox-close, .lightbox-nav {
  position: fixed; background: rgba(255,255,255,.08); color: #fff; border: 1px solid var(--line-strong);
  width: 48px; height: 48px; border-radius: 50%; font-size: 20px; cursor: pointer; display: grid; place-items: center;
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav { top: 50%; translate: 0 -50%; font-size: 28px; }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 110px; }
.footer-inner { width: min(1120px, 100% - 40px); margin: 0 auto; display: grid; gap: 28px; justify-items: center; text-align: center; }
.footer-logo { width: 200px; opacity: .9; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-weight: 600; }
.footer-links a:hover { opacity: .7; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 13px; color: var(--dim); }
.footer-legal a:hover { color: #fff; }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: calc(var(--header-h) + 60px) 0 80px; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; margin-bottom: 36px; }
.legal-text h2 { font-size: 20px; margin: 40px 0 10px; }
.legal-text p { color: var(--muted); margin: 0 0 1em; }
.legal-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }

/* ---------- Wartung ---------- */
.maintenance { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 40px 24px; }
.maintenance-logo { width: min(360px, 80vw); margin-bottom: 20px; }
.maintenance p { color: var(--muted); margin: 0; }

/* ---------- Scroll Reveal (nur mit JavaScript) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 480px) {
  .eyebrow { font-size: 10.5px; letter-spacing: .14em; padding: 7px 12px; }
}

/* ---------- Ab Tablet ---------- */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; justify-content: center; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .gallery-item { flex-basis: 46%; }
  .contact-form { padding: 36px; }
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
  .site-header { padding: 0 40px; }
  .logo { height: 30px; }
  .desktop-nav { display: flex; }
  .menu-button, .mobile-nav, .floating-cta { display: none; }
  .section { padding: 140px 0; }
  .about-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
  .gallery-track {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    width: min(1120px, 100% - 40px); margin: 0 auto; padding: 0; overflow: visible;
  }
  .gallery-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .insta-grid { gap: 10px; }
  .contact-grid { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
  .footer { padding-bottom: 56px; }
  .footer-inner { grid-template-columns: auto 1fr auto; justify-items: stretch; text-align: left; align-items: center; }
  .footer-logo { width: 160px; }
  .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero h1 .line { opacity: 1; transform: none; }
  .hero-wave path { stroke-dashoffset: 0; }
}
