/* Showlofts Graphit Glow – freigegebene Designrichtung 06 */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --akzent: #f4f4f2;
  --akzent-hell: rgba(255, 255, 255, .07);
  --intern: #f1f1ef;
  --intern-bg: rgba(255, 255, 255, .055);
  --bg: #08090a;
  --karte: #0d0f10;
  --text: #f4f4f2;
  --text-2: #929497;
  --rand: rgba(255, 255, 255, .17);
  --rand-hell: rgba(255, 255, 255, .48);
  --schatten: 0 22px 70px rgba(0, 0, 0, .4);
  --glow: 0 0 9px rgba(255, 255, 255, .45), 0 0 30px rgba(255, 255, 255, .08);
  --ok: #e8e8e5;
}

html { font-size: 17px; background: #08090a; }
body {
  background:
    radial-gradient(ellipse 60% 34% at 50% 22%, rgba(255, 255, 255, .035), transparent 72%),
    linear-gradient(180deg, #08090a 0%, #0a0b0c 52%, #08090a 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 350;
  letter-spacing: -.012em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 100% 5px;
}

button, input, textarea, select { font-family: inherit; letter-spacing: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
:focus-visible { outline: 1px solid rgba(255,255,255,.9); outline-offset: 4px; }

/* Schmale Sicherheitsanzeige statt farbiger Warnleiste */
.intern-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 35;
  min-height: 30px;
  padding: .28rem 1rem;
  gap: .7rem;
  background: #0c0d0e;
  color: #a9aaac;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 0;
  backdrop-filter: blur(18px);
  font-size: .72rem;
  font-weight: 420;
  letter-spacing: .035em;
}
.intern-banner button {
  padding: .14rem .55rem;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.4);
  border-radius: 0;
  background: transparent;
  color: #ececea;
  font-size: .7rem;
  font-weight: 420;
}

/* Kopfleiste */
.topbar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  min-height: 80px;
  padding: 0 clamp(1.4rem, 3vw, 2.4rem);
  background: rgba(8, 9, 10, .9);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(18px) saturate(120%);
}
.logo-chip {
  justify-self: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #f2f2f0;
  font-size: 1rem;
  font-weight: 430;
  letter-spacing: -.025em;
}
.topbar nav {
  grid-column: 2;
  justify-self: center;
  align-self: stretch;
  display: flex;
  gap: 2.4rem;
  margin: 0;
}
.nav-btn {
  min-width: 62px;
  padding: 0 .1rem;
  border-radius: 0;
  color: #858689;
  font-size: .95rem;
  font-weight: 340;
}
.nav-btn::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: transparent;
}
.nav-btn:hover { color: #d9d9d7; }
.nav-btn.aktiv { background: none; color: #fff; }
.nav-btn.aktiv::after { background: #fff; box-shadow: var(--glow); }
.topbar-aktionen {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #b8b9bb;
}
.icon-btn:hover { border-color: rgba(255,255,255,.18); color: #fff; box-shadow: 0 0 18px rgba(255,255,255,.06); }
.icon-btn.aktiv { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.05); color: #fff; }
.icon-btn svg,
.rund-btn svg,
.frage-suche svg,
.frage-typ-icon svg,
.frage-aktion svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.badge { top: 5px; right: -4px; background: #f2f2f0; color: #090a0b; box-shadow: var(--glow); }

/* Grundlayout und Typografie */
main { max-width: 1060px; margin: 0 auto; padding: clamp(4rem, 8vh, 6.5rem) 1.4rem 6rem; }
h1 {
  margin: 0 0 2.5rem;
  color: #f7f7f5;
  font-size: clamp(2.5rem, 4.1vw, 3.45rem);
  font-weight: 190;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-align: center;
  text-shadow: 0 0 24px rgba(255,255,255,.13);
}
h2 { color: #c5c6c7; font-size: .92rem; font-weight: 330; letter-spacing: -.015em; }
.hinweis { color: var(--text-2); font-size: .84rem; font-weight: 330; }
.karte {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: var(--schatten);
}

/* Fragefeld */
.frage-box {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .3rem;
  min-height: 104px;
  padding: 0 1.15rem;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255,255,255,.018), rgba(255,255,255,.008));
  box-shadow: 0 0 10px rgba(255,255,255,.2), 0 0 42px rgba(255,255,255,.045), inset 0 0 16px rgba(255,255,255,.018);
  transition: border-color .22s ease, box-shadow .22s ease;
}
.frage-box:focus-within {
  border-color: rgba(255,255,255,.95);
  box-shadow: 0 0 12px rgba(255,255,255,.32), 0 0 55px rgba(255,255,255,.075), inset 0 0 18px rgba(255,255,255,.025);
}
.frage-suche { display: grid; place-items: center; color: #f1f1ee; filter: drop-shadow(0 0 5px rgba(255,255,255,.48)); }
.frage-box textarea {
  min-height: 74px;
  max-height: 112px;
  padding: 1.45rem .5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f4f4f2;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.45;
  resize: none;
}
.frage-box textarea:focus { outline: 0; border: 0; }
.frage-box textarea::placeholder { color: #747679; opacity: 1; }
.rund-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: transparent;
  color: #d7d7d5;
  transition: color .18s ease, transform .18s ease, filter .18s ease;
}
.rund-btn:hover { color: #fff; transform: translateY(-1px); filter: drop-shadow(0 0 7px rgba(255,255,255,.45)); }
.btn-mikro { background: transparent; }
.btn-mikro.aufnahme { background: rgba(255,255,255,.12); color: #fff; }
.btn-senden { color: #fff; }
.btn-senden svg { width: 30px; height: 30px; stroke-width: 1.2; filter: drop-shadow(0 0 5px rgba(255,255,255,.42)); }

/* Antwort und Neuigkeiten */
.antwort { margin-top: 1.6rem; }
.antwort .kern { font-size: 1.65rem; font-weight: 280; letter-spacing: -.035em; }
.quelle, .news-meta { color: #77797c; font-size: .74rem; font-weight: 330; }
.intern-kasten {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.035);
  color: #e8e8e5;
}
.live-btn { border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-weight: 400; }
.news-bereich {
  min-height: 54px;
  margin-top: clamp(4.5rem, 9vh, 6.5rem);
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.news-bereich h2 { margin: 0; line-height: 54px; }
#newsBereich { border-top: 0; }
#newsBereich > .hinweis { display: none; }
.news-eintrag { padding: .85rem 0; border-color: rgba(255,255,255,.12); }
.news-pin { opacity: .55; filter: grayscale(1); }
.news-neu input {
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
  border-radius: 0;
  background: transparent;
  color: #fff;
}

/* Fragen im Blick – offene Liste statt Karten */
.offene-fragen-bereich { position: relative; margin-top: 0; }
.news-bereich:has(#newsBereich > .hinweis) + .offene-fragen-bereich { margin-top: -54px; }
.offene-fragen-reiter { padding: 0; overflow: visible; border: 0; background: transparent; box-shadow: none; }
.offene-fragen-reiter summary {
  justify-content: flex-end;
  gap: 2rem;
  min-height: 54px;
  padding: 0;
  border-bottom: 0;
  color: #929497;
  font-size: .92rem;
  font-weight: 320;
}
.offene-fragen-reiter summary::after { display: none; }
.offene-fragen-reiter summary .anzahl-badge { margin-left: 0; }
.anzahl-badge {
  min-width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #f3f3f1;
  font-size: .9rem;
  font-weight: 330;
}
#offeneFragenBereich { padding: 0; }
#offeneFragenBereich { border-top: 0; }
.offene-frage {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 1.05rem;
  min-height: 126px;
  padding: 1.1rem 0;
  border-top: 0;
  border-bottom: 1px solid rgba(255,255,255,.19);
}
.frage-typ-icon { display: grid; place-items: center; color: #c9c9c7; }
.frage-typ-icon.ist-offen { color: #e8e8e5; }
.frage-typ-icon svg { width: 32px; height: 32px; stroke-width: 1.15; }
.offene-frage-kopf { display: block; min-width: 0; }
.offene-frage-text { color: #ededeb; font-size: 1.05rem; font-weight: 310; line-height: 1.4; }
.offene-frage-kopf .news-meta { display: block; margin-top: .38rem; }
.fragen-art {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #aaa;
  font-size: .9rem;
  font-weight: 310;
  white-space: nowrap;
}
.fragen-art.ist-offen { background: transparent; color: #e7e7e5; }
.fragen-art.ist-offen::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f7f7f4;
  box-shadow: 0 0 6px rgba(255,255,255,.9), 0 0 18px rgba(255,255,255,.32);
}
.frage-aktion {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e8e8e5;
}
.frage-aktion:hover { color: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,.5)); transform: translateX(2px); }
.frage-aktion svg { width: 25px; height: 25px; stroke-width: 1.2; }
.fragen-mehr {
  padding: 1.1rem 0;
  border-color: rgba(255,255,255,.18);
  color: #b9babc;
  font-size: .82rem;
  font-weight: 340;
}
.fragen-mehr:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,.3); }

/* Gemeinsame Bedienelemente */
.btn {
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 9px;
  background: #f2f2ef;
  color: #0a0b0c;
  font-size: .88rem;
  font-weight: 430;
  box-shadow: 0 0 18px rgba(255,255,255,.07);
}
.btn.zweitrangig { border-color: rgba(255,255,255,.25); background: transparent; color: #e7e7e5; }
.btn.gefahr { border-color: rgba(255,255,255,.3); background: transparent; color: #bfc0c1; }
.btn.ok { background: #ededeb; color: #090a0b; }
.btn:hover { filter: brightness(1.08); box-shadow: 0 0 18px rgba(255,255,255,.12); }

/* Wiki, Shopseiten und Formulare im selben Materialsystem */
.suchfeld,
.feld input[type="text"], .feld input[type="url"], .feld textarea, .feld select,
.kontakt-formular input {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: #f1f1ef;
}
.suchfeld:focus,
.feld input:focus, .feld textarea:focus, .feld select:focus,
.kontakt-formular input:focus { outline: none; border-color: rgba(255,255,255,.65); box-shadow: 0 0 18px rgba(255,255,255,.06); }
.filter-leiste { border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 1rem; }
.chip {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8f9092;
  font-weight: 330;
}
.chip.aktiv { border-bottom: 1px solid #fff; background: transparent; color: #fff; box-shadow: 0 5px 12px -8px rgba(255,255,255,.8); }
.shop-gitter { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.16); }
.shop-karte {
  min-height: 155px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.13);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background .18s ease;
}
.shop-karte:hover { background: rgba(255,255,255,.025); }
.shop-karte .name { color: #f1f1ef; font-weight: 350; }
.shop-karte .kurz { color: #818386; }
.ort-badge, .intern-marke {
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  background: transparent;
  color: #a5a6a8;
  font-weight: 420;
}
.zurueck { color: #cfd0d1; font-weight: 340; }
.link-leiste a { border: 1px solid rgba(255,255,255,.18); background: transparent; color: #e4e4e2; font-weight: 360; }
.eintrag, .kontakt { border-color: rgba(255,255,255,.14); }
.faq-frage { font-weight: 420; }
.stand-stempel, .eintrag .meta, .kontakt .meta, .vorschlag-karte .meta { color: #747679; }
.feld label { color: #d1d1cf; font-weight: 390; }

.overlay { background: rgba(0,0,0,.78); backdrop-filter: blur(14px); }
.overlay .karte { background: #101213; border-color: rgba(255,255,255,.22); box-shadow: 0 30px 100px rgba(0,0,0,.7), 0 0 36px rgba(255,255,255,.035); }
.toast { border: 1px solid rgba(255,255,255,.25); background: #f0f0ed; color: #08090a; font-weight: 430; }

/* Login und Sperrbildschirm */
.login-wrap { background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.045), transparent 34%); }
.login-karte { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.018); }
.login-karte img, .sperre-logo { filter: grayscale(1) brightness(1.45); opacity: .9; }
.login-karte input { border: 1px solid rgba(255,255,255,.24) !important; background: rgba(255,255,255,.025) !important; }
.sperre { background: #08090a; }
.ziffernblock button { border: 1px solid rgba(255,255,255,.2); background: transparent; font-weight: 260; }
.ziffernblock button:active { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); box-shadow: var(--glow); }
.sperre-punkte span.voll { border-color: #fff; background: #fff; box-shadow: var(--glow); }

@media (prefers-reduced-motion: no-preference) {
  .fragen-start { animation: graphite-ein .5s ease-out both; }
  @keyframes graphite-ein { from { opacity: 0; transform: translateY(7px); } }
}

@media (max-width: 700px) {
  html { font-size: 16px; }
  .intern-banner { font-size: .66rem; }
  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    padding: 0 1rem;
  }
  .logo-chip { grid-column: 1; }
  .topbar-aktionen { grid-column: 2; }
  .topbar nav {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    width: 100%;
    min-height: 44px;
    justify-content: center;
    gap: 2rem;
  }
  main { padding: 3.5rem 1.1rem 4.5rem; }
  h1 { margin-bottom: 2rem; font-size: clamp(2.15rem, 9vw, 2.7rem); }
  .frage-box { grid-template-columns: 38px minmax(0, 1fr) auto; min-height: 88px; padding: 0 .8rem; }
  .frage-box textarea { min-height: 68px; padding: 1.2rem .25rem; font-size: .94rem; }
  .btn-mikro { display: none !important; }
  .btn-senden { width: 42px; height: 42px; }
  .news-bereich { margin-top: 4rem; }
  .offene-fragen-reiter summary { min-height: 48px; }
  .offene-frage {
    grid-template-columns: 34px minmax(0, 1fr) 32px;
    gap: .75rem;
    min-height: 112px;
  }
  .frage-typ-icon svg { width: 27px; height: 27px; }
  .offene-frage-text { font-size: .98rem; }
  .fragen-art { grid-column: 2; font-size: .76rem; }
  .frage-aktion { grid-column: 3; grid-row: 1 / span 2; width: 32px; }
  .offene-frage-kopf .news-meta { display: none; }
  .shop-gitter { grid-template-columns: 1fr; }
  .shop-karte { border-right: 0; }
  .kontakt-formular { grid-template-columns: 1fr; }
  .kontakt-weg { grid-column: 1; }
}
