/* Elterntrainer der BBS1, gemeinsames Aussehen.

   Uebernommen aus der urspruenglichen Seite elterntrainer.tanagra.ai:
   gruener Verlauf als Grund, weisse Karten mit weichem Schatten,
   Verlaufsknoepfe in Gruen und Tuerkis.

   Diese Datei darf von Agenten bearbeitet werden. Aenderungen sind sofort
   live, es muss nichts neu gebaut werden.
   Das Logo liegt daneben als logo.png und kann ersetzt werden. */

:root {
  --gruen-50:  #ecfdf5;
  --gruen-100: #d1fae5;
  --gruen-500: #10b981;
  --gruen-600: #059669;
  --gruen-700: #047857;
  --gruen-800: #065f46;
  --tuerkis-500: #14b8a6;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --weiss: #ffffff;
  --grau-50:  #f8fafc;
  --grau-100: #f1f5f9;
  --grau-200: #e2e8f0;
  --grau-300: #cbd5e1;
  --grau-400: #94a3b8;
  --grau-500: #64748b;
  --grau-600: #475569;
  --grau-700: #334155;
  --grau-800: #1e293b;
  --grau-900: #0f172a;
  --rot-500: #ef4444;
  --rot-600: #dc2626;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #064e3b 0%, #047857 25%, #059669 55%, #14b8a6 80%, #0891b2 100%);
  background-attachment: fixed;
  color: var(--grau-800);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

a { color: var(--gruen-700); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }

/* Kopfleiste */
.kopf {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grau-200);
  padding: .75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.marke { display: flex; align-items: center; gap: .75rem; }
.marke img { height: 44px; width: auto; }
.marke .titel { font-size: 1.05rem; font-weight: 700; color: var(--grau-800); letter-spacing: -.01em; }
.marke .unter { font-size: .8rem; color: var(--grau-500); }
.kopf-rechts { display: flex; align-items: center; gap: .75rem; font-size: .875rem; }
.kopf-rechts .wer { color: var(--grau-500); }

/* Knoepfe */
.knopf, button.schlicht {
  background: transparent;
  color: var(--grau-700);
  border: 1px solid var(--grau-200);
  padding: .4rem .85rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: .35rem;
  text-decoration: none;
}
.knopf:hover, button.schlicht:hover { border-color: var(--gruen-500); color: var(--gruen-700); text-decoration: none; }
.knopf.gefahr { color: var(--rot-600); }
.knopf.gefahr:hover { border-color: var(--rot-500); color: var(--rot-600); }
button:disabled, .knopf:disabled { opacity: .55; cursor: not-allowed; }

.haupt {
  width: 100%;
  padding: .8rem;
  background: linear-gradient(135deg, var(--gruen-600) 0%, var(--tuerkis-500) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  transition: transform .1s, box-shadow .15s;
}
.haupt:hover:not(:disabled) { box-shadow: 0 8px 20px rgba(16,185,129,.35); transform: translateY(-1px); }

main { flex: 1; padding: 2rem 1.5rem; }
.huelle { max-width: 1100px; margin: 0 auto; }

/* Weisse Flaechen */
.flaeche {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  margin-bottom: 1.5rem;
}
.flaeche h2 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--grau-900); }
.flaeche p { color: var(--grau-700); line-height: 1.6; margin-bottom: .75rem; }
.leise { color: var(--grau-500); font-size: .875rem; }
.mitte { text-align: center; }
.verborgen { display: none !important; }

/* Trainerkacheln */
.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.kachel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .2s;
}
.kachel:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.kachel-bild {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--gruen-100), var(--gruen-50));
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: var(--gruen-700); font-size: 2.5rem; font-weight: 700;
}
.kachel-koerper { padding: 1.1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.kachel-name { font-size: 1.1rem; font-weight: 700; color: var(--grau-900); margin-bottom: .25rem; }
.kachel-rolle { font-size: .85rem; font-weight: 500; color: var(--gruen-700); margin-bottom: .6rem; }
.kachel-text { font-size: .85rem; color: var(--grau-600); line-height: 1.5; margin-bottom: 1rem; flex: 1; }
.kachel-knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; }
.kachel-knoepfe a {
  flex: 1; min-width: 108px;
  padding: .55rem .85rem;
  border: none; border-radius: 8px;
  font-weight: 600; font-size: .85rem;
  transition: transform .1s, box-shadow .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  text-decoration: none;
}
.kachel-knoepfe a:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); text-decoration: none; }
.tat-chat  { background: linear-gradient(135deg, var(--gruen-600), var(--tuerkis-500)); color: #fff; }
.tat-sprechen { background: linear-gradient(135deg, var(--cyan-600), var(--cyan-500)); color: #fff; }
.tat-video { background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; }

/* Anmeldung */
.anmeldung-rahmen { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.anmeldung {
  background: #fff;
  border-radius: 20px;
  padding: 2.25rem 2rem;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.anmeldung .logo-reihe { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.anmeldung .logo-reihe img { height: 92px; width: auto; }
.anmeldung h1 { text-align: center; font-size: 1.4rem; margin-bottom: .4rem; color: var(--grau-900); }
.anmeldung .unterzeile { text-align: center; color: var(--grau-500); font-size: .9rem; margin-bottom: 1.75rem; }
.feldgruppe { margin-bottom: 1rem; }
.feldgruppe label { display: block; font-size: .8rem; font-weight: 600; color: var(--grau-700); margin-bottom: .4rem; }
.feldgruppe input {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--grau-200);
  border-radius: 10px;
  font-size: .95rem;
  background: var(--grau-50);
  transition: border-color .15s, background .15s;
}
.feldgruppe input:focus {
  outline: none; border-color: var(--gruen-500); background: #fff;
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}
.feldgruppe input.code { font-size: 1.5rem; text-align: center; letter-spacing: .4rem; font-family: ui-monospace, monospace; }
.textknopf { background: none; border: none; color: var(--gruen-700); font-size: .85rem; padding: .5rem; margin-top: .5rem; width: 100%; }
.textknopf:hover { text-decoration: underline; }

/* Meldungen */
.meldung { padding: .7rem .9rem; border-radius: 8px; font-size: .875rem; margin-bottom: 1rem; }
.meldung.fehler { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.meldung.info { background: var(--gruen-50); color: var(--gruen-800); border: 1px solid var(--gruen-100); }

.leer {
  background: #fff; border-radius: 16px; padding: 3rem 2rem;
  text-align: center; color: var(--grau-500);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.leer h3 { color: var(--grau-700); font-size: 1.05rem; margin-bottom: .5rem; }

/* Fussbereich */
footer {
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: 1.25rem;
  background: rgba(0,0,0,.15);
}
footer a { color: rgba(255,255,255,.95); }
footer .trenner { margin: 0 .5rem; opacity: .6; }

/* Gespraechsseiten (Chat, Sprechen, Video) */
.gespraech-rahmen {
  flex: 1; display: flex; flex-direction: column;
  max-width: 1100px; width: 100%; margin: 1.5rem auto; padding: 0 1.5rem;
  min-height: 0;
}
.gespraech-karte {
  background: #fff; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  display: flex; flex-direction: column;
  flex: 1; overflow: hidden; min-height: 0;
}
.gespraech-kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.25rem; border-bottom: 1px solid var(--grau-200);
}
.gespraech-kopf img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; }
.gespraech-kopf .name { font-weight: 700; color: var(--grau-900); }
.gespraech-kopf .rolle { font-size: .82rem; color: var(--gruen-700); }
