/* ===========================================================================
   OrgaSphere — gemeinsames Stylesheet für alle Seiten unter orgasphere.de
   Farben aus der App (lib/theme/app_colors.dart), damit Webseite und
   Anwendung erkennbar zusammengehören.
   Keine externen Schriften oder Bibliotheken: Die Seite lädt nichts nach,
   funktioniert offline im Browser-Cache und hat keine Drittanbieter, die
   in der Datenschutzerklärung stehen müssten.
   =========================================================================== */

:root {
  --navy:      #002F6C;
  --navy-pale: #E6EEF7;
  --navy-soft: #B8CBE3;
  --teal:      #00968F;
  --teal-pale: #E4F6F5;
  --off-white: #F7FAFC;
  --text:      #111827;
  --text-mild: #4B5563;
  --line:      #DDE5EA;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

/* --- Kopfzeile ----------------------------------------------------------- */

.kopf {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.kopf-innen {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.kopf img { height: 34px; width: auto; display: block; }

.kopf nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 15px;
  /* Ohne min-width:0 darf ein Flex-Element nicht unter seine
     Mindestbreite schrumpfen - die vier Links zusammen sind breiter als ein
     Handybildschirm und wuerden die ganze Seite ueber den Rand schieben. */
  min-width: 0;
}

.kopf nav a { color: var(--text-mild); text-decoration: none; }
.kopf nav a:hover { color: var(--teal); text-decoration: underline; }
.kopf nav a.aktiv { color: var(--navy); font-weight: 600; }

/* --- Inhaltsbreite ------------------------------------------------------- */

main { max-width: 760px; margin: 0 auto; padding: 40px 20px 70px; }
main.breit { max-width: 1000px; }

/* --- Startseite ---------------------------------------------------------- */

.bühne {
  background: linear-gradient(160deg, var(--navy) 0%, #013a80 55%, var(--teal) 100%);
  color: #fff;
  padding: 70px 20px 64px;
  text-align: center;
}

.bühne img { height: 62px; width: auto; margin-bottom: 26px; filter: brightness(0) invert(1); }
/* Farbe ausdruecklich setzen: Die allgemeine h1-Regel weiter unten faerbt
   Ueberschriften navy - auf dem dunklen Verlauf waere das unlesbar. */
.bühne h1 {
  color: #fff;
  font-size: 2.1rem;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 14px;
}
.bühne p {
  font-size: 1.12rem;
  max-width: 34em;
  margin: 0 auto;
  color: rgba(255,255,255,.9);
}

.hinweisleiste {
  background: var(--teal-pale);
  border-bottom: 1px solid var(--line);
  padding: 13px 20px;
  text-align: center;
  font-size: 15px;
  color: #04635f;
}

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.karte {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  background: var(--off-white);
}

.karte h3 {
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.karte p { font-size: 15px; color: var(--text-mild); }

/* --- Fließtext ----------------------------------------------------------- */

h1 { font-size: 1.9rem; color: var(--navy); margin-bottom: 8px; line-height: 1.25; }
h2 {
  font-size: 1.28rem;
  color: var(--navy);
  margin-top: 40px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--navy-pale);
}
h3 { font-size: 1.05rem; margin-top: 24px; margin-bottom: 6px; }

p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 24px; }
li { margin-bottom: 6px; }

a { color: #0b5e97; }
a:hover { color: var(--teal); }

.stand { color: var(--text-mild); font-size: 15px; margin-bottom: 30px; }

/* --- Tabellen ------------------------------------------------------------ */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0 22px;
  font-size: 15px;
}

th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 9px 12px;
  font-weight: 600;
}

td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:nth-child(even) td { background: var(--off-white); }

/* Auf schmalen Bildschirmen darf eine breite Tabelle scrollen,
   statt die ganze Seite zu verbreitern. */
.tabellenrahmen { overflow-x: auto; }

/* --- Hervorhebungen ------------------------------------------------------ */

.hinweis {
  background: var(--navy-pale);
  border-left: 4px solid var(--navy);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 15.5px;
}

.kasten {
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 22px 0;
}

.platzhalter {
  background: #FFF3CD;
  border: 1px solid #E0A800;
  border-radius: 3px;
  padding: 1px 5px;
  font-weight: 700;
}

.knopf {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 7px;
  font-weight: 600;
  margin-top: 6px;
}

.knopf:hover { background: #007c76; color: #fff; }

/* --- Fußzeile ------------------------------------------------------------ */

footer {
  border-top: 1px solid var(--line);
  background: var(--off-white);
  padding: 26px 20px 34px;
  font-size: 15px;
  color: var(--text-mild);
}

footer .fuss-innen {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

footer a { color: var(--text-mild); text-decoration: none; }
footer a:hover { color: var(--teal); text-decoration: underline; }
footer .rechts { margin-left: auto; }

/* --- Schmale Bildschirme ------------------------------------------------- */

@media (max-width: 620px) {
  body { font-size: 16px; }
  .bühne { padding: 48px 18px 42px; }
  .bühne h1 { font-size: 1.6rem; }
  .bühne img { height: 48px; }
  .kopf-innen { padding: 12px 16px; gap: 10px; }
  .kopf nav {
    margin-left: 0;
    width: 100%;
    gap: 6px 14px;
    font-size: 14px;
  }
  main { padding: 28px 16px 50px; }
  footer .rechts { margin-left: 0; }
}

/* Sicherheitsnetz gegen seitliches Scrollen: Sollte doch einmal ein Element
   breiter werden als der Bildschirm - eine lange Adresse, eine breite Tabelle -,
   bleibt der Text lesbar, statt dass die ganze Seite verrutscht. */
html { overflow-x: hidden; }

/* overflow-wrap statt word-break: Bricht nur dann innerhalb eines Wortes um,
   wenn es sonst nicht passt. word-break: break-word trennte auch dort, wo noch
   Platz war - aus „Starter" wurde „Starte / r". */
table { table-layout: auto; overflow-wrap: break-word; }

/* --- Druck --------------------------------------------------------------- */

@media print {
  .kopf, footer { display: none; }
  body { font-size: 11pt; }
  main { max-width: none; padding: 0; }
}
