/* ═══════════════════════════════════════════════════════════
   Termin.md — German Medical Appointment Platform
   ═══════════════════════════════════════════════════════════ */

:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #E6F0FF;
    --accent: #00C48C;
    --text: #1A202C;
    --text-secondary: #64748B;
    --bg: #FFFFFF;
    --bg-soft: #F8FAFC;
    --border: #E2E8F0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ─── Buttons ──────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

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

.btn-outline-white {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.1); }

.btn-full { width: 100%; }

/* ─── Navigation ───────────────────────────────────────── */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 72px;
    gap: 40px;
}

.logo { display: flex; align-items: center; gap: 8px; font-size: 1.4rem; font-weight: 700; }
.logo-icon { font-size: 1.6rem; }
.logo-dot { color: var(--primary); }

.nav-links { display: flex; gap: 32px; flex: 1; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; gap: 12px; }
.nav-actions .btn { padding: 8px 18px; font-size: 0.875rem; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* ─── Hero ─────────────────────────────────────────────── */

.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #F0F7FF 0%, #FFF 50%, #F0FFF8 100%);
}

.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero h1 { font-size: 3.2rem; font-weight: 700; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.02em; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 520px; }

.search-box {
    display: flex;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.search-field {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 16px;
    border-right: 1px solid var(--border);
}

.search-icon { width: 20px; height: 20px; color: var(--text-secondary); flex-shrink: 0; }

.search-field input {
    border: none;
    outline: none;
    padding: 16px 12px;
    font-size: 0.95rem;
    width: 100%;
    background: none;
    font-family: inherit;
}

.btn-search { border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 28px; border: none; flex-shrink: 0; }

.hero-stats { display: flex; gap: 40px; margin-top: 36px; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.stat span { font-size: 0.85rem; color: var(--text-secondary); }

.hero-visual { position: relative; }

.appointment-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    max-width: 360px;
    margin-left: auto;
}

.card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }

.doctor-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.doctor-name { font-weight: 600; font-size: 0.95rem; }
.doctor-spec { font-size: 0.8rem; color: var(--text-secondary); }

.card-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.slot {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.slot:hover, .slot.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.floating-badge {
    position: absolute;
    padding: 10px 18px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 3s ease-in-out infinite;
}

.floating-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.badge-1 { top: -10px; left: 20px; animation-delay: 0s; }
.badge-2 { bottom: 20px; left: -20px; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ─── Trust Bar ────────────────────────────────────────── */

.trust-bar { padding: 32px 0; border-bottom: 1px solid var(--border); }
.trust-items { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.trust-item svg { width: 20px; height: 20px; color: var(--accent); }

/* ─── Steps ────────────────────────────────────────────── */

.steps { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.section-header p { font-size: 1.1rem; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.step-card {
    position: relative;
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s;
    background: white;
}
.step-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); transform: translateY(-4px); }

.step-number {
    position: absolute;
    top: -14px;
    left: 28px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.step-icon { margin-bottom: 20px; }
.step-icon svg { width: 40px; height: 40px; color: var(--primary); }

.step-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ─── Specialties ──────────────────────────────────────── */

.specialties { padding: 100px 0; background: var(--bg-soft); }

.specialty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.specialty-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
}
.specialty-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }

.specialty-icon { font-size: 1.6rem; flex-shrink: 0; }
.specialty-name { font-weight: 600; font-size: 0.9rem; }
.specialty-count { font-size: 0.75rem; color: var(--text-secondary); }

/* ─── Cities Preview ───────────────────────────────────── */

.cities-preview { padding: 100px 0; }

.cities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }

.city-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.city-card:hover { border-color: var(--primary); background: var(--primary-light); }

.city-name { font-weight: 600; font-size: 0.95rem; }
.city-count { font-size: 0.8rem; color: var(--text-secondary); }

.center-cta { text-align: center; }

/* ─── For Practices ────────────────────────────────────── */

.for-practices { padding: 100px 0; background: var(--bg-soft); }

.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.practice-content h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 16px; margin-top: 16px; letter-spacing: -0.01em; }
.practice-content p { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 28px; }

.feature-list { list-style: none; margin-bottom: 32px; }
.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    font-weight: 500;
}
.feature-list svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

.dashboard-preview {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.dash-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #F1F5F9;
    border-bottom: 1px solid var(--border);
}

.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot.red { background: #FF5F57; }
.dash-dot.yellow { background: #FEBC2E; }
.dash-dot.green { background: #28C840; }
.dash-title { margin-left: 12px; font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }

.dash-body { padding: 24px; }

.dash-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }

.dash-stat {
    text-align: center;
    padding: 16px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
}
.dash-stat-num { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.dash-stat-label { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }

.dash-timeline { display: flex; flex-direction: column; gap: 8px; }

.dash-event {
    display: grid;
    grid-template-columns: 50px 6px 1fr;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
}

.dash-event .time { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }
.event-bar { width: 6px; height: 32px; border-radius: 3px; }
.bar-1 { background: var(--primary); }
.bar-2 { background: var(--accent); }
.bar-3 { background: #FF9F43; }
.patient { font-size: 0.85rem; font-weight: 500; }

/* ─── CTA Section ──────────────────────────────────────── */

.cta-section { padding: 100px 0; }

.cta-box {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--primary), #0044AA);
    border-radius: 20px;
    color: white;
}

.cta-box h2 { font-size: 2.4rem; font-weight: 700; margin-bottom: 12px; }
.cta-box p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 32px; }

.cta-buttons { display: flex; gap: 16px; justify-content: center; }

/* ─── Footer ───────────────────────────────────────────── */

.footer { padding: 60px 0 30px; background: #0F172A; color: #94A3B8; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 40px; }

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: white; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.85rem; padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: white; }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #1E293B;
    font-size: 0.8rem;
    text-align: center;
}

/* ─── Responsive ───────────────────────────────────────── */

@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero h1 { font-size: 2.6rem; }
    .specialty-grid { grid-template-columns: repeat(3, 1fr); }
    .practice-grid { grid-template-columns: 1fr; }
    .practice-visual { order: -1; }
    .cities-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-toggle { display: block; }
    .hero { padding: 50px 0 40px; }
    .hero h1 { font-size: 2rem; }
    .search-box { flex-direction: column; }
    .search-field { border-right: none; border-bottom: 1px solid var(--border); }
    .btn-search { border-radius: 0 0 var(--radius) var(--radius); }
    .hero-stats { gap: 24px; }
    .steps-grid { grid-template-columns: 1fr; }
    .specialty-grid { grid-template-columns: repeat(2, 1fr); }
    .cities-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .trust-items { gap: 20px; }
    .section-header h2 { font-size: 1.8rem; }
    .cta-box { padding: 50px 24px; }
    .cta-box h2 { font-size: 1.8rem; }
}

/* ─── Stadt Directory Page ─────────────────────────────── */

.page-header { padding: 50px 0 30px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
.page-header p { color: var(--text-secondary); font-size: 1.05rem; }

.directory { padding: 60px 0; }

.state-section { margin-bottom: 48px; }
.state-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }

.town-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }

.town-link {
    display: block;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    color: var(--text-secondary);
}
.town-link:hover { background: var(--primary-light); color: var(--primary); }

@media (max-width: 768px) {
    .town-grid { grid-template-columns: repeat(2, 1fr); }
}
