:root {
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --accent-color: #a81f26;
    --accent-hover: #8c1920;
    --accent-dark: #74141a;
    --accent-soft: #fbf1f1;
    --accent-tint: rgba(168, 31, 38, 0.08);
    --accent-border: rgba(168, 31, 38, 0.22);
    --accent-glow: rgba(168, 31, 38, 0.18);

    --bg-color: #ffffff;
    --bg-alt: #fdfaf9;
    --bg-tint: #f7f2f1;
    --text-color: #24211f;
    --text-strong: #14110f;
    --text-muted: #5f5a57;
    --text-soft: #6e6965;
    --border-color: #e9e3e1;
    --border-strong: #ddd4d1;

    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.94);
    --glass-border: #e9e3e1;

    --shadow-xs: 0 1px 2px rgba(16, 19, 23, 0.04);
    --shadow-sm: 0 1px 2px rgba(16, 19, 23, 0.04), 0 6px 16px -8px rgba(16, 19, 23, 0.10);
    --shadow-md: 0 2px 4px rgba(16, 19, 23, 0.03), 0 16px 34px -18px rgba(16, 19, 23, 0.18);
    --shadow-lg: 0 30px 70px -34px rgba(16, 19, 23, 0.30);
    --shadow-premium: var(--shadow-md);

    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    --container: 1240px;
    --header-h: 86px;
}

[data-theme="dark"] {
    --accent-color: #d9464e;
    --accent-hover: #e4585f;
    --accent-dark: #b7343c;
    --accent-soft: rgba(217, 70, 78, 0.12);
    --accent-tint: rgba(217, 70, 78, 0.14);
    --accent-border: rgba(217, 70, 78, 0.32);
    --accent-glow: rgba(217, 70, 78, 0.28);

    --bg-color: #131211;
    --bg-alt: #191716;
    --bg-tint: #201d1c;
    --text-color: #eeeceb;
    --text-strong: #ffffff;
    --text-muted: #aaa4a0;
    --text-soft: #857f7b;
    --border-color: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);

    --card-bg: #1c1a18;
    --glass-bg: rgba(19, 18, 17, 0.92);
    --glass-border: rgba(255, 255, 255, 0.10);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px -8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 16px 34px -18px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 30px 70px -34px rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.75;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: var(--accent-color);
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-color);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-serif);
    color: var(--text-strong);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-muted);
}

strong {
    color: var(--text-color);
    font-weight: 600;
}

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.accent {
    color: var(--accent-color);
}

.overline {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.accent-rule {
    display: block;
    width: 64px;
    height: 3px;
    background: var(--accent-color);
    margin: 2rem 0;
    border-radius: 2px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.section-head .section-title,
.section-head h2 {
    margin-bottom: 0;
    text-align: left;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.section-link:hover {
    gap: 0.85rem;
}

.section-title {
    font-size: clamp(2rem, 4.2vw, 3rem);
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    width: 100%;
}

header {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1003;
}

.header-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    min-height: var(--header-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.82;
}

.logo-crest {
    width: 38px;
    height: auto;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-sans);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-strong);
    margin: 0;
    white-space: nowrap;
}

.logo-text span {
    display: block;
    font-weight: 500;
    letter-spacing: 0.14em;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-links {
    display: flex;
    gap: 1.9rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.25s ease;
    position: relative;
    padding: 0.35rem 0;
    white-space: nowrap;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
}

.header-cta svg {
    width: 16px;
    height: 16px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: -1rem;
    background: var(--card-bg);
    min-width: 260px;
    box-shadow: var(--shadow-md);
    z-index: 1004;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

.dropdown:hover .dropdown-content,
.dropdown.open .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-links .dropdown:last-of-type .dropdown-content {
    left: auto;
    right: -1rem;
}

.dropdown-item {
    color: var(--text-color);
    padding: 0.7rem 1.4rem;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-item span {
    color: var(--text-soft);
    font-size: 0.7rem;
}

.dropdown-item:hover {
    background: var(--accent-soft);
    color: var(--accent-color);
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu-content {
    display: none;
    position: absolute;
    top: -0.5rem;
    left: auto;
    right: 100%;
    background: var(--card-bg);
    min-width: 250px;
    box-shadow: var(--shadow-md);
    z-index: 1005;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0;
    opacity: 0;
    max-height: 330px;
    overflow-y: auto;
    transform: translateX(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown-submenu:hover .dropdown-submenu-content,
.dropdown-submenu.open .dropdown-submenu-content {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-btn {
    display: none;
    position: relative;
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    z-index: 1002;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    position: absolute;
    left: 12px;
    width: 22px;
    height: 2px;
    background: var(--text-strong);
    border-radius: 4px;
    transition: top 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
}

.mobile-menu-btn span:nth-child(1) {
    top: 15px;
}

.mobile-menu-btn span:nth-child(2) {
    top: 22px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 29px;
}

.mobile-menu-btn.open span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}

.btn {
    padding: 0.95rem 1.9rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1.5px solid transparent;
    line-height: 1.3;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 10px 24px -14px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -16px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-border);
}

.btn-secondary:hover {
    background: var(--accent-soft);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-color);
    border-color: var(--border-strong);
}

.btn-ghost:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn:active {
    transform: translateY(0);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-home {
    position: relative;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 8% 20%, var(--accent-tint) 0%, transparent 60%);
    pointer-events: none;
}

.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5.5rem) 2rem clamp(3.5rem, 7vw, 6rem);
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 5.4vw, 4.1rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 0;
}

.hero-copy p {
    font-size: 1.06rem;
    line-height: 1.85;
    max-width: 34rem;
    margin-bottom: 2.5rem;
}

.hero-media {
    position: relative;
}

.hero-media img {
    width: 100%;
    height: clamp(320px, 46vw, 520px);
    object-fit: cover;
    border-radius: 220px 20px 20px 20px;
    box-shadow: var(--shadow-lg);
}

.hero-badge {
    position: absolute;
    left: -1.5rem;
    bottom: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    max-width: 260px;
}

.hero-badge .icon-circle {
    width: 42px;
    height: 42px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.hero-badge .icon-circle svg {
    width: 20px;
    height: 20px;
}

.hero-badge strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.02rem;
    color: var(--text-strong);
    line-height: 1.3;
}

.hero-badge span:not(.icon-circle) {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: block;
}

.page-hero {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 70% at 12% 0%, var(--accent-tint) 0%, transparent 62%);
    pointer-events: none;
}

.page-hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 4.75rem) 2rem clamp(2.5rem, 5vw, 3.75rem);
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    max-width: 22ch;
}

.page-hero p {
    font-size: 1.05rem;
    max-width: 48rem;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 2rem;
    font-size: 0.84rem;
    color: var(--text-soft);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb span[aria-current] {
    color: var(--accent-color);
    font-weight: 600;
}

main {
    display: block;
    width: 100%;
    overflow-x: hidden;
}

main>section,
.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--border-color);
}

.feature-band {
    position: relative;
    z-index: 2;
    margin-top: 0;
    margin-bottom: clamp(3.5rem, 7vw, 6rem);
    padding-top: clamp(3rem, 5vw, 4.5rem);
    padding-bottom: 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.feature-item {
    padding: 3rem 2rem;
    text-align: center;
    border-right: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.feature-item:last-child {
    border-right: none;
}

.feature-item:hover {
    background: var(--bg-alt);
}

.icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
}

.icon-circle svg {
    width: 24px;
    height: 24px;
}

.feature-item h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.85rem;
}

.feature-item h3::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--accent-border);
    margin: 0.85rem auto 0;
}

.feature-item p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.split h2 {
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.split p {
    font-size: 1.02rem;
    line-height: 1.85;
}

.split-media {
    position: relative;
}

.split-media img {
    width: 100%;
    height: clamp(280px, 34vw, 420px);
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.float-card {
    position: absolute;
    left: -1.75rem;
    bottom: -1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1.15rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    max-width: 270px;
}

.float-card .icon-circle {
    width: 42px;
    height: 42px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.float-card .icon-circle svg {
    width: 20px;
    height: 20px;
}

.float-card strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-strong);
}

.float-card span:not(.icon-circle) {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: block;
}

.check-list {
    list-style: none;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: var(--text-color);
    font-size: 0.98rem;
    line-height: 1.6;
}

.check-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 0.24rem;
}

.stats-band {
    background: var(--accent-color);
    color: #fff;
    padding: clamp(2.75rem, 5vw, 3.75rem) 0;
}

.stats-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    text-align: center;
    padding: 0.5rem 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item svg {
    width: 26px;
    height: 26px;
    opacity: 0.85;
    margin-bottom: 0.9rem;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.86);
    margin: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.75rem;
    width: 100%;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem 2.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    width: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.card-icon {
    width: 54px;
    height: 54px;
    background: var(--accent-soft);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card:hover .card-icon {
    background: var(--accent-color);
    color: #fff;
}

.card h3 {
    font-size: 1.32rem;
    margin-bottom: 0.9rem;
}

.card h4 {
    font-size: 1.1rem;
}

.card p {
    font-size: 0.98rem;
    line-height: 1.75;
}

.card ul {
    list-style: none;
}

.card ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    color: var(--text-color);
    font-size: 0.97rem;
    line-height: 1.6;
}

.card-large-padding {
    padding: clamp(2rem, 4vw, 3.5rem);
}

.link-card {
    text-decoration: none;
    display: block;
    text-align: center;
}

.link-card h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-strong);
    margin: 0;
}

.link-card .icon-circle {
    margin-bottom: 1.1rem;
}

.link-card:hover h4 {
    color: var(--accent-color);
}

.quote-block {
    border-left: 3px solid var(--accent-color);
    padding: 0.5rem 0 0.5rem 1.75rem;
    margin: 2.25rem 0;
    font-family: var(--font-serif);
    font-size: 1.14rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-color);
}

.panel {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 3vw, 2.5rem);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1.75rem;
    width: 100%;
}

.public-event-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    width: 100%;
}

.public-event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.news-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-tint);
}

.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.public-event-card:hover .news-media img {
    transform: scale(1.05);
}

.news-media-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-tint) 100%);
}

.news-date {
    position: absolute;
    top: 0;
    left: 1.25rem;
    background: var(--accent-color);
    color: #fff;
    padding: 0.55rem 0.8rem 0.6rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-align: center;
    min-width: 52px;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.news-date strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
}

.news-date span {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.15rem;
}

.news-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-date {
    display: block;
    color: var(--accent-color);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.event-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-strong);
}

.news-body p {
    font-size: 0.94rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 2rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    background: var(--bg-alt);
}

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: 1.5rem;
    width: 100%;
}

.teacher-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.9rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.teacher-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-border);
    box-shadow: var(--shadow-md);
}

.teacher-card h2 {
    font-family: var(--font-serif);
    font-size: 1.16rem;
    font-weight: 600;
}

.avatar {
    width: 56px;
    height: 56px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 50%;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.avatar-photo {
    background: var(--accent-soft);
    padding: 0;
    overflow: hidden;
}

.avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.teacher-card:hover .avatar-photo img {
    transform: scale(1.08);
}

.role {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: var(--accent-soft);
    padding: 0.28rem 0.7rem;
    border-radius: 100px;
    width: fit-content;
}

.subject-tag {
    background: var(--bg-tint);
    color: var(--text-color);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

a.subject-tag {
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 500;
}

a.subject-tag:hover {
    background: var(--accent-soft);
    border-color: var(--accent-border);
    color: var(--accent-color);
}

.email {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.88rem;
    word-break: break-word;
}

.email a {
    color: var(--text-muted);
    text-decoration: none;
}

.email a:hover {
    color: var(--accent-color);
}

.search-container {
    max-width: 560px;
    margin: 0 auto 3rem;
    position: relative;
    width: 100%;
}

#search-input {
    width: 100%;
    padding: 0.95rem 1.25rem 0.95rem 3rem;
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    border: 1px solid var(--border-strong);
    color: var(--text-color);
    font-size: 0.98rem;
    font-family: var(--font-sans);
    transition: var(--transition);
}

#search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-tint);
}

.search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-soft);
    pointer-events: none;
    display: flex;
}

.no-results {
    text-align: center;
    padding: 3.5rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
    width: 100%;
}

.gallery-item {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1.25rem 1.1rem;
    background: linear-gradient(to top, rgba(16, 19, 23, 0.82), transparent);
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    opacity: 0;
    transform: translateY(6px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.75rem, 4vw, 3.25rem);
    width: 100%;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.65rem;
    margin-bottom: 1.75rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-info-item:hover {
    border-color: var(--accent-border);
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
}

.contact-info-text strong {
    display: block;
    color: var(--text-strong);
    font-size: 0.94rem;
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.contact-info-text p {
    color: var(--text-muted);
    font-size: 0.93rem;
    margin: 0;
}

.contact-info-text a {
    color: inherit;
    text-decoration: none;
}

.contact-info-text a:hover p {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--border-strong);
    color: var(--text-color);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.97rem;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.form-control::placeholder {
    color: var(--text-soft);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px var(--accent-tint);
}

.registration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    width: 100%;
}

.dates-box {
    background: var(--bg-alt);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    width: 100%;
}

.dates-box h4 {
    font-size: 1.4rem;
    margin-bottom: 1.75rem;
}

.date-tag {
    background: var(--accent-color);
    color: #fff;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    min-width: 64px;
    text-align: center;
}

.speiseplan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
}

.speiseplan-table th {
    background: var(--accent-soft);
    color: var(--accent-color);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--accent-border);
}

.speiseplan-table td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    vertical-align: top;
}

.speiseplan-table tr:hover td {
    background: var(--bg-alt);
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.75rem, 4vw, 3.5rem);
    max-width: 980px;
    margin: 0 auto;
    color: var(--text-color);
}

.content-card article {
    max-width: 100%;
}

.content-card h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 1.5rem;
}

.content-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 2.5rem 0 1.25rem;
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.85rem;
}

.content-card h4,
.content-card h5 {
    font-size: 1.08rem;
    margin: 1.5rem 0 0.5rem;
}

.content-card p {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.content-card i,
.content-card em {
    color: var(--text-muted);
    font-size: 0.94rem;
}

.content-card ul,
.content-card ol {
    margin: 0 0 1.5rem 1.25rem;
    padding-left: 0.75rem;
    color: var(--text-muted);
}

.content-card li {
    margin-bottom: 0.6rem;
    line-height: 1.75;
}

.content-card ul li::marker {
    color: var(--accent-color);
}

.content-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.content-card a:hover {
    border-bottom-color: var(--accent-color);
}

.content-card img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
    box-shadow: var(--shadow-sm);
}

.content-card img[src="#"],
.content-card img[src=""],
.content-card img:not([src]) {
    display: none;
}

.content-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
}

.content-card table td,
.content-card table th {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    text-align: left;
}

.content-card table.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.content-card table.team tbody,
.content-card table.team tr {
    display: contents;
}

.content-card table.team td {
    display: block;
    width: auto;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.5rem;
    margin: 0;
}

.content-card table.team td>*:last-child {
    margin-bottom: 0;
}

.content-card table.team td img {
    width: 100%;
    max-width: 130px;
    border-radius: var(--radius-sm);
    margin: 0 0 0.9rem;
}

.content-card table h3,
.content-card table h5 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.content-card table.team td i,
.content-card table.team td p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.65;
}

.content-card ul.actions {
    display: none;
}

.content-card dl.article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
    margin: 0 0 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-soft);
}

.content-card dl.article-info dt {
    width: 100%;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.35rem;
}

.content-card dl.article-info dd {
    margin: 0;
}

.content-card ul.pager {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--border-color);
}

.content-card ul.pager li {
    margin-bottom: 0;
}

.content-card ul.pager li.next {
    margin-left: auto;
}

.content-card ul.pager a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border-bottom: none;
}

.content-card hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2.5rem 0;
}

.content-card blockquote {
    border-left: 3px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-color);
}

.info-content {
    max-width: 940px;
    margin: 0 auto;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

.info-card h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    margin-bottom: 1.25rem;
    color: var(--text-strong);
}

.info-card h3 {
    font-size: 1.22rem;
    margin: 2rem 0 0.85rem;
}

.info-card p {
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.15rem;
}

.info-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.info-card ul li {
    margin-bottom: 0.7rem;
    padding-left: 1.6rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.info-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

.info-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.info-card-item {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.info-card-item h4 {
    margin-bottom: 0.65rem;
    font-size: 1.1rem;
}

.info-card-item p {
    font-size: 0.94rem;
    margin-bottom: 0;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem 1.5rem;
    align-items: center;
    justify-items: center;
    margin-top: 1.75rem;
    background: var(--bg-alt);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.partner-logo:hover {
    transform: translateY(-3px);
}

.partner-logo img {
    width: 96px;
    height: auto;
    max-width: 100%;
}

.partner-logo span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.support-box {
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    text-align: center;
}

.support-box p {
    margin-bottom: 0.35rem;
    font-weight: 500;
    color: var(--text-color);
}

.support-box p:last-of-type {
    font-size: 0.94rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.legal-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.75rem, 4vw, 3.25rem);
    margin-bottom: 2rem;
}

.legal-section h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
}

.legal-section h3 {
    font-size: 1.22rem;
    margin: 2.25rem 0 0.85rem;
}

.legal-section h4 {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin: 1.75rem 0 0.5rem;
}

.legal-section p {
    font-size: 0.99rem;
    line-height: 1.85;
    margin-bottom: 1.15rem;
}

.legal-section ul {
    list-style: none;
    margin-bottom: 1.75rem;
}

.legal-section ul li {
    padding-left: 1.6rem;
    position: relative;
    margin-bottom: 0.65rem;
    color: var(--text-muted);
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

.contact-box {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0 2rem;
}

.contact-box p {
    margin-bottom: 0.35rem;
}

.premium-portal-card {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    width: 100%;
}

.premium-portal-card h2 {
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    margin-bottom: 1.25rem;
}

.premium-portal-card p {
    font-size: 1.05rem;
    max-width: 34rem;
    margin: 0 auto 2.5rem;
}

.sokrates-portal {
    max-width: 520px;
    text-align: left;
}

.portal-mark {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.portal-mark svg {
    width: 28px;
    height: 28px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.award-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.award-item {
    text-align: center;
    padding: 1.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    transition: var(--transition);
}

.award-item:hover {
    border-color: var(--accent-border);
    transform: translateY(-3px);
}

.award-item .icon-circle {
    margin-bottom: 1rem;
}

.award-item span:not(.icon-circle) {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.map-consent {
    position: absolute;
    inset: 0;
    background: var(--bg-alt);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    padding: 2rem 1.5rem;
}

.map-consent h4 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.map-consent p {
    max-width: 46ch;
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

#school-map {
    width: 100%;
    height: 440px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 0;
}

.leaflet-container {
    background: var(--bg-tint);
    font-family: var(--font-sans);
}

.leaflet-popup-content-wrapper {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0;
}

.leaflet-popup-content {
    margin: 14px 16px;
}

.leaflet-popup-tip {
    background: var(--card-bg);
}

.leaflet-popup-close-button {
    color: var(--text-soft) !important;
    font-size: 18px !important;
    top: 6px !important;
    right: 8px !important;
}

.leaflet-popup-close-button:hover {
    color: var(--accent-color) !important;
}

.leaflet-control-zoom a {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--bg-alt) !important;
}

.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.85) !important;
    color: var(--text-soft) !important;
    font-size: 0.7rem !important;
}

.leaflet-control-attribution a {
    color: var(--accent-color) !important;
}

footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    padding: clamp(3rem, 6vw, 4.5rem) 2rem calc(1.75rem + env(safe-area-inset-bottom));
    width: 100%;
    overflow-x: hidden;
}

.footer-content {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
    gap: 3rem;
    width: 100%;
}

.footer-brand .logo-link {
    margin-bottom: 1.25rem;
}

.footer-col h4 {
    font-family: var(--font-sans);
    color: var(--text-strong);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.35rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.75;
    max-width: 24rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-contact svg {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0.3rem;
}

.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-soft);
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    max-width: var(--container);
    margin: 3rem auto 0;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-soft);
    font-size: 0.85rem;
}

.notification-container {
    position: fixed;
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    right: calc(1.5rem + env(safe-area-inset-right));
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 360px;
    width: calc(100% - 3rem);
}

.notification {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.95rem 1.5rem;
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.92rem;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.notification.success {
    border-left: 3px solid #1f8a5f;
}

.notification.error {
    border-left: 3px solid var(--accent-color);
}

.global-broadcast {
    background: var(--accent-color);
    color: #fff;
    padding: 0.85rem 1.5rem 0.85rem 3rem;
    text-align: left;
    font-weight: 600;
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 99999;
    box-sizing: border-box;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    box-shadow: var(--shadow-md);
    min-height: 48px;
    display: flex;
    align-items: center;
    line-height: 1.45;
    animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    border-radius: var(--radius-md);
    max-width: 400px;
}

.global-broadcast-close {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(0, 0, 0, 0.18);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.global-broadcast-close:hover {
    background: rgba(0, 0, 0, 0.32);
}

.theme-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100000;
    padding: 0.55rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border-strong);
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.82rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

@keyframes slideIn {
    from {
        transform: translateX(110%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes menuOpen {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.from-left {
    transform: translateX(-18px);
}

.reveal.from-right {
    transform: translateX(18px);
}

.reveal.scale-in {
    transform: scale(0.985);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

.reveal-delay-4 {
    transition-delay: 0.32s;
}

.reveal-delay-5 {
    transition-delay: 0.4s;
}

.reveal-delay-6 {
    transition-delay: 0.48s;
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal.visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

@media (scripting: none) {

    .reveal,
    .reveal.visible {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1180px) {
    .nav-links {
        gap: 1.35rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .header-cta {
        display: none;
    }
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-media img {
        border-radius: 140px 16px 16px 16px;
        height: clamp(260px, 46vw, 420px);
    }

    .hero-badge {
        left: 1rem;
        bottom: 1rem;
    }

    .feature-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item:nth-child(2) {
        border-right: none;
    }

    .feature-item:nth-child(1),
    .feature-item:nth-child(2) {
        border-bottom: 1px solid var(--border-color);
    }

    .split,
    .registration-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .float-card {
        left: 1rem;
        bottom: -1.25rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 0;
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 70px;
    }

    .header-content {
        padding: 0 1.25rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        gap: 0.75rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: calc(var(--header-h) + 1px);
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - var(--header-h) - 1px);
        max-height: calc(100dvh - var(--header-h) - 1px);
        background: var(--bg-color);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 1001;
        overflow-y: auto;
        padding: 0 0 2rem;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
        animation: menuOpen 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .nav-links .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1.05rem 1.5rem;
        font-size: 1.05rem;
        font-weight: 500;
        border-bottom: 1px solid var(--border-color);
        min-height: 56px;
    }

    .nav-links .nav-link::after {
        display: none;
    }

    .nav-links .nav-link.active {
        border-left: 3px solid var(--accent-color);
        background: var(--accent-soft);
    }

    .nav-links .dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .dropdown-content,
    .dropdown-submenu-content {
        position: static !important;
        background: var(--bg-alt) !important;
        min-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        transform: none !important;
        display: none;
        max-height: none;
    }

    .dropdown.open>.dropdown-content,
    .dropdown-submenu.open>.dropdown-submenu-content {
        display: flex !important;
        flex-direction: column;
        opacity: 1 !important;
    }

    .dropdown:hover>.dropdown-content,
    .dropdown-submenu:hover>.dropdown-submenu-content {
        display: none;
    }

    .dropdown.open:hover>.dropdown-content,
    .dropdown-submenu.open:hover>.dropdown-submenu-content {
        display: flex !important;
    }

    .dropdown-item {
        padding: 0.95rem 2rem !important;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.98rem !important;
        min-height: 52px;
    }

    .dropdown-submenu-content .dropdown-item {
        padding-left: 2.75rem !important;
    }

    .container,
    .hero-inner,
    .page-hero-inner,
    .stats-grid,
    .header-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.98rem;
    }

    .hero-media img {
        border-radius: 100px 14px 14px 14px;
    }

    .hero-badge {
        position: static;
        max-width: none;
        margin-top: 1rem;
    }

    .feature-card {
        grid-template-columns: 1fr;
    }

    .feature-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 2.25rem 1.5rem;
    }

    .feature-item:last-child {
        border-bottom: none;
    }

    .feature-band {
        padding-top: clamp(2.25rem, 6vw, 3rem);
    }

    .dropdown-content::before {
        display: none;
    }

    .card-grid,
    .news-grid,
    .teacher-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .float-card {
        position: static;
        max-width: none;
        margin-top: 1rem;
    }

    .split-media img {
        height: clamp(220px, 50vw, 320px);
    }

    .section-head {
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        min-height: 50px;
    }

    .btn-group .btn {
        flex: 1 1 100%;
    }

    .stat-item {
        padding: 0.75rem 0.5rem;
    }

    .speiseplan-table thead {
        display: none;
    }

    .speiseplan-table,
    .speiseplan-table tbody,
    .speiseplan-table tr,
    .speiseplan-table td {
        display: block;
        width: 100%;
    }

    .speiseplan-table tr {
        margin-bottom: 1rem;
        background: var(--bg-alt);
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
        padding: 1rem;
    }

    .speiseplan-table td {
        padding: 0.5rem 0.75rem;
        border: none;
    }

    .speiseplan-table td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--accent-color);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        display: block;
        margin-bottom: 0.2rem;
    }

    .content-card table,
    .content-card tbody,
    .content-card tr,
    .content-card td,
    .content-card th {
        display: block;
        width: 100%;
    }

    .content-card tr {
        margin-bottom: 1.25rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.25rem;
    }

    .content-card td {
        border: none;
        padding: 0.35rem 0;
    }

    .content-card table.team td {
        width: 100%;
    }

    #school-map {
        height: 320px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .footer-bottom {
        margin-top: 2.25rem;
    }

    .notification-container {
        bottom: calc(5.5rem + env(safe-area-inset-bottom));
    }
}

@media (max-width: 520px) {
    .logo-text {
        font-size: 0.92rem;
    }

    .logo-crest {
        width: 32px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem 0;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.22);
        padding-bottom: 1.5rem;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .card {
        padding: 1.75rem 1.35rem;
    }

    .teacher-card {
        padding: 1.5rem 1.25rem;
    }

    .theme-toggle-btn {
        bottom: 16px;
        left: 16px;
        font-size: 0.76rem;
    }
}

[data-theme="dark"] .hero-media img,
[data-theme="dark"] .split-media img {
    filter: brightness(0.92);
}

[data-theme="dark"] .leaflet-control-attribution {
    background: rgba(16, 18, 22, 0.85) !important;
}

[data-theme="dark"] .stats-band {
    background: var(--accent-dark);
}
