/* ===== Iaso Institut ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gold: #b8944c;
    --gold-light: #d4b87a;
    --gold-dark: #8b6914;
    --bronze: #6b4e2c;
    --dark: #3a2a14;
    --text: #2d2d2d;
    --text-light: #5a5248;
    --text-muted: #8a8070;
    --bg: #fdfaf5;
    --bg-warm: #f7f1e4;
    --white: #ffffff;
    --border: #e0d8c8;
    --shadow: 0 2px 16px rgba(62,42,20,0.08);
    --radius: 6px;
    --font: 'Georgia', 'Times New Roman', serif;
    --font-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --max-width: 1080px;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--bronze); }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 400; line-height: 1.3; color: var(--dark); }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--bronze); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

.btn, .btn-outline {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.btn {
    background: var(--gold);
    color: var(--white);
    border: 2px solid var(--gold);
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }

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

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

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    min-height: 80px;
}

.logo-img { height: 80px; width: auto; }

.main-nav ul { display: flex; list-style: none; gap: 0.25rem; padding: 0; margin: 0; }
.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--gold-dark); background: var(--bg-warm); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 1px; transition: all 0.2s; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(160deg, var(--dark) 0%, #4a3620 50%, var(--bronze) 100%);
    color: var(--white);
    padding: 5rem 1.5rem 4rem;
    text-align: center;
}

.hero h1 {
    color: var(--gold-light);
    font-size: 2.4rem;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}
.hero .lead {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto 1.5rem;
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
}

.hero-hybrid {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-weight: 300;
}

.hybrid-badge {
    display: inline-block;
    background: rgba(184,148,76,0.15);
    color: var(--gold-dark);
    font-size: 0.8rem;
    padding: 0.15rem 0.6rem;
    border-radius: 3px;
    margin-top: 0.3rem;
    font-weight: 500;
}

/* ===== Sections ===== */
section { padding: 4rem 0; }
section:nth-child(even) { background: var(--bg-warm); }
section:nth-child(odd) { background: var(--white); }

.section-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 720px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* ===== Cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--text-light); font-size: 0.95rem; flex: 1; }
.card .card-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.card-meta { font-size: 0.85rem; color: var(--text-muted); font-family: var(--font-sans); margin-top: 0.75rem; }
.card-meta strong { color: var(--text-light); }

/* ===== Page Hero (subpages) ===== */
.page-hero {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 1.5rem;
    text-align: center;
}
.page-hero h1 { color: var(--gold-light); font-size: 2rem; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.8; font-family: var(--font-sans); font-weight: 300; }

/* ===== Content Blocks ===== */
.content { max-width: 780px; margin: 0 auto; }
.content h2 { margin-top: 2.5rem; }
.content h2:first-child { margin-top: 0; }
.content-block { margin-bottom: 3rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.contact-info {
    background: var(--bg-warm);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
}
.contact-info dt {
    font-weight: 600;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { color: var(--text); font-size: 1rem; margin-top: 0.2rem; }

.contact-form-wrapper { background: var(--white); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); }
.contact-form-wrapper h2 { color: var(--dark); }
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: var(--bg);
    color: var(--text);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { width: 100%; }

/* ===== Footer ===== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.65);
    padding: 3rem 0;
    font-size: 0.85rem;
    font-family: var(--font-sans);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-address { line-height: 1.6; }
.footer-address strong { color: rgba(255,255,255,0.85); }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { color: rgba(255,255,255,0.65); }
.site-footer a:hover { color: var(--gold-light); }

/* ===== Legal Pages ===== */
.legal { max-width: 780px; }
.legal h3 { margin-top: 2rem; font-size: 1.1rem; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ===== Angebot Detail ===== */
.angebot-hero {
    background: linear-gradient(160deg, var(--dark) 0%, var(--bronze) 100%);
    color: var(--white);
    padding: 3rem 1.5rem;
    text-align: center;
}
.angebot-hero h1 { color: var(--gold-light); margin-bottom: 0.75rem; }
.angebot-hero .angebot-zeiten {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 1rem;
}
.angebot-hero .hero-hybrid {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 300;
}

/* ===== Responsive ===== */
.form-success { background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: var(--radius); padding: 1rem 1.5rem; margin-bottom: 1.5rem; color: #2e7d32; font-family: var(--font-sans); font-size: 0.9rem; }
.form-error { background: #fbe9e7; border: 1px solid #ef9a9a; border-radius: var(--radius); padding: 1rem 1.5rem; margin-bottom: 1.5rem; color: #c62828; font-family: var(--font-sans); font-size: 0.9rem; }

@media (max-width: 768px) {
    html { font-size: 16px; }
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero { padding: 3.5rem 1rem 2.5rem; }
    .logo-img { height: 56px; }

    .main-nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .main-nav.open ul { display: flex; }
    .main-nav a { padding: 1rem 1.5rem; border-radius: 0; }

    .mobile-toggle { display: flex; }
    .contact-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    section { padding: 3rem 0; }
    .footer-inner { flex-direction: column; }
}
