/* ============================================
   LIECHTENSTEINISCHES ROTES KREUZ
   Modern Design System 2024
   Mobile-First | SEO-Optimized | Accessible
   ============================================ */

:root {
    --primary: #E30613;
    --primary-dark: #B8050F;
    --primary-light: #FDF2F2;
    --secondary: #1D3557;
    --secondary-light: #457B9D;
    --text-dark: #1a1a2e;
    --text-body: #4a5568;
    --text-muted: #718096;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-light: #e2e8f0;
    --border: #cbd5e1;
    --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --transition: 200ms ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-main); font-weight: 700; color: var(--text-dark); line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-main);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: var(--secondary-light); color: white; }

.btn-outline { background: transparent; color: var(--text-dark); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.header-top {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header-contact { display: flex; gap: 1.5rem; align-items: center; }
.header-contact span { display: flex; align-items: center; gap: 0.375rem; white-space: nowrap; }
.header-contact a { color: rgba(255,255,255,0.9); display: flex; align-items: center; gap: 0.375rem; white-space: nowrap; }
.header-contact a:hover { color: white; }
.header-top .btn { padding: 0.375rem 1rem; font-size: 0.8125rem; }

.header-main { padding: 0.5rem 0; }
.header-main .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo { flex-shrink: 0; }
.logo img { height: 55px; width: auto; }
@media (min-width: 768px) { .logo img { height: 65px; } }

/* Navigation */
.main-nav { display: none; }
@media (min-width: 1400px) { .main-nav { display: flex; gap: 0; flex-wrap: nowrap; } }

.nav-item { position: relative; white-space: nowrap; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.6rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.8125rem;
    transition: color var(--transition);
}
.nav-link:hover { color: var(--primary); }

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    padding: 0.5rem;
    z-index: 100;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--text-body);
    font-size: 0.9375rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav-dropdown a:hover { background: var(--bg-light); color: var(--primary); }

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}
@media (min-width: 1400px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.mobile-menu.active { opacity: 1; visibility: visible; }

.mobile-menu-inner {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 320px;
    background: white;
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 300ms ease;
}
.mobile-menu.active .mobile-menu-inner { transform: translateX(0); }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}
.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

.mobile-nav-item { border-bottom: 1px solid var(--border-light); }
.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: var(--text-dark);
    font-weight: 500;
}
.mobile-nav-subnav { display: none; padding-bottom: 0.5rem; }
.mobile-nav-item.open .mobile-nav-subnav { display: block; }
.mobile-nav-subnav a { display: block; padding: 0.5rem 0 0.5rem 1rem; color: var(--text-body); font-size: 0.9375rem; }

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #0f172a 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(230,57,70,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: white; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.page-hero .breadcrumb { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; font-size: 0.875rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb a:hover { color: white; }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.5); }

/* Sections */
.section { padding: 4rem 0; }
.section-sm { padding: 3rem 0; }
.section-gray { background: var(--bg-light); }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p { color: var(--text-muted); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

/* Content Grid */
.content-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .content-grid { grid-template-columns: 1fr 320px; } }

.content-main { min-width: 0; }
.content-main h2 { margin-top: 2rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary); display: inline-block; }
.content-main h2:first-child { margin-top: 0; }
.content-main h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--secondary); }
.content-main p { color: var(--text-body); line-height: 1.8; }
.content-main ul, .content-main ol { margin: 1rem 0; padding-left: 1.5rem; }
.content-main li { margin-bottom: 0.5rem; line-height: 1.7; }
.content-main strong { color: var(--text-dark); font-weight: 600; white-space: nowrap; }

.lead { font-size: 1.25rem; color: var(--text-dark); line-height: 1.7; margin-bottom: 1.5rem; }

/* Content Images */
.content-image {
    margin: 2rem 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.content-image img {
    width: 100%;
    height: auto;
    display: block;
}
.content-image figcaption {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}
.content-image figcaption:empty { display: none; }

/* Sidebar */
.content-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.sidebar-card h4 { font-size: 1rem; margin: 0 0 1rem; color: var(--text-dark); display: flex; align-items: center; gap: 0.5rem; }
.sidebar-card p { font-size: 0.9375rem; color: var(--text-body); margin-bottom: 0.75rem; }
.sidebar-card p:last-child { margin-bottom: 0; }
.sidebar-card .btn { width: 100%; margin-top: 1rem; }

.sidebar-card-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}
.sidebar-card-accent h4, .sidebar-card-accent p { color: white; }
.sidebar-card-accent .btn { background: white; color: var(--primary); }
.sidebar-card-accent .btn:hover { background: var(--bg-light); }

/* Course Cards */
.course-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }

.course-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}
.course-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.course-card h3 { font-size: 1.125rem; margin: 0 0 0.5rem; color: var(--text-dark); line-height: 1.4; }
.course-card p { font-size: 0.9375rem; color: var(--text-body); line-height: 1.6; flex-grow: 1; margin-bottom: 1rem; }

.course-meta { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-light); font-size: 0.875rem; color: var(--text-muted); }
.course-meta span { display: flex; align-items: center; gap: 0.375rem; }
.course-meta svg { color: var(--primary); }

/* Events List */
.events-list { display: flex; flex-direction: column; gap: 1rem; }

.event-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: all var(--transition);
}
.event-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }

.event-date { flex-shrink: 0; width: 60px; text-align: center; padding: 0.5rem; background: var(--primary-light); border-radius: var(--radius-lg); }
.event-date .day { display: block; font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: 1; }
.event-date .month { display: block; font-size: 0.75rem; color: var(--primary); text-transform: uppercase; font-weight: 600; margin-top: 0.25rem; }

.event-content { flex-grow: 1; min-width: 0; }
.event-content h3 { font-size: 1.0625rem; margin: 0 0 0.5rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--text-muted); }
.event-meta span { display: flex; align-items: center; gap: 0.25rem; }

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.team-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.team-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.team-card-photo {
    width: 90px;
    height: 90px;
    min-width: 90px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    overflow: hidden;
}
.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-content {
    flex: 1;
    min-width: 0;
}

.team-card h4 {
    margin: 0 0 0.25rem;
    font-size: 1.0625rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.team-card .role {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.125rem;
    line-height: 1.4;
}

.team-card .role-secondary {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.team-card .contact {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.team-card .contact a {
    color: var(--text-body);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color var(--transition);
}
.team-card .contact a:hover { color: var(--primary); }

@media (max-width: 400px) {
    .team-card {
        flex-direction: column;
        text-align: center;
    }
    .team-card-photo {
        margin: 0 auto;
    }
    .team-card .contact a {
        justify-content: center;
    }
}

/* Link List */
.link-list { list-style: none; padding: 0; margin: 1rem 0; }
.link-list li { margin-bottom: 0.5rem; }
.link-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    color: var(--text-dark);
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid transparent;
}
.link-list a:hover { background: white; border-color: var(--primary); color: var(--primary); transform: translateX(4px); }
.link-list a svg { flex-shrink: 0; color: var(--primary); }

/* Emergency Banner */
.emergency-banner { background: var(--primary); color: white; padding: 0.75rem 0; }
.emergency-banner .container { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; text-align: center; }
.emergency-number { display: inline-flex; align-items: center; gap: 0.5rem; background: white; color: var(--primary); padding: 0.5rem 1.25rem; border-radius: var(--radius-full); font-weight: 700; font-size: 1.25rem; }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #0f172a 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 5rem 0; } }

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.5;
}

.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .hero .container { grid-template-columns: 1fr 1fr; } }

.hero-content h1 { color: white; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
.hero-content p { font-size: 1.125rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; max-width: 500px; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-buttons .btn-outline { border-color: rgba(255,255,255,0.3); color: white; }
.hero-buttons .btn-outline:hover { background: white; color: var(--secondary); }

.hero-image { display: none; }
@media (min-width: 768px) { .hero-image { display: block; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); } }

/* Quick Links */
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: -4rem; position: relative; z-index: 10; }
@media (min-width: 768px) { .quick-links { grid-template-columns: repeat(4, 1fr); } }

.quick-link {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    border: 1px solid var(--border-light);
    text-decoration: none;
}
.quick-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.quick-link-icon { width: 48px; height: 48px; background: var(--primary-light); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--primary); }
.quick-link h3 { font-size: 1rem; margin: 0; color: var(--text-dark); }

/* Feature Boxes */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-box {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
}
.feature-box:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.feature-icon { width: 64px; height: 64px; background: var(--primary-light); border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--primary); }
.feature-box h3 { margin: 0 0 0.75rem; font-size: 1.125rem; }
.feature-box p { color: var(--text-body); font-size: 0.9375rem; margin: 0; }

/* Footer */
.site-footer { background: var(--secondary); color: white; padding: 4rem 0 0; margin-top: auto; }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.footer-logo-text {
    display: flex;
    flex-direction: column;
    color: white;
    font-size: 0.875rem;
    line-height: 1.2;
}
.footer-logo-text strong {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.9375rem; line-height: 1.6; }

.footer-column h4 { color: white; font-size: 1rem; margin: 0 0 1rem; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin-bottom: 0.5rem; }
.footer-column a { color: rgba(255,255,255,0.7); font-size: 0.9375rem; transition: color var(--transition); }
.footer-column a:hover { color: white; }
.footer-column p { color: rgba(255,255,255,0.7); font-size: 0.9375rem; line-height: 1.6; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-bottom p { color: rgba(255,255,255,0.6); font-size: 0.875rem; margin: 0; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.footer-links a:hover { color: white; }

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 767px) {
    .header-contact { display: none; }
    .page-hero { padding: 3rem 0; }
    .section { padding: 3rem 0; }
    .quick-links { margin-top: -3rem; }
}

@media print {
    .site-header, .site-footer, .mobile-menu, .btn { display: none !important; }
    body { font-size: 12pt; line-height: 1.5; }
    a { color: inherit; text-decoration: underline; }
}
