/* ============================================
   Entsorgungsfachbetrieb Jochum – Apple Style
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #0071e3;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0077ed;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

h1:focus:not(:focus-visible),
h2:focus:not(:focus-visible),
h3:focus:not(:focus-visible),
h4:focus:not(:focus-visible),
h5:focus:not(:focus-visible),
h6:focus:not(:focus-visible) {
    outline: none;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    color: #424245;
    font-size: 1.05rem;
    max-width: 680px;
}

.text-center p {
    margin-left: auto;
    margin-right: auto;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    height: 52px;
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1d1d1f;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-brand:hover {
    color: #1d1d1f;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: #424245;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0071e3;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1d1d1f;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

/* --- Theme Toggle Button --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #424245;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: #1d1d1f;
    background-color: rgba(0, 0, 0, 0.06);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 8px 0;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #2d8a4e 0%, #1a5c32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: #6e6e73;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    margin-top: 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: #2d8a4e;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #246f3e;
    color: #ffffff;
    transform: scale(1.02);
}

.btn-secondary {
    background-color: transparent;
    color: #0071e3;
    border: none;
    padding: 14px 20px;
}

.btn-secondary:hover {
    color: #0077ed;
}

.btn-secondary::after {
    content: '\203A';
    font-size: 1.3em;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.btn-secondary:hover::after {
    transform: translateX(3px);
}

.btn-outline {
    background-color: transparent;
    color: #2d8a4e;
    border: 2px solid #2d8a4e;
}

.btn-outline:hover {
    background-color: #2d8a4e;
    color: #ffffff;
}

/* --- Sections --- */
.section {
    padding: 100px 24px;
}

.section-gray {
    background-color: #f5f5f7;
}

.section-dark {
    background-color: #1d1d1f;
    color: #f5f5f7;
}

.section-dark h2,
.section-dark h3 {
    color: #f5f5f7;
}

.section-dark p {
    color: #a1a1a6;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    margin-top: 16px;
    font-size: 1.15rem;
    color: #6e6e73;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2d8a4e;
    margin-bottom: 12px;
}

/* --- Cards / Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 28px;
}

.card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.card-body p {
    font-size: 0.95rem;
    color: #6e6e73;
}

.section-gray .card {
    background: #ffffff;
}

/* --- Feature Section --- */
.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto 80px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    margin-bottom: 16px;
}

.feature-text p {
    color: #6e6e73;
    font-size: 1.05rem;
}

.feature-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.feature-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 30px;
    }
}

/* --- Stats --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: #2d8a4e;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 1rem;
    color: #6e6e73;
    margin: 0 auto;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
    color: #1d1d1f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    padding: 100px 24px;
    background: linear-gradient(135deg, #2d8a4e 0%, #1a5c32 100%);
    color: #ffffff;
}

.cta-section h2 {
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background-color: #ffffff;
    color: #2d8a4e;
}

.cta-section .btn-primary:hover {
    background-color: #f5f5f7;
    color: #1a5c32;
}

/* --- Footer --- */
.site-footer {
    background-color: #f5f5f7;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 60px 24px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-brand h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #6e6e73;
}

.footer-col h5 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 0.9rem;
    color: #6e6e73;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #1d1d1f;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #86868b;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: #86868b;
}

.footer-bottom-links a:hover {
    color: #1d1d1f;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Page Header --- */
.page-header {
    padding: 140px 24px 60px;
    text-align: center;
    background: #f5f5f7;
}

.page-header h1 {
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.15rem;
    color: #6e6e73;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Legal Pages --- */
.legal-content {
    padding: 60px 24px 100px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 48px;
    margin-bottom: 16px;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 16px;
    max-width: 100%;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    color: #424245;
}

/* --- Icon Circles --- */
.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d8a4e 0%, #3da864 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #ffffff;
}

/* --- Utility --- */
.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* --- Blazor Error UI --- */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 8px;
}

.blazor-error-boundary::after {
    content: "Ein Fehler ist aufgetreten.";
}

/* --- About Section Tiles --- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-item {
    text-align: center;
    padding: 40px 24px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.value-item .icon-circle {
    margin: 0 auto 20px;
}

.value-item h4 {
    margin-bottom: 10px;
}

.value-item p {
    font-size: 0.95rem;
    color: #6e6e73;
    margin: 0 auto;
}

/* --- Contact Info Cards --- */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-card {
    text-align: center;
    padding: 40px 24px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.contact-info-card .icon-circle {
    margin: 0 auto 16px;
}

.contact-info-card h4 {
    margin-bottom: 8px;
}

.contact-info-card p {
    color: #6e6e73;
    font-size: 0.95rem;
    margin: 0 auto;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 100px 20px 60px;
    }

    .section {
        padding: 60px 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   Dark Mode (data-theme="dark")
   ============================================ */
html[data-theme="dark"],
html[data-theme="dark"] body {
    color: #f5f5f7;
    background-color: #000000;
}

html[data-theme="dark"] a {
    color: #2997ff;
}

html[data-theme="dark"] a:hover {
    color: #64b5f6;
}

/* --- Typography --- */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: #f5f5f7;
}

html[data-theme="dark"] p {
    color: #a1a1a6;
}

/* --- Navigation --- */
html[data-theme="dark"] .site-nav {
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .nav-brand {
    color: #f5f5f7;
}

html[data-theme="dark"] .nav-brand:hover {
    color: #f5f5f7;
}

html[data-theme="dark"] .nav-links a {
    color: #a1a1a6;
}

html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a.active {
    color: #2997ff;
}

html[data-theme="dark"] .nav-toggle {
    color: #f5f5f7;
}

html[data-theme="dark"] .theme-toggle {
    color: #a1a1a6;
}

html[data-theme="dark"] .theme-toggle:hover {
    color: #f5f5f7;
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Mobile Nav (Dark) --- */
@media (max-width: 768px) {
    html[data-theme="dark"] .nav-links {
        background: rgba(0, 0, 0, 0.96);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* --- Hero --- */
html[data-theme="dark"] .hero {
    background: linear-gradient(180deg, #1d1d1f 0%, #000000 100%);
}

html[data-theme="dark"] .hero .subtitle {
    color: #a1a1a6;
}

html[data-theme="dark"] .hero-image {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* --- Sections --- */
html[data-theme="dark"] .section-gray {
    background-color: #1d1d1f;
}

html[data-theme="dark"] .section-header p {
    color: #a1a1a6;
}

/* --- Cards --- */
html[data-theme="dark"] .card {
    background: #1c1c1e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .card-body p {
    color: #a1a1a6;
}

html[data-theme="dark"] .section-gray .card {
    background: #2c2c2e;
}

/* --- Feature Sections --- */
html[data-theme="dark"] .feature-text p {
    color: #a1a1a6;
}

html[data-theme="dark"] .feature-image {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* --- Stats --- */
html[data-theme="dark"] .stat-item p {
    color: #a1a1a6;
}

/* --- Buttons --- */
html[data-theme="dark"] .btn-primary {
    color: #ffffff;
}

html[data-theme="dark"] .btn-primary:hover {
    color: #ffffff;
}

html[data-theme="dark"] .cta-section .btn-primary {
    color: #2d8a4e;
}

html[data-theme="dark"] .cta-section .btn-primary:hover {
    color: #1a5c32;
}

html[data-theme="dark"] .btn-secondary {
    color: #2997ff;
}

html[data-theme="dark"] .btn-secondary:hover {
    color: #64b5f6;
}

html[data-theme="dark"] .btn-outline {
    color: #3da864;
    border-color: #3da864;
}

html[data-theme="dark"] .btn-outline:hover {
    background-color: #3da864;
    color: #ffffff;
}

/* --- Contact Form --- */
html[data-theme="dark"] .form-group label {
    color: #f5f5f7;
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group textarea,
html[data-theme="dark"] .form-group select {
    background: #1c1c1e;
    border-color: #48484a;
    color: #f5f5f7;
}

html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group textarea:focus,
html[data-theme="dark"] .form-group select:focus {
    border-color: #2997ff;
    box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.2);
}

html[data-theme="dark"] .form-group input::placeholder,
html[data-theme="dark"] .form-group textarea::placeholder {
    color: #636366;
}

/* --- Footer --- */
html[data-theme="dark"] .site-footer {
    background-color: #1d1d1f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .footer-grid {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .footer-brand h4 {
    color: #f5f5f7;
}

html[data-theme="dark"] .footer-brand p {
    color: #86868b;
}

html[data-theme="dark"] .footer-col h5 {
    color: #f5f5f7;
}

html[data-theme="dark"] .footer-col a {
    color: #86868b;
}

html[data-theme="dark"] .footer-col a:hover {
    color: #f5f5f7;
}

html[data-theme="dark"] .footer-bottom p {
    color: #636366;
}

html[data-theme="dark"] .footer-bottom-links a {
    color: #636366;
}

html[data-theme="dark"] .footer-bottom-links a:hover {
    color: #f5f5f7;
}

/* --- Page Header --- */
html[data-theme="dark"] .page-header {
    background: #1d1d1f;
}

html[data-theme="dark"] .page-header p {
    color: #a1a1a6;
}

/* --- Legal Pages --- */
html[data-theme="dark"] .legal-content li {
    color: #a1a1a6;
}

/* --- Value / Info Tiles --- */
html[data-theme="dark"] .value-item {
    background: #1c1c1e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .value-item p {
    color: #a1a1a6;
}

html[data-theme="dark"] .contact-info-card {
    background: #1c1c1e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .contact-info-card p {
    color: #a1a1a6;
}

/* --- Blazor Error UI --- */
html[data-theme="dark"] #blazor-error-ui {
    background: #4a1a1a;
    color: #f5f5f7;
}
