/* Kunden-Hub, immer hell. Bewusst ohne marken.css, die den Dunkelmodus
   des Teams mitbringt. Farben der BEG: Schwarz, Weiss, Orange als Akzent. */

@import url('/assets/schriften/schriften.css');

:root {
  color-scheme: light;
  --schwarz: #141414;
  --weiss: #FFFFFF;
  --orange: #E8631A;
  --orange-text: #B3470B;
  --orange-hauch: #FFF6F0;
  --orange-linie: rgba(232, 99, 26, .22);

  --text: #141414;
  --text-weich: #4A463F;
  --text-leise: #77716A;
  --linie: rgba(20, 20, 20, .08);
  --linie-stark: rgba(20, 20, 20, .14);

  --gruen: #2E9A63;
  --gruen-bg: #E9F6EE;
  --gruen-text: #1B6B43;

  --schatten: 0 1px 2px rgba(20, 20, 20, .04), 0 10px 30px -18px rgba(20, 20, 20, .22);
  --schatten-hoch: 0 2px 4px rgba(20, 20, 20, .04), 0 22px 44px -20px rgba(20, 20, 20, .30);
  --fokus: 0 0 0 3px rgba(232, 99, 26, .32);

  --schrift: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --rad: 20px;
  --rad-klein: 14px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(232, 99, 26, .08) 0%, transparent 62%),
    radial-gradient(800px 420px at 100% 0%, rgba(20, 20, 20, .03) 0%, transparent 60%),
    var(--weiss);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: none; box-shadow: var(--fokus); border-radius: 10px; }

.hub { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- Kopf */

.vorschau-balken {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px;
  background: var(--schwarz); color: var(--weiss);
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
}
.vorschau-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(232, 99, 26, .25); }

.kopf {
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.70) 100%);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.marke { display: flex; align-items: center; gap: 10px; }
.marke img { width: 28px; height: 28px; }
.marke-name { font-weight: 700; font-size: 17px; letter-spacing: .04em; }

.abmelden {
  border: 1px solid var(--linie-stark); background: var(--weiss);
  padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-weich);
  cursor: pointer; transition: border-color .2s, color .2s;
}
.abmelden:hover { border-color: var(--schwarz); color: var(--schwarz); }
.abmelden:disabled { opacity: .5; cursor: default; }

/* -------------------------------------------------------------- Inhalt */

.inhalt {
  flex: 1;
  width: 100%; max-width: 960px; margin: 0 auto;
  padding: 40px 20px 72px;
  display: flex; flex-direction: column; gap: 48px;
}

.begruessung { display: flex; flex-direction: column; gap: 10px; }
.augenbraue {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-text);
}
.begruessung h1 {
  font-size: clamp(34px, 8vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.einleitung { font-size: 18px; color: var(--text-weich); max-width: 34em; }

/* Karten, die leicht ueber dem Grund schweben */
.schwebt {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--rad);
  box-shadow: var(--schatten);
}

/* ---------------------------------------------- Was wir von dir brauchen */

.brauchen {
  background: linear-gradient(180deg, #FFF8F3 0%, var(--orange-hauch) 100%);
  border-color: var(--orange-linie);
  padding: 24px 22px;
  box-shadow: 0 1px 2px rgba(232, 99, 26, .06), 0 18px 40px -24px rgba(232, 99, 26, .45);
}
.brauchen-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.brauchen-kopf h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.brauchen-punkt {
  flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 5px rgba(232, 99, 26, .16);
  animation: puls 2.6s ease-in-out infinite;
}
.brauchen-liste { display: flex; flex-direction: column; }
.brauchen-liste li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--orange-linie);
}
.brauchen-liste li:first-child { border-top: 0; padding-top: 4px; }
.brauchen-kreis {
  grid-row: span 2;
  width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  border: 2px solid var(--orange); background: var(--weiss);
}
.brauchen-titel { font-weight: 500; font-size: 17px; overflow-wrap: anywhere; }
.brauchen-frist { grid-column: 2; font-size: 14px; color: var(--orange-text); font-weight: 500; }

/* ---------------------------------------------------------- Abschnitte */

.abschnitt { display: flex; flex-direction: column; gap: 18px; }
.abschnitt-kopf { display: flex; flex-direction: column; gap: 4px; }
.abschnitt-kopf h2 { font-size: 24px; font-weight: 600; letter-spacing: -.015em; }
.abschnitt-kopf p { color: var(--text-leise); font-size: 15px; }

.leer {
  padding: 22px; border-radius: var(--rad);
  border: 1px dashed var(--linie-stark);
  color: var(--text-leise); font-size: 15px;
  background: rgba(255, 255, 255, .6);
}

/* Projekte */
.projekte { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.projekt {
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.projekt:hover { transform: translateY(-2px); box-shadow: var(--schatten-hoch); }
.projekt-leistung { font-size: 19px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }

.stand {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: #F3F2EF; color: var(--text-weich);
}
.stand-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--schwarz); }
.stand-aktion { background: var(--orange-hauch); color: var(--orange-text); }
.stand-aktion .stand-punkt { background: var(--orange); }
.stand-laeuft { background: var(--gruen-bg); color: var(--gruen-text); }
.stand-laeuft .stand-punkt { background: var(--gruen); }
.stand-ruhig { background: #F3F2EF; color: var(--text-leise); }
.stand-ruhig .stand-punkt { background: #A8A29A; }

/* Knoepfe */
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 20px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  max-width: 100%;
}
.knopf span { overflow-wrap: anywhere; }
.knopf svg { flex: none; }
.knopf-haupt {
  background: var(--schwarz); color: var(--weiss);
  box-shadow: 0 10px 24px -14px rgba(20, 20, 20, .6);
}
.knopf-haupt:hover { background: #2A2825; transform: translateY(-1px); }
.knopf-zweit {
  background: var(--weiss); color: var(--schwarz);
  border: 1px solid var(--linie-stark);
  box-shadow: var(--schatten);
}
.knopf-zweit:hover { border-color: var(--orange); transform: translateY(-1px); }
.knopf-zweit svg { color: var(--orange); }

/* Unterlagen */
.unterlagen { padding: 4px 0; }
.unterlage {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 20px;
  border-top: 1px solid var(--linie);
}
.unterlage:first-child { border-top: 0; }
.unterlage-symbol {
  flex: none; width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: #F5F4F1; color: var(--text-weich);
}
.unterlage-inhalt { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 6px; }
.unterlage-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: none;
  overflow-wrap: anywhere;
}
.unterlage-link svg { flex: none; color: var(--orange); }
.unterlage-link:hover span { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.unterlage-text { color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.unterlage-zeit { font-size: 13px; color: var(--text-leise); }

/* Akademie */
.videos { display: flex; flex-direction: column; gap: 12px; }
.video { overflow: hidden; transition: box-shadow .25s ease; }
.video:hover { box-shadow: var(--schatten-hoch); }
.video-kopf {
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border: 0; background: transparent; text-align: left; cursor: pointer;
  border-radius: var(--rad);
}
.video-play {
  flex: none; position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--schwarz);
  box-shadow: 0 8px 18px -10px rgba(20, 20, 20, .7);
  transition: background .2s ease;
}
.video-play::after {
  content: ""; position: absolute; left: 17px; top: 14px;
  border-left: 13px solid var(--weiss); border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.video-kopf:hover .video-play, .video-kopf[aria-expanded="true"] .video-play { background: var(--orange); }
.video-kopf[aria-expanded="true"] .video-play::after {
  left: 15px; top: 15px; width: 14px; height: 14px;
  border: 0; border-left: 4px solid var(--weiss); border-right: 4px solid var(--weiss);
}
.video-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.video-titel { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.video-meta { font-size: 14px; color: var(--text-leise); }
.video-spieler { padding: 0 12px 12px; }
.video-spieler video { display: block; width: 100%; border-radius: 12px; background: var(--schwarz); aspect-ratio: 16 / 9; }

/* WhatsApp */
.whatsapp {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
}
.whatsapp-symbol {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gruen-bg); color: var(--gruen-text);
}
.whatsapp p { font-weight: 500; }

/* ---------------------------------------------------------------- Fuss */

.fuss {
  width: 100%; max-width: 960px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center;
  padding: 24px 20px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linie);
  font-size: 14px; color: var(--text-leise);
}
.fuss nav { display: flex; gap: 18px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--schwarz); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------- Hinweis- und Ladeseite */

.hinweis-seite {
  flex: 1; display: grid; place-items: center;
  padding: 48px 20px;
}
.hinweis-karte {
  width: 100%; max-width: 440px;
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--schatten-hoch);
}
.hinweis-karte .marke { margin-bottom: 10px; }
.hinweis-karte h1 { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.hinweis-karte p { color: var(--text-weich); font-size: 17px; }

.laden-ruhig { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60vh; }
.laden-ruhig span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  animation: puls 1.2s ease-in-out infinite;
}
.laden-ruhig span:nth-child(2) { animation-delay: .15s; }
.laden-ruhig span:nth-child(3) { animation-delay: .3s; }

/* ---------------------------------------------------------- Bewegung */

.inhalt > *, .hinweis-karte { animation: auftauchen .6s cubic-bezier(.2, .7, .2, 1) both; }
.inhalt > :nth-child(2) { animation-delay: .06s; }
.inhalt > :nth-child(3) { animation-delay: .12s; }
.inhalt > :nth-child(4) { animation-delay: .18s; }
.inhalt > :nth-child(5) { animation-delay: .24s; }
.inhalt > :nth-child(6) { animation-delay: .30s; }
.inhalt > :nth-child(7) { animation-delay: .36s; }

@keyframes auftauchen {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes puls {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ Breiter */

@media (min-width: 640px) {
  .inhalt { padding: 64px 32px 96px; gap: 56px; }
  .kopf-innen, .fuss { padding-left: 32px; padding-right: 32px; }
  .projekte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brauchen { padding: 28px 30px; }
}

@media (min-width: 900px) {
  .projekte { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .projekt { min-height: 140px; justify-content: space-between; }
}
