/* Website-Designs der oeffentlichen Seiten (Services/SiteThemes.cs). Klasse am body: theme-<id>.
   "classic" ist das Grund-Design aus site.css und braucht keine Regeln. Farben kommen weiter aus dem
   Branding (--schulio-*), hier aendern sich nur Form, Schrift, Abstaende und Flaechen. */

/* ---------------------------------------------------------------- Modern */
.theme-modern {
    --ui-radius: 16px;
    --ui-radius-lg: 22px;
    --ui-shadow-sm: 0 2px 6px rgba(16, 24, 40, .06);
    --ui-shadow-lg: 0 20px 40px -18px rgba(16, 24, 40, .28);
}
.theme-modern .topbar {
    background: color-mix(in srgb, var(--ui-surface) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    color: var(--ui-text);
    border-bottom: 1px solid var(--ui-border);
}
.theme-modern .topbar .brand,
.theme-modern .topbar .topnav a,
.theme-modern .topbar .topnav .topnav-dropdown-label { color: var(--ui-text); }
.theme-modern .topbar .topnav .cta { background: var(--schulio-action); color: var(--schulio-on-action); border-radius: 999px; }
.theme-modern .topbar-inner { height: 72px; }
.theme-modern main.container { padding-top: 2.75rem; }
.theme-modern h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.theme-modern h2 { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.02em; }
.theme-modern .btn { border-radius: 999px; padding: .65rem 1.35rem; }
.theme-modern .card, .theme-modern .news-card, .theme-modern .form-card, .theme-modern .process-list > li { border-radius: var(--ui-radius-lg); box-shadow: var(--ui-shadow-sm); }
.theme-modern .landing-logo img { border-radius: var(--ui-radius-lg); box-shadow: var(--ui-shadow-lg); }
.theme-modern .cms-hero img { border-radius: var(--ui-radius-lg); }
.theme-modern .footer { background: #0f172a; color: #cbd5e1; border-top: 0; padding: 2.5rem 0; }
.theme-modern .footer a { color: #f1f5f9; }
.theme-modern .news-card__img { aspect-ratio: 4 / 3; }

/* ---------------------------------------------------------------- Serioes (compact) */
.theme-compact {
    --ui-radius: 3px;
    --ui-radius-lg: 4px;
    --ui-shadow-sm: none;
    --ui-shadow-lg: 0 4px 12px rgba(16, 24, 40, .08);
}
.theme-compact body, body.theme-compact { line-height: 1.65; }
.theme-compact .topbar {
    background: var(--ui-surface);
    color: var(--ui-text);
    border-bottom: 4px solid var(--schulio-primary);
}
.theme-compact .topbar .brand,
.theme-compact .topbar .topnav a,
.theme-compact .topbar .topnav .topnav-dropdown-label { color: var(--ui-text); }
.theme-compact .topbar .topnav .cta { background: var(--schulio-action); color: var(--schulio-on-action); border-radius: 2px; }
.theme-compact h1, .theme-compact h2, .theme-compact h3 {
    font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0;
}
.theme-compact h1 { font-size: 2rem; border-bottom: 1px solid var(--ui-border); padding-bottom: .5rem; }
.theme-compact main.container { max-width: 980px; }
.theme-compact .btn { border-radius: 2px; text-transform: none; }
.theme-compact .card, .theme-compact .news-card, .theme-compact .form-card { border-radius: 2px; box-shadow: none; }
.theme-compact .news-card:hover, .theme-compact a.card:hover { transform: none; box-shadow: none; border-color: var(--schulio-primary); }
.theme-compact .news-card__title { font-family: Georgia, "Times New Roman", serif; }
.theme-compact .footer { background: var(--ui-surface-2); color: var(--ui-muted); border-top: 4px solid var(--schulio-primary); }
.theme-compact .footer a { color: var(--schulio-link); }

/* ---------------------------------------------------------------- Freundlich (friendly) */
.theme-friendly {
    --ui-radius: 20px;
    --ui-radius-lg: 28px;
    --ui-shadow-sm: 0 3px 0 color-mix(in srgb, var(--schulio-primary) 20%, transparent);
    --ui-shadow-lg: 0 6px 0 color-mix(in srgb, var(--schulio-primary) 25%, transparent);
}
body.theme-friendly { background: color-mix(in srgb, var(--schulio-primary) 6%, #fff); }
.theme-friendly .topbar { border-bottom: 0; border-radius: 0 0 24px 24px; }
.theme-friendly .topbar-inner { height: 72px; }
.theme-friendly .topbar .topnav .cta { border-radius: 999px; }
.theme-friendly h1, .theme-friendly h2 { font-weight: 800; letter-spacing: -0.01em; }
.theme-friendly h1 { font-size: 2.3rem; }
.theme-friendly .btn { border-radius: 999px; box-shadow: 0 3px 0 color-mix(in srgb, var(--schulio-action) 60%, black); }
.theme-friendly .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--schulio-action) 60%, black); }
.theme-friendly .btn.secondary { box-shadow: 0 3px 0 var(--ui-border-strong); }
.theme-friendly .card, .theme-friendly .news-card, .theme-friendly .form-card, .theme-friendly .process-list > li {
    border-radius: var(--ui-radius-lg); border: 2px solid color-mix(in srgb, var(--schulio-primary) 18%, #fff); box-shadow: var(--ui-shadow-sm);
}
.theme-friendly .landing-logo img, .theme-friendly .cms-hero img { border-radius: var(--ui-radius-lg); }
.theme-friendly .news-card__img { border-radius: calc(var(--ui-radius-lg) - 6px); margin: 6px; width: calc(100% - 12px); }
.theme-friendly .footer { border-radius: 24px 24px 0 0; border-top: 0; }
.theme-friendly .pill { border-radius: 999px; }

/* Nachschaerfungen: dunkler Footer (Modern) braucht helle Schrift auch fuer Hervorhebungen;
   Freundlich nimmt fuer Raender/Schatten die (immer kontrastreiche) Aktionsfarbe statt der
   Primaerfarbe, die bei manchen Schulen sehr hell ist. */
.theme-modern .footer strong, .theme-modern .footer b, .theme-modern .footer h3, .theme-modern .footer h4 { color: #f8fafc; }
.theme-friendly {
    --ui-shadow-sm: 0 3px 0 color-mix(in srgb, var(--schulio-action) 22%, transparent);
    --ui-shadow-lg: 0 6px 0 color-mix(in srgb, var(--schulio-action) 26%, transparent);
}
.theme-friendly .card, .theme-friendly .news-card, .theme-friendly .form-card, .theme-friendly .process-list > li {
    border-color: color-mix(in srgb, var(--schulio-action) 22%, #fff);
}
body.theme-friendly { background: color-mix(in srgb, var(--schulio-action) 4%, #fff); }
