/* ---------- Farben & Grundlagen ---------- */
:root {
  --black: #0a0a0a;
  --ink: #111;
  --grey-900: #1c1c1c;
  --grey-700: #3a3a3a;
  --grey-600: #6b6b6b;
  --grey-300: #dcdcdc;
  --grey-200: #ebebeb;
  --grey-100: #f4f4f2;
  --white: #fff;

  /* Akzentfarben aus den Instagram-Highlights */
  --c-red: #ff2d46;
  --c-lime: #8fe82c;
  --c-orange: #ff7a00;
  --c-blue: #1f6fff;
  --c-green: #13923b;
  --c-yellow: #ffe500;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --radius: 24px;
  --radius-sm: 14px;
  --pad: clamp(16px, 5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.02; letter-spacing: -0.035em; margin: 0; }

/* Alle Fotos in Schwarz-Weiß wie im Instagram-Feed */
img { filter: grayscale(1) contrast(1.08); }

.eyebrow {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grey-600);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--black); color: var(--white);
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1.5px solid var(--black);
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-outline-light { background: rgba(255,255,255,.06); color: var(--white); border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); }
.btn-accent { background: var(--c-orange); border-color: var(--c-orange); color: var(--black); }

/* ---------- Navigation ---------- */
.site-header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  padding: 0 clamp(12px, 3vw, 32px);
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.wordmark {
  display: flex; align-items: baseline; gap: 8px;
  font-weight: 800; font-size: 21px; letter-spacing: -0.05em; text-decoration: none;
}
.wordmark-by { font-weight: 500; font-size: 13px; letter-spacing: 0; color: var(--grey-600); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--grey-700);
  padding: 10px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.nav .nav-cta { background: var(--black); color: var(--white); margin-left: 6px; padding: 10px 18px; }
.nav .nav-lang { display: inline-flex; align-items: center; gap: 6px; padding: 10px; }
.flag {
  display: block; width: 22px; height: 15px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  opacity: .4; filter: saturate(.3); transition: opacity .2s, filter .2s, transform .2s var(--ease);
}
.flag svg { display: block; width: 100%; height: 100%; }
.flag.is-current { opacity: 1; filter: none; }
.nav-lang:hover .flag, .nav-lang:focus-visible .flag { opacity: 1; filter: none; }
.nav-lang:hover .flag:not(.is-current) { transform: scale(1.12); }
.nav .nav-cta:hover { background: var(--grey-900); color: var(--white); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white); background: var(--black);
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .72; transform: scale(1.06);
  animation: hero-zoom 14s var(--ease) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.15) 100%),
    radial-gradient(ellipse at 20% 100%, rgba(0,0,0,.6), transparent 60%);
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 140px var(--pad) clamp(40px, 7vh, 80px);
}
.hero h1 {
  font-size: clamp(52px, 10.5vw, 156px); font-weight: 800;
  letter-spacing: -0.055em; line-height: .92; max-width: 12ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--c-lime), var(--c-yellow) 40%, var(--c-orange) 70%, var(--c-red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* Platz rechts, damit der Punkt nicht vom Hintergrund-Clip abgeschnitten wird */
  padding-right: .12em; margin-right: -.12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.2);
}
.hero-lead { font-size: clamp(18px, 2vw, 24px); margin: clamp(16px, 2vw, 24px) 0 0; color: rgba(255,255,255,.82); }
@media (min-width: 761px) { .hero-lead { white-space: nowrap; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 140px) var(--pad); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; }
.section h2, .tools h2 { font-size: clamp(36px, 5.6vw, 72px); font-weight: 800; max-width: 16ch; }
.section-lead { font-size: 18px; color: var(--grey-600); max-width: 460px; margin: 0; }

/* ---------- Software-Einstieg ---------- */
.software-intro { padding-bottom: clamp(32px, 5vw, 56px); }
/* Akzentfarben je Abschnitt (als Klassen statt Inline-Styles, wegen der Content-Security-Policy) */
.accent-lime { --tool: var(--c-lime); }
.accent-red { --tool: var(--c-red); }
.accent-orange { --tool: var(--c-orange); }
.accent-blue { --tool: var(--c-blue); }

/* ---------- Tool-Abschnitte (aufklappbar) ---------- */
.tool-section {
  position: relative; overflow: hidden; isolation: isolate;
  width: calc(100% - 2 * var(--pad)); max-width: calc(var(--max) - 2 * var(--pad));
  margin: 10px auto 0;
  border-radius: clamp(20px, 3vw, 32px);
  background: var(--black); color: var(--white);
  transition: border-radius .5s var(--ease);
}
.tool-section.is-open { border-radius: clamp(24px, 4vw, 48px); }
.tool-section::before {
  content: ""; position: absolute; z-index: -1;
  right: -15%; top: -30%; width: 70%; height: 160%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tool) 26%, transparent), transparent);
  pointer-events: none; opacity: 0; transition: opacity .6s;
}
.tool-section.is-open::before { opacity: 1; }
.tool-section-flip::before { right: auto; left: -15%; }

/* Zeile zum Aufklappen */
.tool-head { margin: 0; }
.tool-toggle {
  width: 100%; display: flex; align-items: center; gap: clamp(14px, 2vw, 22px);
  padding: clamp(20px, 2.6vw, 30px) clamp(20px, 4vw, 44px);
  background: none; border: 0; color: inherit; cursor: pointer; text-align: left;
  transition: background .25s;
}
.tool-toggle:hover { background: rgba(255,255,255,.04); }
.tool-toggle:focus-visible { outline: 3px solid var(--tool); outline-offset: -3px; border-radius: inherit; }
.tool-dot {
  flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--tool);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--tool) 18%, transparent);
  transition: transform .3s var(--ease);
}
.tool-toggle:hover .tool-dot { transform: scale(1.25); }
.tool-name { font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; }
.tool-tag { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-plus {
  position: relative; flex: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: background .3s, transform .45s var(--ease);
}
.tool-plus::before, .tool-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px;
  background: var(--white); border-radius: 2px; transition: background .3s;
}
.tool-plus::after { transform: rotate(90deg); }
.tool-toggle:hover .tool-plus { background: rgba(255,255,255,.16); }
.tool-section.is-open .tool-plus { transform: rotate(135deg); background: var(--tool); }
.tool-section.is-open .tool-plus::before, .tool-section.is-open .tool-plus::after { background: var(--black); }

/* Inhalt klappt weich auf */
.tool-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.tool-section.is-open .tool-panel { grid-template-rows: 1fr; }
.tool-panel-inner { overflow: hidden; min-height: 0; }
.tool-body {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
  padding: clamp(8px, 2vw, 24px) clamp(20px, 4vw, 44px) clamp(48px, 6vw, 88px);
  opacity: 0; transform: translateY(-12px);
  transition: opacity .4s, transform .6s var(--ease);
}
.tool-section.is-open .tool-body { opacity: 1; transform: none; transition-delay: .12s; }
.tool-section-flip .tool-copy { order: 2; }
/* Ohne JavaScript bleibt alles aufgeklappt */
html:not(.js) .tool-panel { grid-template-rows: 1fr; }
html:not(.js) .tool-body { opacity: 1; transform: none; }
html:not(.js) .tool-plus { display: none; }

.tool-lead { font-size: clamp(17px, 1.6vw, 19px); color: rgba(255,255,255,.72); margin: 0 0 28px; max-width: 520px; }
.tool-lead a { color: var(--white); text-decoration-color: var(--tool); text-underline-offset: 3px; }
.tool-features { list-style: none; padding: 0; margin: 0 0 32px; border-top: 1px solid rgba(255,255,255,.12); }
.tool-features li {
  display: grid; grid-template-columns: 160px 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 15px; color: rgba(255,255,255,.72);
}
.tool-features b { color: var(--white); font-weight: 700; }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tool-help {
  padding: 8px 4px; color: rgba(255,255,255,.7);
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.tool-help span { display: inline-block; transition: transform .25s var(--ease); }
.tool-help:hover { color: var(--tool); }
.tool-help:hover span { transform: translateX(4px); }
.btn-tool { background: var(--tool); border-color: var(--tool); color: var(--black); }
.btn-tool:hover { box-shadow: 0 10px 30px color-mix(in srgb, var(--tool) 40%, transparent); }

/* ---------- Handy-Mockups ---------- */
.mock { container-type: inline-size; display: flex; justify-content: center; perspective: 1400px; }
.float { position: relative; animation: float 6s ease-in-out infinite; }
.float-delay { animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-14px); } }
/* Menü-Einträge klettern von unten nach oben ins Menü */
@keyframes climb-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes chalk { 50% { transform: scale(.88); } }

.phone {
  position: relative; width: min(300px, 80cqi); aspect-ratio: 9 / 19;
  border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #2a2a2a, #0f0f0f);
  box-shadow: 0 0 0 1.5px #3a3a3a, 0 40px 80px rgba(0,0,0,.6), 0 0 120px color-mix(in srgb, var(--tool) 22%, transparent);
  transform: rotateY(-12deg) rotateX(4deg) rotateZ(1deg);
  transition: transform .8s var(--ease);
  container-type: inline-size;
}
.phone-tilt-left { transform: rotateY(12deg) rotateX(4deg) rotateZ(-1deg); }
.phone:hover { transform: none; }
.phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 26px; border-radius: 999px; background: #000; z-index: 2;
}
.screen, .app { height: 100%; border-radius: 36px; overflow: hidden; }
.screen p { margin: 0; }

/* Tablet-Rahmen im selben Stil wie das Handy */
.tool-section-wide .tool-body { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.tool-section-wide.tool-section-flip .tool-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.tool-section-wide .float { width: 100%; }
.tablet {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: 6cqi; padding: 2.6cqi;
  background: linear-gradient(145deg, #2a2a2a, #0f0f0f);
  box-shadow: 0 0 0 1.5px #3a3a3a, 0 40px 80px rgba(0,0,0,.6), 0 0 120px color-mix(in srgb, var(--tool) 22%, transparent);
  transform: rotateY(-12deg) rotateX(5deg) rotateZ(1deg);
  transition: transform .8s var(--ease);
  container-type: inline-size;
}
.tablet-tilt-left { transform: rotateY(12deg) rotateX(5deg) rotateZ(-1deg); }
.tablet:hover { transform: none; }
.tablet-cam {
  position: absolute; top: 1.1cqi; left: 50%; transform: translateX(-50%);
  width: .9cqi; height: .9cqi; border-radius: 50%; background: #3a3a3a;
}
.tablet .screen { border-radius: 3.4cqi; }

/* Callzone-Management (dunkel, Farben der App) */
.czt {
  background: #0f1115; color: #f4f5f7;
  padding: 3cqi; display: flex; flex-direction: column; gap: 2.2cqi;
}
.czt-top { display: flex; justify-content: space-between; align-items: center; font-size: 2.3cqi; }
.czt-live { display: flex; align-items: center; gap: .9cqi; color: #34d36b; font-size: 1.9cqi; font-weight: 600; }
.czt-live::before { content: ""; width: 1.3cqi; height: 1.3cqi; border-radius: 50%; background: #34d36b; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.czt-lanes { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2cqi; }
.czt-lane { background: #1a1d24; border-radius: 2.6cqi; padding: 2.4cqi; display: flex; flex-direction: column; gap: 1.6cqi; min-width: 0; }
.czt-heading { color: #8b93a3; text-transform: uppercase; letter-spacing: .08em; font-size: 1.7cqi; }
.czt-card { border-radius: 2cqi; padding: 1.8cqi 2.2cqi; }
.czt-go { background: #34d36b; color: #052e14; }
.czt-next { background: #d92d2d; color: #fff; }
.czt-label { text-transform: uppercase; letter-spacing: .08em; font-size: 1.4cqi; font-weight: 700; opacity: .85; }
.czt-ath { font-size: 3.1cqi; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.czt-queue { margin: .4cqi 0 0; padding-left: 3.4cqi; display: flex; flex-direction: column; gap: 1.2cqi; color: #8b93a3; font-size: 2.1cqi; }
.czt-queue li { color: #b7bdc9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.czt-foot { color: #8b93a3; font-size: 1.7cqi; text-align: center; }

/* Lead-Uhr (dunkel, Farben der App) */
.lut {
  background: #15171c; color: #e8eaef;
  padding: 3cqi; display: flex; flex-direction: column; gap: 2.4cqi; justify-content: center;
}
.lut-head { display: flex; align-items: center; gap: 1.2cqi; padding-bottom: 2.2cqi; border-bottom: 1px solid #343a46; }
.lut-head b { font-size: 2.5cqi; margin-right: auto; font-weight: 700; }
.lut-btn {
  display: inline-block; text-align: center; padding: 1.1cqi 1.5cqi; border-radius: 1.2cqi;
  font-size: 1.5cqi; font-weight: 600; background: #272c36; color: #e8eaef; white-space: nowrap;
}
.lut-red { background: #d4163c; color: #fff; }
.lut-warn { background: #e6a100; color: #1d1500; }
.lut-ok { background: #2fbf71; color: #0b1a11; }
.lut-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqi; }
.lut-panel { background: #1f232b; border: 1px solid #343a46; border-radius: 2.2cqi; padding: 2cqi; display: flex; flex-direction: column; gap: 1.6cqi; min-width: 0; }
.lut-panel-head { display: flex; align-items: center; gap: 1cqi; font-size: 2.1cqi; }
.lut-panel-head b { flex: 1; }
.lut-badge { font-size: 1.4cqi; font-weight: 700; background: #272c36; color: #9aa3b2; border-radius: .9cqi; padding: .3cqi 1cqi; }
.lut-live { display: flex; align-items: center; gap: .7cqi; font-size: 1.4cqi; color: #2fbf71; }
.lut-live::before { content: ""; width: 1.1cqi; height: 1.1cqi; border-radius: 50%; background: #2fbf71; }
.lut-screen { position: relative; aspect-ratio: 4 / 3; border-radius: 1.4cqi; background: #000; display: grid; place-items: center; }
.lut-route { position: absolute; top: 1.2cqi; left: 1.6cqi; font-size: 1.4cqi; color: #9aa3b2; font-weight: 600; }
.lut-time { font-size: 10cqi; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #fff; transition: color .3s; }
.lut-time.is-low { color: #ff3b4f; }
.lut-controls { display: flex; gap: .8cqi; }
.lut-controls .lut-btn { font-size: 1.3cqi; padding: .9cqi 1.1cqi; }
.lut-controls .lut-btn:last-child { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.lut-btn.press { animation: press .4s var(--ease); }
@keyframes press { 40% { transform: scale(.92); filter: brightness(1.3); } }

/* TI-Rechner (hell, Farben der App) – Größen relativ zur Handybreite */
.app {
  background: #f4f5f7; color: #111827;
  padding: 20cqi 5.5cqi 6cqi; display: flex; flex-direction: column; gap: 3cqi;
  font-size: 4.4cqi;
}
.app p { margin: 0; }
.app-title { font-size: 8.4cqi; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.app-title span { color: #ea7a35; }
.app-sub { color: #6b7280; margin-top: -2.4cqi !important; }
.app-seg { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid #e5e7eb; border-radius: 4cqi; padding: 1.3cqi; }
.app-seg span { text-align: center; padding: 2.2cqi; border-radius: 3cqi; font-weight: 600; color: #6b7280; }
.app-seg .on { background: #374151; color: #fff; }
.app-card, .app-countdown { background: #fff; border: 1px solid #e5e7eb; border-radius: 5cqi; padding: 3.6cqi 4.2cqi; }
.app-label { color: #6b7280; font-size: 3.4cqi; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1cqi !important; }
.app-value { font-size: 6.6cqi; font-weight: 800; color: #ea7a35; margin-bottom: 1cqi !important; }
.app-row { display: flex; justify-content: space-between; gap: 2cqi; padding: 1.8cqi 0; border-top: 1px solid #f0f1f3; }
.app-row:first-of-type { border-top: 0; }
.app-result .app-row { border-top: 1px solid #f0f1f3; }
.app-row span { color: #6b7280; }
.app-timeline { position: relative; display: grid; grid-template-columns: 2fr 1.4fr 1.6fr; gap: 1cqi; height: 3.6cqi; margin: 1.6cqi 0 2.4cqi; }
.app-timeline i { border-radius: 99px; }
.tl-iso { background: #8b5cf6; }
.tl-cz { background: #0ea5e9; }
.tl-slot { background: #f97316; }
.tl-now {
  position: absolute; top: -1.4cqi; bottom: -1.4cqi; left: 0; width: 1.2cqi; border-radius: 99px;
  background: #111827; box-shadow: 0 0 0 1cqi #fff; transition: left 1s linear;
}
.app-legend { display: flex; flex-wrap: wrap; gap: 1cqi 3cqi; font-size: 3.1cqi; color: #6b7280; }
.app-legend span { display: flex; align-items: center; gap: 1.2cqi; }
.app-legend span::before { content: ""; width: 2.2cqi; height: 2.2cqi; border-radius: 50%; }
.lg-iso::before { background: #8b5cf6; }
.lg-cz::before { background: #0ea5e9; }
.lg-slot::before { background: #f97316; }
.app-countdown { background: #fff6ee; border-color: #f6d3bb; display: flex; align-items: center; justify-content: space-between; }
.app-countdown .app-label { margin: 0 !important; }
.app-timer { font-size: 10cqi; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #ea7a35; line-height: 1.1; }

/* ---------- Aus der Praxis ---------- */
.maker { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.maker-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius); }
.maker-text { font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin: 0; }
.muted { color: #a3a3a3; }

/* ---------- Wettkampftechnik / Hardware (gleiches dunkles Design wie die Web-Apps) ---------- */
.hardware-wrap { padding-top: 0; }
.hardware {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--black); color: var(--white);
  border-radius: clamp(24px, 4vw, 48px);
  padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hardware::before {
  content: ""; position: absolute; z-index: -1; left: -20%; bottom: -40%; width: 75%; height: 150%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tool) 26%, transparent), transparent);
  pointer-events: none;
}
.hardware .eyebrow { color: rgba(255,255,255,.55); }
.hardware h2 { margin-bottom: 20px; }
.hardware h2::before {
  content: ""; display: block; width: 44px; height: 6px; border-radius: 6px;
  background: var(--tool); margin-bottom: 22px; box-shadow: 0 0 16px var(--tool);
}
.hardware-lead { font-size: clamp(17px, 1.6vw, 19px); color: rgba(255,255,255,.72); margin: 0; max-width: 520px; }
.hardware-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.hardware-contact p { margin: 0; font-size: 18px; }
.hardware .btn-tool { color: var(--white); }
.hardware-media {
  display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px;
  aspect-ratio: 5 / 4;
}
.hardware-media img {
  width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.hardware-media .hw-big { grid-row: span 2; }

/* ---------- Kontakt ---------- */
.contact-wrap { padding: 0 clamp(8px, 1.5vw, 20px) clamp(8px, 1.5vw, 20px); }
.contact {
  position: relative; overflow: hidden;
  background: var(--black); color: var(--white);
  border-radius: clamp(24px, 4vw, 48px);
  padding: clamp(72px, 11vw, 140px) var(--pad);
  text-align: center;
}
.contact::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
  background:
    radial-gradient(closest-side at 25% 50%, rgba(143,232,44,.18), transparent),
    radial-gradient(closest-side at 75% 50%, rgba(31,111,255,.2), transparent);
  pointer-events: none;
}
.contact > * { position: relative; }
.contact .eyebrow { justify-content: center; color: rgba(255,255,255,.55); }
.contact h2 { font-size: clamp(40px, 7vw, 96px); font-weight: 800; max-width: 14ch; margin: 0 auto; }
.contact-lead { font-size: 18px; color: rgba(255,255,255,.65); max-width: 520px; margin: 20px auto 0; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 44px 0 18px; padding: 18px 32px; border-radius: 999px;
  background: var(--white); color: var(--black);
  font-size: clamp(20px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.03em;
  text-decoration: none; overflow-wrap: anywhere;
  transition: transform .25s var(--ease), background .25s;
}
.contact-mail:hover { transform: scale(1.03); background: var(--c-lime); }
.contact-mail span { transition: transform .25s var(--ease); }
.contact-mail:hover span { transform: translateX(4px); }
.contact-help { margin-top: 28px; color: rgba(255,255,255,.55); font-size: 15px; }
.contact-help a { color: rgba(255,255,255,.85); font-weight: 600; }
.contact-help a:hover { color: var(--white); }
.contact-hint { color: rgba(255,255,255,.5); max-width: 480px; margin: 0 auto 28px; font-size: 15px; }
.contact-ig { font-weight: 600; text-decoration: none; color: rgba(255,255,255,.85); }
.contact-ig:hover { color: var(--white); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  max-width: var(--max); margin: 0 auto;
  padding: 28px var(--pad) 36px;
  color: var(--grey-600); font-size: 14px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Kletterer am rechten Bildschirmrand ---------- */
.climber {
  position: fixed; z-index: 40; right: 0; bottom: 18px;
  width: 40px; height: 64px; pointer-events: none;
  will-change: transform;
}
.climber svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(-2px 3px 4px rgba(0,0,0,.25)); }
.climber-near, .climber-far, .climber-torso, .climber-harness { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.climber-near { stroke: var(--black); stroke-width: 2.9; }
.climber-far { stroke: #7a7a7a; stroke-width: 2.7; }
.climber-torso { stroke: var(--black); stroke-width: 6; }
.climber-harness { stroke: #9a9a9a; stroke-width: 1.8; }
.climber-bag { fill: #3a3a3a; }
.climber-head { fill: var(--black); }

/* Seil beim Ablassen: Exe oben an der Kante, Seil bis zum Gurt */
.climber-rope {
  position: fixed; z-index: 39; top: 96px; right: var(--rope-right, 11px);
  width: 0; height: 0; pointer-events: none;
  opacity: 0; transition: opacity .35s;
}
.climber-rope.show { opacity: 1; }
.rope-anchor {
  position: absolute; top: -9px; left: -4px; width: 8px; height: 12px;
  border: 2px solid #7a7a7a; border-radius: 4px; background: transparent;
  box-shadow: 0 0 0 1px rgba(255,255,255,.7);
}
.rope-line {
  position: absolute; top: 2px; left: -1.5px; width: 3px; height: var(--rope-length, 0px);
  border-radius: 2px;
  background: repeating-linear-gradient(170deg, #e6a100 0 3px, #c47f00 3px 5px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.6);
  transform-origin: top; transform: scaleY(0); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}
.climber-rope.show .rope-line { transform: scaleY(1); }

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .tool-body, .tool-section-wide .tool-body, .tool-section-wide.tool-section-flip .tool-body { grid-template-columns: 1fr; }
  .tool-tag { display: none; }
  .tool-section-flip .tool-copy { order: 0; }
  .hardware { grid-template-columns: 1fr; align-items: start; }
  .phone, .tablet { transform: none; }
}

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .nav-pill { padding: 6px 6px 6px 18px; position: relative; }
  .menu-toggle {
    display: block; position: relative;
    width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: var(--black); cursor: pointer;
  }
  .menu-toggle span {
    position: absolute; left: 13px; top: 50%; width: 18px; height: 2px; margin-top: -1px;
    background: var(--white); border-radius: 2px; transition: transform .3s var(--ease);
  }
  .menu-toggle span:first-child { transform: translateY(-3.5px); }
  .menu-toggle span:last-child { transform: translateY(3.5px); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  .nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; border-radius: 24px;
    background: var(--white); border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav.open a { animation: climb-in .5s var(--ease) both; }
  .nav a.nav-lang { padding: 14px 16px; gap: 12px; }
  .nav-lang .flag { width: 30px; height: 20px; }
  .nav.open a:nth-child(1) { animation-delay: .24s; }
  .nav.open a:nth-child(2) { animation-delay: .16s; }
  .nav.open a:nth-child(3) { animation-delay: .08s; }
  .nav.open a:nth-child(4) { animation-delay: 0s; }
  .menu-toggle[aria-expanded="true"] { animation: chalk .45s var(--ease); }
  .wordmark { font-size: 20px; }
  .wordmark-by { font-size: 12px; }
  .nav a { padding: 14px 16px; font-size: 17px; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }

  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .hardware { padding: 28px 20px; }
  .hardware-media { aspect-ratio: 4 / 3; gap: 6px; }
  .hardware-media img { border-radius: 12px; }
  .hardware .btn { width: 100%; justify-content: center; }
  .tool-name { white-space: normal; }
  .tool-plus { width: 40px; height: 40px; }
  .tool-features li { grid-template-columns: 1fr; gap: 2px; }
  .tool-section .btn { width: 100%; justify-content: center; }
  .maker { grid-template-columns: 1fr; }
  .contact-mail { padding: 16px 22px; }
  .climber { width: 27px; height: 43px; right: 0; bottom: 12px; }
  .climber-rope { top: 86px; }
}


/* ---------- Rechtstexte ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 140px var(--pad) clamp(48px, 8vw, 96px); }
.legal h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; margin-bottom: 40px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--grey-900); }
.legal ul { padding-left: 20px; }
.legal-date { margin-top: 40px; color: var(--grey-600) !important; font-size: 14px; }
.back-link { margin-left: auto; }

/* ---------- Fragen & Anleitungen ---------- */
.help { max-width: 900px; }
.help h1 { margin-bottom: 20px; }
.help-intro { font-size: 18px; max-width: 640px; }
.help-lang { font-size: 14px; margin-top: 8px; }
.help-lang a { color: var(--grey-600); }
.help h2 { font-size: clamp(24px, 3vw, 30px); margin: 56px 0 18px; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px; border-radius: var(--radius-sm);
  background: var(--black); color: var(--white);
}
.guide-card { scroll-margin-top: 110px; }
.guide-card:target { box-shadow: 0 0 0 2px var(--tool), 0 0 28px -6px var(--tool); }
.guide-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: -0.02em; }
.guide-card h3::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--tool); box-shadow: 0 0 12px var(--tool);
}
.legal .guide-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.guide-links a {
  display: block; padding: 12px 14px; border-radius: 10px;
  background: var(--grey-900); color: var(--white);
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background .2s var(--ease);
}
.guide-links a:hover { background: var(--grey-700); }
.guide-links small { display: block; margin-top: 2px; color: #a8a8a8; font-weight: 400; font-size: 13px; }
.guide-open { margin-top: auto; color: var(--tool); font-weight: 600; font-size: 14px; text-decoration: none; }
.guide-open:hover { text-decoration: underline; }

.faq { border-top: 1px solid var(--grey-300); }
.faq details { border-bottom: 1px solid var(--grey-300); }
.faq summary {
  position: relative; padding: 18px 44px 18px 0;
  font-weight: 600; font-size: 17px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%;
  font-size: 24px; font-weight: 400; line-height: 1;
  transform: translateY(-50%); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.faq details p { margin: 0; padding: 0 0 22px; max-width: 680px; }

@media (max-width: 760px) {
  .guide-grid { grid-template-columns: 1fr; }
}
