/* =========================================================
   ibumi · Strategiepapier — Styles
   Farben, Schriften und Layout der Seite.
   (Hier änderst du das AUSSEHEN. Inhalte stehen in index.html.)
   ========================================================= */

/* ---- Farbpalette & Grundwerte (an einer Stelle änderbar) ---- */
:root {
  --orange:        #E8672E;   /* Hauptfarbe */
  --orange-soft:   #F0894A;
  --ink:           #171310;   /* fast-schwarz, warm */
  --ink-2:         #2a2320;
  --cream:         #FBF7F0;   /* heller Hintergrund */
  --cream-2:       #F3ECE0;
  --line:          #E4D9C8;   /* dünne Trennlinien */
  --muted:         #7c7266;   /* gedämpfter Text */
  --white:         #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1120px;
}

/* ---- Reset / Basis ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0; }
p { margin: 0 0 1.1em; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* =========================================================
   1) PASSWORT-GATE (der Schutz VOR der Seite)
   ========================================================= */
#gate {
  position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #0d0b0a;
  color: var(--cream); padding: 24px;
  transition: opacity .5s ease;
}
#gate.leaving { opacity: 0; }

/* Ambient-Hintergrund */
.gate-bg { position: absolute; inset: 0; pointer-events: none; }
.gate-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(8,7,6,.40), rgba(8,7,6,.55)),
    radial-gradient(120% 92% at 50% 42%, transparent 48%, rgba(8,7,6,.35) 100%);
}
/* Lesbarkeit über dem Video */
.gate-brand span, .gate-overline, .gate-sub { text-shadow: 0 2px 14px rgba(0,0,0,.65); }
.gate-card.shake { animation: shake .5s ease; }
.gate-glow {
  position: absolute; width: 90vw; height: 90vw; max-width: 1100px; max-height: 1100px;
  left: 50%; top: 42%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232,103,46,.22), rgba(232,103,46,.06) 40%, transparent 66%);
  animation: glowDrift 14s ease-in-out infinite;
}
@keyframes glowDrift {
  0%, 100% { transform: translate(-54%, -52%) scale(1); }
  50%      { transform: translate(-46%, -46%) scale(1.12); }
}
.speedlines {
  position: absolute; inset: 0; opacity: .5;
  background-image: repeating-linear-gradient(90deg, transparent 0 60px, rgba(255,255,255,.05) 60px 61px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  animation: speed 6s linear infinite;
}
@keyframes speed { from { background-position: 0 0; } to { background-position: -244px 0; } }

.gate-card { position: relative; z-index: 2; width: 100%; max-width: 500px; text-align: center; }
.gate-card::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 135%; height: 132%;
  background: radial-gradient(ellipse at center, rgba(8,7,6,.62), rgba(8,7,6,.30) 46%, transparent 72%);
  filter: blur(10px); pointer-events: none;
}
.gate-brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 30px; opacity: 0; animation: fadeUp .7s ease .1s forwards; }
.gate-brand img { height: 30px; }
.gate-brand span { font-family: var(--font-display); font-size: 22px; letter-spacing: .5px; color: var(--cream); }

/* Kennzeichen */
.plate-stage { position: relative; display: inline-block; perspective: 900px; margin: 0 auto 34px; }
.plate-stage::before {
  content: ""; position: absolute; inset: -26px -70px; z-index: -1;
  background: radial-gradient(58% 62% at 50% 50%, rgba(232,103,46,.38), transparent 70%);
  filter: blur(12px); animation: thrust 1.7s ease-in-out infinite;
}
@keyframes thrust { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: .95; transform: scale(1.07); } }
.plate-flame {
  position: absolute; left: -60px; top: 50%; width: 74px; height: 46%;
  transform: translateY(-50%); border-radius: 50%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,150,60,.12), rgba(255,120,40,.85));
  filter: blur(7px); animation: flame .16s steps(2, end) infinite alternate;
}
@keyframes flame { from { opacity: .55; transform: translateY(-50%) scaleX(.9); } to { opacity: 1; transform: translateY(-50%) scaleX(1.12); } }
.plate {
  --plate-h: 118px;
  position: relative; display: inline-flex; align-items: stretch;
  height: var(--plate-h); border-radius: 12px; overflow: hidden;
  background: #f4f4f2; border: 3px solid #111;
  box-shadow: 0 22px 55px -18px rgba(0,0,0,.75), inset 0 0 0 1px rgba(0,0,0,.12);
  animation: driveIn 1.05s cubic-bezier(.2,.9,.25,1) both;
}
@keyframes driveIn {
  0%   { opacity: 0; transform: translateX(95%) rotateY(24deg) scale(.95); }
  60%  { opacity: 1; transform: translateX(-4%) rotateY(-3deg) scale(1.015); }
  100% { opacity: 1; transform: translateX(0) rotateY(0) scale(1); }
}
.plate-eu { width: 48px; background: #003399; display: flex; flex: 0 0 auto; }
.plate-eu svg { width: 100%; height: 100%; }
.plate-body {
  display: flex; align-items: center; gap: 13px; padding: 0 22px 0 16px;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-weight: 700; color: #131313;
}
.pt-city, .pt-main {
  font-size: 56px; line-height: 1; letter-spacing: 2px;
  transform: scaleY(1.16); transform-origin: center;
  text-shadow: 0 1px 0 rgba(0,0,0,.22);
}
.plate-seals { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.seal { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.seal-hu { background: conic-gradient(#2ea24a 0 25%, #f0c020 0 50%, #2ea24a 0 75%, #f0c020 0); border: 1.5px solid #fff; }
.seal-ib { background: var(--orange); display: flex; align-items: center; justify-content: center; }
.seal-ib svg { width: 16px; height: 16px; }

.plate-shine {
  position: absolute; top: 0; bottom: 0; width: 55%; left: -70%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.72), transparent);
  transform: skewX(-18deg);
  animation: shine 1.3s ease 1.2s 1 both;
}
@keyframes shine { 0% { left: -70%; } 100% { left: 135%; } }

/* Wegfahren beim Freischalten */
.plate.drive-off { animation: driveOff .68s cubic-bezier(.5,0,.9,.3) forwards; }
@keyframes driveOff {
  0%   { transform: translateX(0) scale(1); filter: blur(0); opacity: 1; }
  100% { transform: translateX(185%) skewX(-12deg) scale(1.05); filter: blur(7px); opacity: 0; }
}
/* Brems-Rütteln bei falschem Passwort */
.plate.shake { animation: shake .5s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px) rotate(-.6deg); }
  40% { transform: translateX(7px) rotate(.5deg); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

.gate-overline { display: block; color: var(--orange); font-size: 14px; font-weight: 600; letter-spacing: 3px; opacity: 0; animation: fadeUp .7s ease .48s forwards; }
.gate-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 5.2vw, 48px); line-height: 1.05; color: var(--cream); margin: 8px 0 14px; text-shadow: 0 3px 22px rgba(0,0,0,.8); opacity: 0; animation: fadeUp .7s ease .58s forwards; }
.gate-sub { color: #f0e8dc; font-size: 18px; font-weight: 500; margin: 0 0 28px; opacity: 0; animation: fadeUp .7s ease .7s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.gate-form { display: flex; flex-direction: column; gap: 12px; }
.gate-form input {
  width: 100%; padding: 15px 18px; font-size: 16px; font-family: var(--font-body);
  color: var(--cream); background: rgba(10,8,7,.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,.22); border-radius: 12px; outline: none;
  transition: border-color .2s, background .2s;
}
.gate-form input::placeholder { color: #9a8f83; }
.gate-form input:focus { border-color: var(--orange); background: rgba(10,8,7,.62); }
.gate-form button {
  width: 100%; padding: 15px 18px; font-size: 16px; font-weight: 600; cursor: pointer;
  color: #fff; background: var(--orange); border: none; border-radius: 12px;
  transition: transform .05s ease, background .2s;
}
.gate-form button:hover { background: #d65a24; }
.gate-form button:active { transform: translateY(1px); }
.gate-error { min-height: 20px; color: #ff9b7a; font-size: 14px; margin-top: 2px; }
.gate-hint { margin-top: 22px; font-size: 12.5px; color: #8a7f73; }

/* Ausgeblendet, bis das Passwort stimmt */
#site { display: none; }
body.unlocked #gate { display: none; }
body.unlocked #site { display: block; }

/* =========================================================
   2) KOPFZEILE
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,240,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 34px; }
.brand .name { font-family: var(--font-display); font-size: 22px; letter-spacing: .5px; }
.badge {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange); border: 1px solid var(--orange); border-radius: 999px; padding: 5px 11px;
}

/* =========================================================
   3) HERO
   ========================================================= */
.overline {
  font-size: 12.5px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--orange);
}
.hero { padding: 84px 0 60px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -.5px; margin: 18px 0 18px; }
.hero h1 .dot { color: var(--orange); }
.hero .lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--ink-2); max-width: 620px; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 26px; position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--orange); }
.stat .num { font-family: var(--font-display); font-size: 44px; color: var(--ink); line-height: 1; }
.stat .num span { color: var(--orange); }
.stat .label { margin-top: 10px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* =========================================================
   4) ABSCHNITTE
   ========================================================= */
section { padding: 30px 0; }
.section-lead { padding: 66px 0 20px; }
.section-lead .overline { margin-bottom: 14px; display: block; }
.section-lead h2 { font-size: clamp(30px, 4.4vw, 46px); max-width: 760px; }
.section-lead .intro { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 720px; }

.divider { height: 1px; background: var(--line); margin: 8px 0; }

/* Bausteine 01–07 */
.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 20px; }
.block {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 30px; transition: transform .25s ease, box-shadow .25s ease;
}
.block:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(23,19,16,.35); }
.block .no {
  font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--orange);
  letter-spacing: 1px;
}
.block h3 { font-size: 25px; margin: 8px 0 14px; }
.block p { color: var(--ink-2); margin: 0; }
.block.wide { grid-column: 1 / -1; }
.tag {
  display: inline-block; margin-bottom: 14px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--orange); background: rgba(232,103,46,.10);
  border-radius: 999px; padding: 5px 12px;
}

/* =========================================================
   5) PROFIL
   ========================================================= */
.profile { background: var(--ink); color: var(--cream); border-radius: 26px; padding: 54px; margin: 40px 0; }
.profile .grid { display: grid; grid-template-columns: 150px 1fr; gap: 40px; align-items: start; }
.avatar {
  width: 150px; height: 150px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--orange), #b94a1e); color: #fff;
  font-family: var(--font-display); font-size: 60px;
}
.profile .overline { color: var(--orange-soft); }
.profile h2 { color: var(--cream); font-size: 34px; margin: 10px 0 4px; }
.profile .role { color: #c9bdb0; margin-bottom: 20px; }
.profile p { color: #d8cdc0; }
.contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--cream); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 11px 16px;
  font-size: 14.5px; transition: border-color .2s, background .2s;
}
.contact a:hover { border-color: var(--orange); background: rgba(232,103,46,.14); }
.contact a.filled { background: var(--orange); border-color: var(--orange); }
.placeholder { color: var(--orange-soft); font-style: italic; }

/* =========================================================
   6) FUSSZEILE
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 30px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .brand .name { font-size: 18px; }
.site-footer small { color: var(--muted); }

/* =========================================================
   7) ANIMATIONEN & MOBIL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr; }
  .blocks { grid-template-columns: 1fr; }
  .profile { padding: 34px 26px; }
  .profile .grid { grid-template-columns: 1fr; gap: 24px; }
  .avatar { width: 110px; height: 110px; font-size: 46px; }
  .badge { display: none; }
}

/* =========================================================
   8) NEU: Icons, Grafiken, interaktiver Rechner, Foto
   ========================================================= */

/* Icons auf den Bausteinen */
.block-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,103,46,.10); color: var(--orange);
}
.block-icon svg { width: 24px; height: 24px; }

/* 3-Schritt-Strategie-Grafik */
.flow { display: flex; align-items: stretch; gap: 12px; margin: 40px 0 10px; }
.flow-step {
  flex: 1; text-align: center; background: var(--white);
  border: 1px solid var(--line); border-radius: 18px; padding: 28px 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.flow-step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(23,19,16,.35); }
.flow-step.highlight { background: var(--ink); border-color: var(--ink); }
.flow-icon {
  width: 54px; height: 54px; border-radius: 14px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,103,46,.12); color: var(--orange);
}
.flow-step.highlight .flow-icon { background: rgba(240,137,74,.18); }
.flow-icon svg { width: 28px; height: 28px; }
.flow-num { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); }
.flow-step h4 { font-family: var(--font-display); font-weight: 500; font-size: 21px; margin: 6px 0 8px; }
.flow-step p { margin: 0; font-size: 14.5px; color: var(--muted); }
.flow-step.highlight h4 { color: var(--cream); }
.flow-step.highlight p { color: #cbbfb2; }
.flow-arrow { display: flex; align-items: center; color: #d9ccb9; }
.flow-arrow svg { width: 26px; height: 26px; }

/* Interaktiver Wert-Rechner */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 34px; margin-top: 30px; }
.calc-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.calc-top-3 { grid-template-columns: repeat(3, 1fr); }
.calc-metric-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.calc-metric-val { font-family: var(--font-display); font-size: 30px; color: var(--ink); line-height: 1; }
.calc-metric-val.orange { color: var(--orange); }

.calc-chart { position: relative; height: 220px; border-bottom: 2px solid var(--line); margin-bottom: 28px; }
.calc-target { position: absolute; left: 0; right: 0; top: 20px; border-top: 1px dashed var(--orange); opacity: .55; }
.calc-target span { position: absolute; right: 0; top: -9px; background: var(--white); padding: 0 6px; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--orange); }
.calc-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 64px; }
.calc-bargroup { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; width: 116px; }
.calc-bar { width: 100%; border-radius: 12px 12px 0 0; position: relative; }
.calc-bar b { position: absolute; top: -27px; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.calc-bar-ref { background: var(--cream-2); height: 59%; }
.calc-bar-live { background: linear-gradient(180deg, var(--orange-soft), var(--orange)); height: 59%; transition: height .5s cubic-bezier(.2,.8,.2,1); }
.calc-bar-live b { color: var(--orange); }
.calc-barcap { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

#c-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--cream-2); outline: none; }
#c-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
#c-slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--orange); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
.calc-scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.calc-note { margin: 18px 0 0; font-size: 12px; color: var(--muted); }

/* Profil-Foto rund */
.avatar-photo {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: center;
  border: 3px solid var(--orange); box-shadow: 0 12px 30px -14px rgba(0,0,0,.55);
}

@media (max-width: 820px) {
  .flow { flex-direction: column; }
  .flow-arrow { justify-content: center; transform: rotate(90deg); }
  .calc { padding: 24px; }
  .calc-top { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .calc-metric-val { font-size: 26px; }
  .calc-bars { gap: 34px; }
  .avatar-photo { width: 120px; height: 120px; }
}

/* =========================================================
   9) Startseite: Kennzeichen – Einblenden, Mobil, Reduced Motion
   ========================================================= */
.gate-form { opacity: 0; animation: fadeUp .7s ease .82s forwards; }

@media (max-width: 560px) {
  .plate { --plate-h: 84px; border-width: 2.5px; }
  .plate-eu { width: 34px; }
  .plate-body { gap: 9px; padding: 0 14px 0 11px; }
  .pt-city, .pt-main { font-size: 38px; letter-spacing: 1px; }
  .plate-seals { gap: 4px; }
  .seal { width: 18px; height: 18px; }
  .seal-ib svg { width: 11px; height: 11px; }
  .gate-card { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .gate-glow, .speedlines, .plate, .plate-shine, .plate-stage::before,
  .gate-brand, .gate-overline, .gate-sub, .gate-form {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .plate-shine, .plate-flame { display: none; }
  .plate.drive-off { animation: none !important; opacity: 0 !important; }
}
