:root {
  --sand: #ccbca0;
  --sand-light: #e3d8c3;
  --sand-dark: #a8966f;
  --charcoal: #373736;
  --dark: #1e1e1e;
  --darker: #141414;
  --white: #fff;
  --muted: #a9a59c;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.65;
  color: #e9e6df;
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sand); text-decoration: none; }
a:hover { color: var(--sand-light); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--white); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.accent { color: var(--sand); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--dark);
  font-weight: 700;
  border: 2px solid var(--sand);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn:hover {
  background: var(--sand-light);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(204, 188, 160, .6);
}
.btn-ghost { background: transparent; color: var(--sand); }
.btn-ghost:hover { background: rgba(204, 188, 160, .12); color: var(--sand-light); box-shadow: none; }
.btn-small { padding: .5rem 1.1rem; font-size: .9rem; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .35s, box-shadow .35s, padding .35s;
  padding: .9rem 0;
}
.site-header.scrolled {
  background: rgba(20, 20, 20, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(204, 188, 160, .15);
  padding: .5rem 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--white); font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; }
.brand b { color: var(--sand); font-weight: 800; }
.brand img { border-radius: 50%; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(360deg); }
.menu { display: flex; align-items: center; gap: 1.8rem; }
.menu a:not(.btn) { color: #e9e6df; font-weight: 500; position: relative; padding: .3rem 0; }
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--sand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 7rem 0 5rem;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(204, 188, 160, .12), transparent 60%),
    linear-gradient(180deg, var(--darker), var(--dark));
}
#net { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; max-width: 880px; }
.hero-logo {
  margin: 0 auto 1.8rem;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(204, 188, 160, .15), 0 20px 60px -10px rgba(204, 188, 160, .35);
  animation: float 6s ease-in-out infinite;
}
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 1.2rem auto 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-inner > * { animation: rise .9s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: .1s; }
.hero-inner > :nth-child(3) { animation-delay: .2s; }
.hero-inner > :nth-child(4) { animation-delay: .3s; }
.hero-inner > :nth-child(5) { animation-delay: .4s; }
.hero-logo { animation: rise .9s var(--ease) both, float 6s ease-in-out 1s infinite; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.8rem; width: 26px; height: 42px;
  border: 2px solid var(--sand); border-radius: 14px; transform: translateX(-50%);
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--sand); border-radius: 2px; animation: wheel 1.8s infinite;
}

@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232, 82, 82, .6); } 100% { box-shadow: 0 0 0 10px rgba(232, 82, 82, 0); } }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #2a2a29, #202020);
  border: 1px solid rgba(204, 188, 160, .12);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(204, 188, 160, .16), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(204, 188, 160, .5); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 1.2rem;
  display: grid; place-items: center;
  background: rgba(204, 188, 160, .12);
  transition: background .4s, transform .4s var(--ease);
}
.icon svg { width: 28px; height: 28px; fill: none; stroke: var(--sand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.card:hover .icon { background: var(--sand); transform: rotate(-6deg) scale(1.06); }
.card:hover .icon svg { stroke: var(--dark); }

/* Split */
.split-section { background: var(--charcoal); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.split-media:hover img { transform: scale(1.06); }
.live {
  position: absolute; top: 1rem; left: 1rem; display: flex; align-items: center; gap: .5rem;
  background: rgba(20, 20, 20, .75); backdrop-filter: blur(6px);
  color: var(--white); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 999px;
}
.live i { width: 9px; height: 9px; border-radius: 50%; background: #e85252; animation: pulse 1.4s infinite; }
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: .5rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: .6rem;
  border-left: 3px solid var(--sand); border-bottom: 3px solid var(--sand); transform: rotate(-45deg) scale(.8);
}

/* Remote */
.remote-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.remote-media { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(204, 188, 160, .25); }
.remote-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1.8rem; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 1rem; margin-bottom: .7rem; }
.steps li::before {
  content: counter(s); flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--sand); color: var(--dark); font-weight: 800; font-size: .9rem;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  display: block; padding: 1.5rem 1.8rem; border-radius: var(--radius);
  background: #2a2a29; border: 1px solid rgba(204, 188, 160, .12);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.contact-card:hover { transform: translateX(8px); border-color: var(--sand); background: #303030; }
.contact-card .label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; color: var(--sand); }
.contact-card .value { display: block; font-size: 1.15rem; font-weight: 600; color: var(--white); overflow-wrap: anywhere; }
.about { padding: 2rem; border-radius: var(--radius); background: #2a2a29; border: 1px solid rgba(204, 188, 160, .12); }
.about dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .7rem 1.5rem; }
.about dt { color: var(--sand); font-weight: 600; }
.about dd { margin: 0; color: #d8d4cb; }

/* Footer */
.site-footer { background: var(--darker); border-top: 1px solid rgba(204, 188, 160, .15); padding: 1.6rem 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.legal-links { display: flex; gap: 1.5rem; }

/* Rechtliche Dialoge */
.legal {
  width: min(760px, 100% - 2rem);
  max-height: 88vh;
  padding: 0;
  border: 1px solid rgba(204, 188, 160, .3);
  border-radius: var(--radius);
  background: var(--dark);
  color: #d8d4cb;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.legal[open] { display: flex; flex-direction: column; animation: rise .4s var(--ease); }
.legal::backdrop { background: rgba(10, 10, 10, .75); backdrop-filter: blur(4px); }
.legal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.6rem; border-bottom: 1px solid rgba(204, 188, 160, .15); background: var(--charcoal);
}
.legal-head h2 { margin: 0; font-size: 1.5rem; }
.legal-close {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--sand);
  background: transparent; color: var(--sand); font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.legal-close:hover { background: var(--sand); color: var(--dark); transform: rotate(90deg); }
.legal-body { padding: 1.5rem 1.6rem 2rem; overflow-y: auto; font-size: .95rem; }
.legal-body h3 { margin: 1.6rem 0 .4rem; font-size: 1.05rem; color: var(--sand); }
.legal-body h3:first-child { margin-top: 0; }
.legal-body ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal-body li { margin-bottom: .35rem; }
.legal-body .stand { color: var(--muted); font-size: .85rem; }
body.dialog-open { overflow: hidden; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.grid .reveal:nth-child(2), .contact-cards .reveal:nth-child(2) { transition-delay: .1s; }
.grid .reveal:nth-child(3), .contact-cards .reveal:nth-child(3) { transition-delay: .2s; }
.grid .reveal:nth-child(4) { transition-delay: .1s; }
.grid .reveal:nth-child(5) { transition-delay: .2s; }
.grid .reveal:nth-child(6) { transition-delay: .3s; }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .menu {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 5.5rem 1.5rem 2rem; flex-direction: column; align-items: flex-start; gap: 1.2rem;
    background: rgba(20, 20, 20, .97); transform: translateY(-100%); transition: transform .45s var(--ease); z-index: -1;
  }
  .menu.open { transform: none; }
  .nav { position: relative; z-index: 2; }
  .split, .remote-inner, .contact-grid { grid-template-columns: 1fr; }
  .remote-media { order: 2; }
  .about dl { grid-template-columns: 1fr; gap: .2rem; }
  .about dd { margin-bottom: .8rem; }
}

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