/* ============================================================
   Klickx – base.css
   Geteiltes Design-System für alle Seiten.
   Seiten-spezifisches CSS (Hero-Varianten, Grids, etc.)
   bleibt im <style>-Block der jeweiligen Seite.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #33333d;
  --bg-card:   #33333d;
  --bg-hover:  #44444d;
  --text:      #fafafa;
  --text-muted:#fafafa;
  --accent:    #fafafa;
  --accent-dim:#b0b0b0;
  --border:    rgba(250,250,250,0.08);
  --radius:    4px;
  --ff-display:'Poppins', sans-serif;
  --ff-body:   'Poppins', sans-serif;
  --nav-h:     72px;
  --max:       1200px;
  --ease:      cubic-bezier(.25,.46,.45,.94);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .03;
  pointer-events: none;
  z-index: 0;
}

/* ─── HELPERS ─── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; position: relative; }
.container--prose { max-width: var(--max-prose); margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
h3 {
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}
p { color: var(--text-muted); line-height: 1.8; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn-ghost {
  border-color: var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); border-color: transparent; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  background: rgba(0,0,0,.20);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .02em;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-cta { margin-left: 8px; }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: .3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  background: var(--bg);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.77,0,.175,1);
  pointer-events: none;
  overflow: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu a {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
  text-align: center;
}
.mobile-menu a:not(.btn):hover, .mobile-menu a.active { color: var(--text); }
.mobile-menu .btn {
  margin-top: 16px;
  font-size: .85rem;
}

/* ─── BREADCRUMB ─── */
.breadcrumb { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.breadcrumb ol { list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb li { font-size: .75rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.breadcrumb li::after { content: '/'; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb li:last-child { color: var(--text); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 64px;
}
.footer-brand p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
}
.footer-col h4 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: .75rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ─── KONTAKTFORMULAR (geteilt) ─── */
.kx-form { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.kx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kx-field { display: flex; flex-direction: column; gap: 8px; }
.kx-field label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.kx-field input,
.kx-field textarea {
  font-family: var(--ff-body);
  font-size: .95rem;
  color: var(--text);
  background: rgba(0,0,0,.18);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
  transition: border-color .2s, background .2s;
}
.kx-field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.kx-field input::placeholder,
.kx-field textarea::placeholder { color: var(--accent-dim); }
.kx-field input:focus,
.kx-field textarea:focus {
  outline: none;
  border-color: var(--text);
  background: rgba(0,0,0,.28);
}
/* Honeypot – für Menschen unsichtbar */
.kx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kx-consent { display: flex; align-items: flex-start; gap: 12px; }
.kx-consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--text); }
.kx-consent label {
  font-size: .8rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}
.kx-consent a { color: var(--text); text-decoration: underline; }
.kx-form .btn { align-self: flex-start; }
.kx-form-note {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.kx-form-status {
  font-size: .9rem;
  line-height: 1.6;
  padding: 14px 16px;
  border-radius: var(--radius);
  display: none;
}
.kx-form-status.is-visible { display: block; }
.kx-form-status.is-ok { background: rgba(120,200,140,.12); border: 1px solid rgba(120,200,140,.4); color: #d6f5de; }
.kx-form-status.is-error { background: rgba(220,110,110,.12); border: 1px solid rgba(220,110,110,.4); color: #f8dada; }
.kx-form.is-sending .btn { opacity: .6; pointer-events: none; }
@media (max-width: 580px) {
  .kx-form-row { grid-template-columns: 1fr; }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE (geteilt) ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 580px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
