/* ScriptHive – Stylesheet
   Systemschriften bewusst gewählt: keine externen Font-Requests (DSGVO). */

:root {
  --bg: #fbf8f1;
  --bg-alt: #f3ede0;
  --surface: #ffffff;
  --text: #1d1a14;
  --muted: #5f584b;
  --border: #e4dccb;
  --honey: #f5a623;
  --honey-strong: #d98a06;
  --on-honey: #1d1a14;
  --hex-line: rgba(217, 138, 6, .13);
  --shadow: 0 10px 30px -12px rgba(60, 40, 0, .18);
  --radius: 14px;
  --maxw: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120e;
    --bg-alt: #1b1812;
    --surface: #221e17;
    --text: #f3ede0;
    --muted: #b3aa98;
    --border: #363024;
    --honey: #ffb52e;
    --honey-strong: #ffc65a;
    --hex-line: rgba(255, 181, 46, .08);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--honey-strong); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 28px; } }
.narrow { max-width: 780px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--honey-strong);
  margin-bottom: .8em;
  font-weight: 600;
}
.hl { color: var(--honey); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.section-lead { color: var(--muted); max-width: 40em; margin-bottom: 2.5rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--honey);
  color: var(--on-honey);
  font-weight: 700;
  text-decoration: none;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--honey);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px var(--honey); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible {
  outline: 3px solid var(--honey-strong); outline-offset: 3px;
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--honey); box-shadow: none; }
.btn-small { padding: .5em 1.1em; font-size: .92rem; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); font-size: 1.3rem; font-weight: 600; }
.logo svg { width: 34px; height: 34px; }
.logo b { color: var(--honey); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-links a:not(.btn):hover { color: var(--honey-strong); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

/* Anmeldestatus im Header */
.nav-user { position: relative; display: flex; align-items: center; }
.nav-user[hidden] { display: none; }
.nav-login { color: var(--muted) !important; font-size: .92rem !important; }
.nav-login:hover { color: var(--honey-strong) !important; }
.nav-user-btn {
  display: flex; align-items: center; gap: .5rem; font: inherit; font-weight: 600; font-size: .95rem;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .25rem .8rem .25rem .3rem; cursor: pointer; position: relative; transition: border-color .2s;
}
.nav-user-btn:hover, .nav-user.open .nav-user-btn { border-color: var(--honey); }
.nav-user-btn img { width: 28px; height: 28px; border-radius: 50%; }
.nav-user-btn span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-dot { position: absolute; left: 24px; bottom: 3px; width: 10px; height: 10px; border-radius: 50%; background: #3ba55d; border: 2px solid var(--surface); }
.nav-user-menu {
  display: none; position: absolute; right: 0; top: calc(100% + .5rem); min-width: 210px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .4rem; box-shadow: var(--shadow);
}
.nav-user.open .nav-user-menu { display: grid; }
.nav-user-menu a { color: var(--text) !important; text-decoration: none; padding: .55rem .7rem !important; border-radius: 8px; border: 0 !important; font-size: .95rem; }
.nav-user-menu a:hover { background: var(--bg-alt); }
.nav-user-head { font-size: .78rem; color: var(--muted); padding: .4rem .7rem .3rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; }

@media (max-width: 800px) {
  .nav-user { padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .nav-user-menu { position: static; box-shadow: none; margin-top: .5rem; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .5rem 16px 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 1rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Wabenhintergrund */
.hex-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66 0 50V17L28 1l28 16v33L28 66zm0 33V66m28-16v33M0 50v33' fill='none' stroke='%23d98a06' stroke-width='1'/%3E%3C/svg%3E");
  opacity: .16;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}
@media (prefers-color-scheme: dark) { .hex-bg { opacity: .1; } }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 4.5rem 0 5rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.8rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "⬢"; color: var(--honey); margin-right: .45em; font-size: .8em; }

.terminal {
  background: #1a1712;
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,181,46,.15);
  overflow: hidden;
  transform: rotate(1.5deg);
}
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #25201a; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a4236; }
.term-bar i:first-child { background: #f5a623; }
.term-bar span { margin-left: auto; font-family: var(--mono); font-size: .75rem; color: #8d8473; }
.term-body {
  margin: 0; padding: 1.2rem 1.4rem 1.5rem;
  font-family: var(--mono); font-size: .9rem; line-height: 1.7;
  color: #e9e1d0; overflow-x: auto;
}
.term-body .c { color: #7d7563; }
.term-body .k { color: #ffb52e; }
.term-body .s { color: #a8d38a; }
.term-body .f { color: #7cc4e8; }
.term-body .p { color: #ffb52e; }
.term-body .ok { color: #a8d38a; }
.cursor { animation: blink 1s steps(1) infinite; color: #ffb52e; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .hero { padding: 3rem 0 3.5rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .terminal { transform: none; }
}

/* Sections */
.section { padding: 5.5rem 0; position: relative; }
.section-alt { background: var(--bg-alt); }
@media (max-width: 640px) { .section { padding: 4rem 0; } }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.3rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--honey); }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 52px; height: 58px; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--on-honey); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tech { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.tech span {
  font-family: var(--mono); font-size: .85rem;
  padding: .35em .9em; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); background: var(--surface);
}

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; counter-reset: none; }
.step { position: relative; }
.step p { color: var(--muted); margin: 0; }
.step-hex {
  width: 56px; height: 62px; margin-bottom: 1rem;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.4rem; font-family: var(--mono);
  color: var(--on-honey); background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; left: 72px; right: -8px;
  border-top: 2px dashed var(--border);
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Warum */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.why-text p { color: var(--muted); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.why-list li {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--honey);
  border-radius: 10px; padding: 1.1rem 1.3rem;
  display: flex; flex-direction: column;
}
.why-list span { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; gap: 2rem; } }

/* FAQ */
.faq { margin-top: 2rem; display: grid; gap: .8rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.3rem;
  font-weight: 650; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--honey-strong); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }

/* Kontakt */
.contact { isolation: isolate; overflow: hidden; }
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
  display: grid; gap: 1.2rem;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 600px) { .contact-form { padding: 1.3rem; } .contact-form .row { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: .75em .9em;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { justify-self: start; }
.contact-form input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 100px var(--bg) inset;
}
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-msg { margin: 0; font-size: .95rem; min-height: 1.2em; }
.form-msg.error { color: #d9480f; }
.form-msg.ok { color: #2f9e44; }

/* Discord-Hinweis im Kontaktbereich */
.contact-discord {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin: -1rem 0 2rem; padding: 1rem 1.2rem;
  background: color-mix(in srgb, #5865f2 10%, var(--surface));
  border: 1px solid color-mix(in srgb, #5865f2 45%, var(--border)); border-radius: var(--radius);
}
.contact-discord > div:nth-child(2) { flex: 1 1 260px; display: grid; gap: .15rem; }
.contact-discord span { color: var(--muted); font-size: .95rem; }
.contact-discord-icon { width: 44px; height: 44px; border-radius: 12px; background: #5865f2; color: #fff; display: grid; place-items: center; flex: none; }
.contact-discord-icon svg { width: 26px; height: 26px; }
.form-msg a { color: inherit; font-weight: 700; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 1.8rem 0; color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer nav { display: flex; gap: 1.4rem; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--honey-strong); }

/* Discord */
.discord { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.discord .hero-cta { margin: 0 0 1.2rem; }
.btn-discord { display: inline-flex; align-items: center; gap: .6em; background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord svg { width: 22px; height: 22px; }
.btn-discord:hover { box-shadow: 0 8px 20px -8px #5865f2; }
.discord-note { font-size: .9rem; color: var(--muted); max-width: 34em; }
.discord-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.discord-features li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.3rem;
}
.discord-features li > span { font-size: 1.6rem; line-height: 1; }
.discord-features strong { display: block; }
.discord-features div { color: var(--muted); font-size: .97rem; }
.discord-features div strong { color: var(--text); }
@media (max-width: 860px) { .discord { grid-template-columns: 1fr; gap: 2rem; } }

/* ===== Animationen ===== */

/* Scroll-Fortschritt */
.progress {
  position: fixed; top: 0; left: 0; z-index: 100;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--honey-strong), var(--honey));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* Logo dreht sich beim Hover */
.logo svg { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.logo:hover svg { transform: rotate(360deg) scale(1.08); }

/* Hero: Inhalte nacheinander einblenden */
.hero-text > * { animation: fadeUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > :nth-child(1) { animation-delay: .05s; }
.hero-text > :nth-child(2) { animation-delay: .15s; }
.hero-text > :nth-child(3) { animation-delay: .3s; }
.hero-text > :nth-child(4) { animation-delay: .45s; }
.hero-text > :nth-child(5) { animation-delay: .6s; }
.hero-visual { animation: fadeIn 1s .4s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }

/* „Ich helfe dir.“ mit gezeichneter Unterstreichung */
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em;
  background: var(--honey); border-radius: 99px; opacity: .45;
  transform-origin: 0 50%; animation: underline .9s 1s cubic-bezier(.6, 0, .2, 1) both;
}
@keyframes underline { from { transform: scaleX(0); } }

/* Waben-Hintergrund wandert langsam */
.hex-bg { animation: drift 40s linear infinite; }
@keyframes drift { to { background-position: 56px 98px; } }

/* Schwebende Waben */
.float-hex { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.float-hex span {
  position: absolute; bottom: -60px;
  width: 26px; height: 30px; background: var(--honey); opacity: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  animation: rise 14s linear infinite;
}
.float-hex span:nth-child(1) { left: 6%;  animation-delay: 0s;  transform: scale(.6); }
.float-hex span:nth-child(2) { left: 18%; animation-delay: 5s;  animation-duration: 18s; }
.float-hex span:nth-child(3) { left: 34%; animation-delay: 9s;  transform: scale(.4); }
.float-hex span:nth-child(4) { left: 48%; animation-delay: 2s;  animation-duration: 20s; }
.float-hex span:nth-child(5) { left: 62%; animation-delay: 7s;  transform: scale(.7); }
.float-hex span:nth-child(6) { left: 76%; animation-delay: 11s; animation-duration: 16s; }
.float-hex span:nth-child(7) { left: 88%; animation-delay: 4s;  transform: scale(.5); }
.float-hex span:nth-child(8) { left: 95%; animation-delay: 13s; animation-duration: 22s; }
@keyframes rise {
  0%   { translate: 0 0; rotate: 0deg; opacity: 0; }
  10%  { opacity: .22; }
  80%  { opacity: .12; }
  100% { translate: 40px -110vh; rotate: 240deg; opacity: 0; }
}

/* Terminal schwebt sanft */
.terminal { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }

/* Terminal-Tippeffekt (Zeilen werden per JS erzeugt) */
.term-body .tl { display: block; width: fit-content; min-height: 1.7em; white-space: pre; }
.js .term-body.typing .tl { clip-path: inset(0 100% 0 0); }

/* Buttons: Glanz-Effekt */
.btn { position: relative; overflow: hidden; }
.btn:not(.btn-ghost)::before {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn:not(.btn-ghost):hover::before { left: 130%; }
.hero-cta .btn:first-child { animation: fadeUp .8s .3s both, pulse 2.8s 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--honey) 55%, transparent); }
  50%      { box-shadow: 0 0 0 12px transparent; }
}

/* Karten: 3D-Neigung (per JS) + drehendes Icon */
.card { transform-style: preserve-3d; will-change: transform; }
.js .card.tilt { transition: transform .08s linear, box-shadow .2s, border-color .2s; }
.card-icon { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.card:hover .card-icon { transform: rotate(60deg) scale(1.1); }
.card:hover .card-icon svg { transform: rotate(-60deg); }
.card-icon svg { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }

/* Technik-Chips erscheinen nacheinander */
.js .tech span { opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .4s, transform .4s cubic-bezier(.34, 1.56, .64, 1), border-color .2s, color .2s; }
.js .tech.visible span { opacity: 1; transform: none; }
.tech span:hover { border-color: var(--honey); color: var(--text); }

/* Ablauf: Waben ploppen auf, Verbindungslinie wird gezeichnet */
.js .step .step-hex { transform: scale(0) rotate(-90deg); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) .15s; }
.js .step.visible .step-hex { transform: none; }
.step:not(:last-child)::after { transform-origin: 0 50%; }
.js .step:not(:last-child)::after { transform: scaleX(0); transition: transform .8s ease .5s; }
.js .step.visible:not(:last-child)::after { transform: none; }

/* Über-mich-Liste gleitet von rechts */
.js .why-list li.reveal { transform: translateX(30px); }
.js .why-list li.reveal.visible { transform: none; }
.why-list li { transition: opacity .6s ease, transform .6s ease, border-left-width .2s; }
.why-list li:hover { border-left-width: 8px; }

/* FAQ: Inhalt gleitet herein */
.faq details[open] p { animation: fadeUp .4s ease both; }
.faq details { transition: border-color .2s; }
.faq details:hover { border-color: var(--honey); }

/* Formular: Fokus leuchtet */
.contact-form input, .contact-form select, .contact-form textarea { transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--honey); box-shadow: 0 0 0 4px color-mix(in srgb, var(--honey) 22%, transparent); outline: none;
}
.form-msg.ok { animation: fadeUp .5s ease both; }
.form-msg.error { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ===== Maus-Effekte ===== */

/* Waben-Feld hinter der Seite, leuchtet um die Maus auf */
.hive-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.section-alt { background: color-mix(in srgb, var(--bg-alt) 82%, transparent); }

/* Maus-Begleiter (nur mit Maus, per JS aktiviert) */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  border-radius: 50%; opacity: 0; transition: opacity .3s, width .25s, height .25s, margin .25s, background .25s, border-color .25s;
}
.cursor-dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--honey);
  box-shadow: 0 0 0 2px var(--bg);              /* bleibt auch auf gelben Buttons sichtbar */
}
/* Windows-Zeiger ausblenden, sobald der eigene Zeiger aktiv ist */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input:not([type=checkbox]), .has-cursor textarea { cursor: text !important; }
.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 2px solid color-mix(in srgb, var(--honey) 70%, transparent);
}
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.cursor-ring.hover {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  background: color-mix(in srgb, var(--honey) 14%, transparent);
  border-color: var(--honey);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--bg) 60%, transparent);
}
.cursor-ring.down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.cursor-hidden .cursor-dot, .cursor-hidden .cursor-ring { opacity: 0; }

/* Lichtspot auf Karten folgt der Maus */
.card { position: relative; }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--honey) 18%, transparent), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

/* Parallaxe im Hero */
.hero-visual { translate: calc(var(--px, 0) * -22px) calc(var(--py, 0) * -16px); transition: translate .4s ease-out; }
.float-hex { translate: calc(var(--px, 0) * 40px) calc(var(--py, 0) * 30px); transition: translate .6s ease-out; }
.terminal { transition: transform .4s ease-out; }
.hero.mouse .terminal { transform: rotate(1.5deg) perspective(900px) rotateY(calc(var(--px, 0) * 10deg)) rotateX(calc(var(--py, 0) * -8deg)); }

/* Wechselnde Wörter in der Überschrift */
.rotator { color: var(--text); }
.caret {
  display: inline-block; width: .08em; height: .9em; margin-left: .06em;
  background: var(--honey); vertical-align: -.08em;
  animation: blink 1s steps(1) infinite;
}

/* ===== Übergang Startseite ⇄ Hub („Betrete Hub“ / „Verlasse Hub“) – gesteuert von transition.js ===== */
html.sh-transition body { visibility: hidden; }
.sh-loader {
  position: fixed; inset: 0; z-index: 2000; visibility: visible; overflow: hidden; cursor: pointer;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--honey) 16%, var(--bg)), var(--bg) 68%);
}
.sh-loader.sh-done { animation: shFadeOut 1.1s cubic-bezier(.4, 0, .2, 1) forwards; pointer-events: none; }
@keyframes shFadeOut { to { opacity: 0; visibility: hidden; } }

/* Seite taucht nach dem Übergang sanft auf (aus leichter Unschärfe, schwebt ein Stück hoch) */
html.sh-reveal body > *:not(.sh-loader):not(script) { animation: shPageIn 1.3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes shPageIn { from { opacity: 0; transform: translateY(14px) scale(.99); filter: blur(6px); } }

.sh-stage { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.1rem; }
.sh-comb { position: relative; width: 300px; height: 270px; }
.sh-cell {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 64px; margin: -32px 0 0 -28px;
  display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #ffc65a, var(--honey) 55%, #d98a06);
  opacity: var(--o); transform: translate(var(--x), var(--y));
}
.sh-cell svg { width: 30px; height: 30px; }
.sh-center { opacity: 1; box-shadow: none; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--honey) 70%, transparent)); }

.sh-title { font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.sh-title b { color: var(--honey); }
.sh-dots i { font-style: normal; animation: shDot 1.2s infinite; opacity: 0; }
.sh-dots i:nth-child(2) { animation-delay: .2s; } .sh-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes shDot { 30%, 70% { opacity: 1; } }
.sh-quotes { list-style: none; margin: 0; padding: 0; position: relative; height: 1.6em; width: min(540px, 90vw); text-align: center; font-family: var(--mono); color: var(--muted); font-size: .98rem; }
.sh-quotes li { position: absolute; inset: 0; opacity: 0; }
.sh-quotes li.show { animation: shQuote 2.1s ease both; }
@keyframes shQuote { 0% { opacity: 0; transform: translateY(10px); } 18%, 84% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
.sh-bar { width: min(340px, 70vw); height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.sh-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--honey-strong), var(--honey)); transform-origin: 0 50%; animation: shBar 6.4s cubic-bezier(.4, .1, .3, 1) both; }
@keyframes shBar { from { transform: scaleX(0); } }
.sh-skip { font-size: .78rem; color: var(--muted); opacity: .65; }

/* Waben-Tore */
.sh-door {
  position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 2;
  background-color: #17140f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66 0 50V17L28 1l28 16v33L28 66zm0 33V66m28-16v33M0 50v33' fill='none' stroke='%23f5a623' stroke-opacity='.35' stroke-width='1.5'/%3E%3C/svg%3E");
}
.sh-door-l { left: 0; box-shadow: inset -3px 0 0 var(--honey), 12px 0 40px rgba(0, 0, 0, .5); }
.sh-door-r { right: 0; box-shadow: inset 3px 0 0 var(--honey), -12px 0 40px rgba(0, 0, 0, .5); }
.sh-lock { position: absolute; z-index: 3; width: 96px; height: 96px; opacity: 0; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--honey) 70%, transparent)); }
.sh-lock svg { width: 100%; height: 100%; }

/* --- Betreten: Tore öffnen sich, Stock baut sich auf, Flug hinein --- */
.sh-enter .sh-door-l { animation: shOpenL 1s cubic-bezier(.7, 0, .3, 1) .35s both; }
.sh-enter .sh-door-r { animation: shOpenR 1s cubic-bezier(.7, 0, .3, 1) .35s both; }
@keyframes shOpenL { to { transform: translateX(-101%); } }
@keyframes shOpenR { to { transform: translateX(101%); } }
.sh-enter .sh-cell { animation: shCellIn .55s cubic-bezier(.34, 1.56, .64, 1) var(--d) both; }
@keyframes shCellIn { from { opacity: 0; transform: translate(var(--x), var(--y)) scale(0) rotate(-90deg); } }
.sh-enter .sh-center svg { animation: shPop .6s cubic-bezier(.34, 1.56, .64, 1) 3.6s both; }
@keyframes shPop { from { opacity: 0; transform: scale(0); } }
.sh-enter .sh-comb { animation: shPulse 1.4s ease-in-out 3.6s 2, shFlyIn 1s cubic-bezier(.6, 0, .4, 1) 5.6s forwards; }
@keyframes shPulse { 50% { transform: scale(1.05); } }
@keyframes shFlyIn { to { transform: scale(7); opacity: 0; } }
.sh-enter .sh-title, .sh-enter .sh-quotes, .sh-enter .sh-bar, .sh-enter .sh-skip { animation: shTextIn .6s ease 1s both, shTextOut .5s ease 5.6s forwards; }
.sh-enter .sh-bar span { animation-delay: 0s; }
@keyframes shTextIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes shTextOut { to { opacity: 0; transform: translateY(10px); } }

/* --- Verlassen: Stock löst sich auf, Tore schließen sich, Schloss --- */
.sh-leave .sh-door-l { transform: translateX(-101%); animation: shCloseL 1s cubic-bezier(.7, 0, .3, 1) 4.6s forwards; }
.sh-leave .sh-door-r { transform: translateX(101%); animation: shCloseR 1s cubic-bezier(.7, 0, .3, 1) 4.6s forwards; }
@keyframes shCloseL { to { transform: translateX(0); } }
@keyframes shCloseR { to { transform: translateX(0); } }
.sh-leave .sh-cell { animation: shCellOut .5s cubic-bezier(.5, 0, .75, 0) var(--d) forwards; }
@keyframes shCellOut { to { opacity: 0; transform: translate(var(--x), var(--y)) scale(0) rotate(90deg); } }
.sh-leave .sh-title, .sh-leave .sh-quotes, .sh-leave .sh-bar, .sh-leave .sh-skip { animation: shTextIn .5s ease .2s both, shTextOut .5s ease 4.4s forwards; }
.sh-leave .sh-bar span { animation-delay: 0s; }
.sh-leave .sh-lock { animation: shLock 1.2s cubic-bezier(.34, 1.56, .64, 1) 5.45s both; }
@keyframes shLock { 0% { opacity: 0; transform: scale(0) rotate(-120deg); } 45% { opacity: 1; transform: scale(1.15) rotate(0); } 70% { transform: scale(.95); } 100% { opacity: 1; transform: scale(1); } }

@media (max-width: 480px) { .sh-comb { transform: scale(.8); } .sh-title { font-size: 1.4rem; } }

/* Einblend-Animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .term-body.typing .tl, .js .tech span, .js .step .step-hex, .js .step::after { clip-path: none; opacity: 1; transform: none; }
  .float-hex, .hive-canvas, .cursor-dot, .cursor-ring, .caret, .sh-loader { display: none !important; }
}

/* Grid-Spalten dürfen schrumpfen (sonst drückt das Terminal die Seite auf dem Handy breit) */
.hero-inner > * { min-width: 0; }

/* Rechtstexte (Discord-Datenschutz & Nutzungsbedingungen) */
.legal { padding: 3.5rem 0 5rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--muted); }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { color: var(--text); font-weight: 650; }
.legal td { color: var(--muted); }
.legal .table-wrap { overflow-x: auto; }
.legal .stand { margin-top: 3rem; font-size: .9rem; }
