/* meingarten · Optik wie Meisennest (25.10.2026)
   Wird NACH tailadmin.css und portal.css geladen und überschreibt nur Variablen und wenige Bausteine.
   Quelle der Werte: Meisennest-Standardfarbwelt = Designsystem grünkolleg (#teammeistergärtner), Website, meingarten.
   Hausfarben: Forest #15281F · Lime #82C952 · Label Green #63A343 · Sand #F6F2EC. Kein Blau/Gelb als Markenfarbe.
   Schriften wie Meisennest: Poppins für Überschriften, Inter für Text.
   Zurück zur alten Optik: diese Datei in index.html nicht mehr laden. */

:root {
  --ta-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mn-head: "Poppins", "Inter", system-ui, sans-serif;

  /* Grautöne → warme Sand-/Waldtöne wie im Meisennest */
  --ta-gray-25: #FCFAF6;
  --ta-gray-50: #F6F2EC;   /* Seitenhintergrund Sand */
  --ta-gray-100: #F1EDE5;
  --ta-gray-200: #E3DDD0;  /* Linien */
  --ta-gray-300: #D6CDBC;
  --ta-gray-400: #8E9C92;
  --ta-gray-500: #5A6B60;
  --ta-gray-600: #4A564E;
  --ta-gray-700: #3D453F;
  --ta-gray-800: #12201A;
  --ta-gray-900: #15281F;  /* dunkle Flächen = Forest */
  --ta-gray-950: #0B1610;

  /* Zustände wie Meisennest */
  --ta-success-50: #E6F2DD; --ta-success-100: #D3E9C4; --ta-success-500: #63A343; --ta-success-600: #3F7D34; --ta-success-700: #2F6127;
  --ta-warning-50: #FBEDE4; --ta-warning-100: #F6D9C6; --ta-warning-400: #E08A52; --ta-warning-500: #C2551F; --ta-warning-600: #A8481A; --ta-warning-700: #8A3A12;
  /* „Info“ ohne Blau (Marke 26.10.2026): Forest-Töne */
  --ta-info-50: #E6EEE8; --ta-info-100: #D6E2DA; --ta-info-500: #2D4A3A; --ta-info-600: #15281F; --ta-info-700: #15281F;
  --ta-error-50: #FBE9E4;   --ta-error-100: #F6D3C9;   --ta-error-300: #E3A08E;   --ta-error-500: #C4573A;   --ta-error-600: #B04A2F;   --ta-error-700: #943C25;

  --ta-primary: #15281F;
  --ta-primary-hover: #1D3527;
  --ta-primary-50: #E6F2DD;
  --ta-accent: #82C952;
  --ta-accent-on-dark: #9AD66F;
  --ta-accent-text: #3F7D34;
  --ta-accent-soft: rgba(130, 201, 82, .2);

  /* Marke: Linien statt Schatten – Karten nur mit Haarlinie, Schatten nur für Ebenen, die sich lösen */
  --ta-shadow-xs: 0 1px 2px rgba(21, 40, 31, .04);
  --ta-shadow-sm: 0 1px 2px rgba(21, 40, 31, .04);
  --ta-shadow-md: 0 2px 6px rgba(21, 40, 31, .06), 0 8px 24px rgba(21, 40, 31, .06);
  --ta-shadow-lg: 0 12px 28px -6px rgba(21, 40, 31, .14);
  --ta-shadow-xl: 0 20px 40px -8px rgba(21, 40, 31, .18);

  /* Radius-Skala der Marke: 8 · 14 · 22 · Pille */
  --ta-r-sm: 8px;
  --ta-r: 8px;
  --ta-r-lg: 14px;
  --ta-r-xl: 14px;
  --ta-r-2xl: 22px;

  /* Bedienelemente mindestens 44 px (Baustellenregel der Marke) */
  --ta-control-h: 44px;
  --ta-control-h-sm: 36px;

  /* etwas größer, für Handy und Baustelle */
  --ta-fs-sm: 13.5px;
  --ta-fs-base: 14px;
  --ta-fs-md: 14.5px;
  --ta-fs-lg: 16px;
  --ta-fs-title: 34px; --ta-lh-title: 40px;   /* h1 der Marke: Poppins 34/40, 700 */
}

/* ---------- Schrift ---------- */
.ta, .ta-app { font-family: var(--ta-font); color: var(--ta-gray-700); }
h1,h2,h3,.ta-card__title,.ta-modal__title,.ta-pagehead h1,.sek-titel,.ta-sidebar__name b,.login h1,.ta-kpi__value{ font-family: var(--mn-head); letter-spacing: -.01em; }
.k-hero h1 { font-weight: 700; }
.ta-pagehead h1 { font-weight: 700; color: var(--ta-gray-800); letter-spacing: -.02em; }

/* Abschnittsköpfe wie „Heute zu tun“ im Meisennest: Poppins, ohne grünen Balken */
.sek-titel { color: var(--ta-gray-800); }
.sek-titel::before { display: none; }
.sek-karte, .ta-card.board { border-top: 1px solid var(--ta-gray-200); }

/* ---------- Karten, Felder, Knöpfe ---------- */
body { background: var(--ta-gray-50); }
.ta-card { border-color: var(--ta-gray-200); box-shadow: var(--ta-shadow-sm); }
.ta-card--dark { background: var(--ta-primary); }
.ta-input, .ta-select, .ta-textarea { border-color: var(--ta-gray-200); }
.ta-btn--accent, .ta-btn--primary.ta-btn--accent { color: var(--ta-primary); font-weight: 600; }
.ta-badge { font-weight: 600; }

/* ---------- Kundenseite: Reiter wie die Meisennest-App ---------- */
@media (min-width: 761px) {
  .k-tabs .ta-tabbar__item { height: 40px; padding: 0 16px; border-radius: 999px; border-color: var(--ta-gray-200); font-weight: 500; color: var(--ta-gray-700); }
  .k-tabs .ta-tabbar__item.is-active { background: var(--ta-primary); border-color: var(--ta-primary); color: #fff; box-shadow: none; }
}
@media (max-width: 760px) {
  /* schwebende Leiste unten wie im Meisennest (Start · Projekte · Termine …) */
  .k-tabs.ta-tabbar { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); height: 64px; padding: 6px; gap: 2px; border: 1px solid var(--ta-gray-200); border-radius: 999px; box-shadow: 0 8px 28px rgba(21, 40, 31, .14); }
  .k-tabs .ta-tabbar__item { border-radius: 999px; color: var(--ta-gray-700); font-size: 11px; padding: 0 11px; }
  .k-tabs .ta-tabbar__item.is-active { background: var(--ta-primary); color: #fff; }
  .k-tabs .ta-tabbar__item.is-active::before { display: none; }
  .k-tabs .ta-tabbar__item.is-active .ta-tabbar__badge { box-shadow: 0 0 0 2px var(--ta-primary); }
  .kunde { padding-bottom: 96px; }
}

/* ---------- Verwaltung: Seitenleiste wie Meisennest ---------- */
.ta-sidebar { background: #15281F; border-right-color: #15281F; color: #F6F2EC; }
.ta-sidebar__item { color: #F6F2EC; height: 40px; }
.ta-sidebar__item .ta-icon { color: #9FB3A4; }
.ta-sidebar__item:hover { background: rgba(255, 255, 255, .07); }
.ta-sidebar__item.is-active, .ta-sidebar__item[aria-current="page"] { background: #82C952; color: #15281F; font-weight: 600; }
.ta-sidebar__item.is-active .ta-icon, .ta-sidebar__item[aria-current="page"] .ta-icon { color: #15281F; }
.ta-sidebar__item.is-active .ta-sidebar__count, .ta-sidebar__item[aria-current="page"] .ta-sidebar__count { background: #15281F; color: #82C952; }
.ta-sidebar__group { color: #9FB3A4; }
.ta-sidebar__foot { border-top-color: rgba(255, 255, 255, .1); }

/* Fokus gut sichtbar */
:focus-visible { outline: 2px solid var(--ta-accent); outline-offset: 2px; }

/* Rückweg zum Meisennest (26.10.2026): eigener Kasten oben in der Seitenleiste */
.ta-sidebar__item.sb-meisennest { border: 1px solid rgba(130, 201, 82, .45); margin-bottom: 8px; }
.ta-sidebar__item.sb-meisennest .ta-icon { color: #82C952; }

/* ---------- Typografie nach grünkolleg-Designsystem (26.10.2026) ---------- */
.ta-card__title, .sek-titel { font-size: 17px; line-height: 23px; font-weight: 600; }   /* h3: Karten- und Modultitel */
.ueber { font-size: 11px; line-height: 14px; letter-spacing: .12em; }                   /* Label: Versalien, weit gesperrt */
.ta-kpi__value,.ta-sidebar__count{ font-variant-numeric: tabular-nums; }
.ta-btn:focus-visible, .ta-input:focus-visible, a:focus-visible { outline: 2px solid #82C952; outline-offset: 2px; }
.gj-tipp-box { background: #FBEDE4; }
.gj-tipp-box .gj-weg-titel { color: #8A3A12; }
@media (max-width: 640px) { .ta-pagehead h1 { font-size: 26px; line-height: 32px; } }

/* ---------- Marke meingarten: Siegel M mit Meisterlinie (19.11.2026, Entwurf „Richtung D“) ----------
   Zeichen und Name stehen überall gleich: Siegel · Linie in Champagner · „meingarten“ in Poppins · Unterzeile gesperrt.
   Auf Hell: Forest mit Unterzeile in Dunkelgrün. Auf Forest oder Foto: Sand mit Unterzeile in Lime. */
.mg-siegel { display: block; flex: none; height: 44px; width: auto; overflow: visible; }
.mg-marke { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: #15281F; }
.mg-linie { flex: none; align-self: stretch; width: 2px; margin: 5px 0; border-radius: 2px; background: #C7B79A; }
.mg-text { display: flex; flex-direction: column; min-width: 0; }
.mg-text b { font-family: var(--mn-head); font-size: 22px; line-height: 1.05; font-weight: 600; letter-spacing: -.005em; color: inherit; }
.mg-text small { margin-top: 5px; font: 500 9px/1.2 var(--ta-font); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: #3F7D34; }
.mg-marke--hell { color: #F6F2EC; }
.mg-marke--hell .mg-text small { color: #82C952; }
.mg-marke--gross { gap: 15px; }
.mg-marke--gross .mg-siegel { height: 64px; }
.mg-marke--gross .mg-linie { margin: 8px 0; }
.mg-marke--gross .mg-text b { font-size: 28px; }
.mg-marke--gross .mg-text small { margin-top: 7px; font-size: 9px; letter-spacing: .16em; }
@media (max-width: 460px) {
  .mg-lang { display: none; }
  .mg-marke--gross .mg-siegel { height: 56px; }
  .mg-marke--gross .mg-text b { font-size: 25px; }
  .mg-marke--gross .mg-text small { letter-spacing: .2em; }
}
@media (max-width: 360px) {
  .mg-marke--gross { gap: 11px; }
  .mg-marke--gross .mg-siegel { height: 48px; }
  .mg-marke--gross .mg-text b { font-size: 22px; }
}

/* Anmeldung: Wortmarke statt Kachel, darunter die Meisterlinie als Trenner */
.login-marke { width: 100%; padding-bottom: 18px; border-bottom: 1px solid var(--ta-gray-200); }
.login-marke + h1 { margin-top: 18px; }

/* Kopf der Kundenansicht: Wortmarke hell auf Forest/Foto; Kopfzeile etwas höher, damit das Siegel Luft hat */
.k-hero { padding-top: 78px; }
.k-hero .ta-hero__top { top: 16px; }
.k-marke-name .mg-siegel { height: 42px; }
.k-marke-name .mg-text b { font-size: 20px; }
.k-marke-name .mg-text small { font-size: 8.5px; }
.k-hero--foto .mg-marke { filter: drop-shadow(0 1px 2px rgba(11, 22, 16, .45)); }
@media (max-width: 460px) {
  .k-hero { padding-top: 70px; }
  .k-marke-name .mg-marke { gap: 10px; }
  .k-marke-name .mg-siegel { height: 36px; }
  .k-marke-name .mg-text b { font-size: 18px; }
}

/* Seitenleiste der Verwaltung: Siegel hell, Name in der Schrift der Marke */
.ta-sidebar__logo { width: auto; height: 38px; color: #F6F2EC; }
.ta-sidebar__logo .mg-siegel { height: 38px; }
.ta-sidebar__name b { font-family: var(--mn-head); font-size: 17px; letter-spacing: -.005em; color: #F6F2EC; }
.ta-sidebar__name small { font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #82C952; }
@media (max-width: 760px) {
  .ta-sidebar__logo, .ta-sidebar__logo .mg-siegel { height: 32px; }
}
