/* ============================================
   Steuerberater Erwin Schmitt — Stylesheet
   ============================================ */

:root {
    --primary: #1e3a5f;
    --primary-light: #2c5282;
    --primary-dark: #152a45;
    --accent: #c9a84c;
    --accent-hover: #b8952f;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #ffffff;
    --bg-light: #f7fafc;
    --bg-section: #edf2f7;
    --border: #e2e8f0;
    --radius: 6px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --max-width: 1100px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

/* ---- Header ---- */
.site-header {
    background: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-top {
    background: var(--primary-dark);
    padding: 6px 0;
    font-size: 0.85rem;
}

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

.header-top a {
    color: rgba(255,255,255,0.85);
}

.header-top a:hover {
    color: var(--accent);
}

.header-main {
    padding: 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.site-logo span {
    color: var(--accent);
}

/* ---- Navigation ---- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    padding: 20px 16px;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    border-bottom-color: var(--accent);
    background: rgba(255,255,255,0.05);
}

/* ---- Container ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-sub {
    padding: 50px 0;
}

.hero-sub h1 {
    font-size: 2rem;
}

/* ---- Sections ---- */
.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 700px;
}

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

.card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--accent);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- Team ---- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.team-member {
    text-align: center;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
}

.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--bg-section);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-light);
    border: 3px solid var(--accent);
}

.team-member h3 {
    color: var(--primary);
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.team-member .role {
    color: var(--accent-hover);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.team-member p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ---- Aktuelles (News) ---- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 600;
}

.news-item h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.news-item .news-body p {
    margin-bottom: 8px;
    line-height: 1.7;
}

.news-empty {
    text-align: center;
    color: var(--text-light);
    padding: 48px 24px;
    font-size: 1.05rem;
}

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.contact-detail {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.contact-detail .label {
    font-weight: 600;
    min-width: 50px;
    color: var(--primary);
}

.contact-hours {
    margin-top: 24px;
}

.contact-hours h3 {
    margin-bottom: 12px;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.hours-table td:first-child {
    font-weight: 600;
    width: 100px;
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 350px;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ---- Leistungen Detail ---- */
.service-block[id] {
    scroll-margin-top: 120px;
}

.service-block {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.service-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-block h2 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.service-block .quote {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
}

.service-block p {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* ---- Jobs ---- */
.job-listing {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.job-listing h2 {
    color: var(--primary);
    margin-bottom: 16px;
}

.job-listing h3 {
    color: var(--primary-light);
    margin-top: 20px;
    margin-bottom: 10px;
}

.job-listing ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.job-listing li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* ---- Legal ---- */
.legal-content h2 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content h3 {
    color: var(--primary-light);
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-content p {
    margin-bottom: 12px;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-col p,
.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        box-shadow: var(--shadow-lg);
    }

    .main-nav.open ul {
        display: flex;
    }

    .main-nav a {
        padding: 14px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-left: 3px solid transparent;
    }

    .main-nav a:hover,
    .main-nav a.active {
        border-bottom-color: rgba(255,255,255,0.1);
        border-left-color: var(--accent);
    }

    .header-main .container {
        position: relative;
    }

    .hero {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .section {
        padding: 40px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-top .container {
        flex-direction: column;
        text-align: center;
    }
}

/* ---- CTA Buttons ---- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

.hero-buttons {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Card Links ---- */
.card-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
}

.card-link:hover {
    color: var(--accent-hover);
}

.card-link::after {
    content: ' \2192';
}

/* ---- Highlight Card (Krypto) ---- */
.card-highlight {
    border-top-color: var(--primary);
    background: linear-gradient(135deg, var(--bg) 0%, #f0f4ff 100%);
}

/* ---- Contact Form ---- */
.contact-form {
    margin-top: 32px;
}

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(44,82,130,0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-status {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    display: none;
}

.form-status.success {
    display: block;
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

.form-status.error {
    display: block;
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem;
    }

    .card {
        padding: 24px 20px;
    }

    .container {
        padding: 0 16px;
    }
}
