/* PhrasePop – schlichtes, selbst gehostetes Stylesheet (keine externen Quellen). */

:root {
  --akzent: #6d5ef2;
  --akzent-dunkler: #5847e0;
  --grund: #ffffff;
  --grund-2: #f5f5fa;
  --text: #1c1c28;
  --text-2: #5b5b6e;
  --rand: #e3e3ee;
  --karte: #ffffff;
  --schatten: 0 1px 3px rgba(20, 20, 40, .08), 0 8px 24px rgba(20, 20, 40, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #14141c;
    --grund-2: #1b1b26;
    --text: #ececf4;
    --text-2: #a3a3b8;
    --rand: #2c2c3c;
    --karte: #1f1f2c;
    --schatten: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--grund);
}

.innen { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, kbd {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  background: var(--grund-2);
  border: 1px solid var(--rand);
  border-radius: 4px;
  padding: 0 .3em;
  font-size: .9em;
}

h1, h2, h3 { line-height: 1.2; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rand);
}
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; }
.marke { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--text); font-size: 1.1rem; }
.marke:hover { text-decoration: none; }
.kopf-links { display: flex; align-items: center; gap: 1.25rem; }
.kopf-links a { color: var(--text-2); }
.kopf-links a.knopf { color: #fff; }

/* Knoepfe */
.knopf {
  display: inline-block;
  background: var(--akzent);
  color: #fff;
  padding: .65rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
}
.knopf:hover { background: var(--akzent-dunkler); text-decoration: none; }
.knopf-klein { padding: .35rem .9rem; border-radius: 6px; font-size: .95rem; }

/* Held */
.held { padding: 4.5rem 0 3rem; text-align: center; }
.held h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 1rem; }
.held-text { max-width: 38rem; margin: 0 auto 1.5rem; color: var(--text-2); font-size: 1.1rem; }
.held-aktionen { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.held-hinweis { color: var(--text-2); font-size: .95rem; }

/* Popup-Demo */
.fenster-demo {
  max-width: 30rem; margin: 3rem auto 0;
  border: 1px solid var(--rand); border-radius: 12px;
  background: var(--karte); box-shadow: var(--schatten);
  overflow: hidden; text-align: left;
}
.demo-titelleiste { display: flex; gap: .4rem; padding: .6rem .8rem; border-bottom: 1px solid var(--rand); }
.demo-titelleiste span { width: .7rem; height: .7rem; border-radius: 50%; background: var(--rand); }
.demo-popup { padding: .6rem; }
.demo-eintrag {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .6rem; border-radius: 8px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo-aktiv { background: color-mix(in srgb, var(--akzent) 14%, transparent); color: var(--text); }

/* Abschnitte */
.abschnitt { padding: 3.5rem 0; }
.abschnitt-betont { background: var(--grund-2); border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand); }
.abschnitt h2 { text-align: center; font-size: 1.8rem; margin: 0 0 2rem; }

/* Raster & Karten */
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.raster-2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); max-width: 44rem; margin: 0 auto; }
.karte {
  background: var(--karte); border: 1px solid var(--rand);
  border-radius: 12px; padding: 1.25rem 1.4rem;
}
.karte h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.karte p { margin: 0; color: var(--text-2); font-size: .97rem; }

/* Download */
.download-version { text-align: center; color: var(--text-2); margin: -1rem 0 2rem; }
.download-karte { text-align: center; }
.download-karte > .knopf { margin-top: .75rem; }
.download-karte p { margin-bottom: .25rem; }
.download-meta { min-height: 1.4em; font-size: .85rem !important; margin-top: .6rem !important; }

/* Betriebssystem-Icons ueber den Download-Karten */
.os-icon {
  display: block;
  width: 40px; height: 40px;
  margin: .2rem auto .8rem;
  color: var(--text);
  opacity: .85;
}

/* Split-Button: Hauptaktion links, Pfeil rechts klappt weitere Varianten auf */
.split-knopf {
  position: relative;
  display: inline-flex;
  margin-top: .75rem;
  vertical-align: top;
}
.split-knopf .split-haupt { border-radius: 8px 0 0 8px; }
.split-knopf .split-pfeil {
  border: none;
  border-left: 1px solid rgba(255, 255, 255, .3);
  border-radius: 0 8px 8px 0;
  padding: 0 .55rem;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font: inherit;
}
.split-menue {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 10px;
  box-shadow: var(--schatten);
  padding: .3rem;
  z-index: 20;
  text-align: left;
}
.split-menue a {
  display: block;
  padding: .5rem .7rem;
  border-radius: 7px;
  color: var(--text);
  font-size: .92rem;
  white-space: nowrap;
}
.split-menue a:hover {
  background: color-mix(in srgb, var(--akzent) 12%, transparent);
  text-decoration: none;
}
.menue-meta { opacity: .55; font-size: .85em; margin-left: .3em; }
.download-fallback, .download-hinweis { text-align: center; color: var(--text-2); margin-top: 2rem; font-size: .95rem; }

/* Fuss */
.fuss { padding: 2rem 0; }
.fuss-zeile { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--text-2); font-size: .95rem; }
.fuss-links { display: flex; gap: 1.25rem; }
.fuss-links a { color: var(--text-2); }

/* Textseiten (Impressum/Datenschutz) */
.textseite { padding: 3rem 0 4rem; max-width: 46rem; }
.textseite h1 { font-size: 2rem; }
.textseite h2 { font-size: 1.25rem; margin-top: 2rem; }
.textseite p, .textseite li { color: var(--text-2); }
.platzhalter { background: color-mix(in srgb, var(--akzent) 12%, transparent); border-radius: 4px; padding: 0 .25em; }
