/* * ARCHITECTURAL STYLESHEET V10.3 (SEMANTIC FIX)
 * Projekt: Drogt Spezialreinigung
 * Update: Fixed Heading Hierarchy (Footer H4 -> H2, etc.)
 */

:root {
    /* --- CI BASE --- */
    --color-base-black: #0d0d0d;
    --color-base-grey:  #e2e8f0;
    --color-dark-grey:  #2d3748;
    
    /* --- FUNCTIONAL ACCENTS --- */
    --color-accent-blue: #0056b3; 
    --color-accent-blue-dark: #003d80;
    --color-accent-red:  #d32f2f;
    --color-accent-red-dark: #b71c1c;
    --color-gold: #fbbf24; 
    
    /* --- SEMANTIC MAPPING --- */
    --color-primary: var(--color-base-black);
    --color-action: var(--color-accent-blue);
    --color-action-hover: var(--color-accent-blue-dark);
    
    /* Backgrounds */
    --color-bg-body: #f8f9fa;
    --color-bg-card: #ffffff;
    --color-bg-footer: #1a202c;
    --color-overlay: rgba(0, 0, 0, 0.6);
    --color-bg-highlight: #f8fafc;
    
    /* Typography */
    --color-text-main: #1a202c;
    --color-text-muted: #4a5568;
    --color-text-footer: #cbd5e0;
    --color-white: #ffffff;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography Scale */
    --font-base: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    
    /* Shadows & Radius */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 4px;
    --radius-md: 8px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    font-family: var(--font-base);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

img.img-load-error {
    min-height: 200px;
    background-color: var(--color-base-grey);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
img.img-load-error::after {
    content: "Bild nicht verfügbar";
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--color-action);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-action);
    color: var(--color-white);
    padding: 1rem 2rem;
    z-index: 9999;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    text-decoration: underline;
}
.skip-link:focus { top: 0; }

/* --- UTILITIES --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.section-spacing { padding: var(--spacing-lg) 0; }
.bg-light { background-color: #f1f5f9; }
.theme-dark { background-color: var(--color-primary); color: var(--color-white); }
.mt-4 { margin-top: 1rem; }
.mb-5 { margin-bottom: 2rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-base-black);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- HEADER & NAV --- */
.site-header {
    background: var(--color-bg-card);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Mobile Nav */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
    width: 30px;
    height: 2px;
    background-color: var(--color-base-black);
    position: absolute;
    transition: transform 0.15s ease;
}
.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-base-black);
    position: absolute;
    transition: transform 0.15s ease;
}
.hamburger-inner::before { top: -10px; }
.hamburger-inner::after { bottom: -10px; }

.menu-toggle.is-active .hamburger-inner { transform: rotate(45deg); }
.menu-toggle.is-active .hamburger-inner::before { top: 0; opacity: 0; }
.menu-toggle.is-active .hamburger-inner::after { bottom: 0; transform: rotate(-90deg); }

.main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-card);
    padding: var(--spacing-md);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

.main-nav.active {
    transform: translateX(0);
    visibility: visible;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
    width: 100%;
}

.main-nav a {
    font-size: 1.25rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem;
}

.nav-phone {
    color: var(--color-white) !important;
    background-color: var(--color-action);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem !important;
    margin-top: 1rem;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.hero-small {
    min-height: 40vh;
    padding: var(--spacing-lg) 0;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)); 
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero p.lead {
    color: var(--color-white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-highlight {
    color: #90cdf4;
}

.hero-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    gap: 0.5rem;
    min-width: 200px;
}

.btn-primary {
    background-color: var(--color-action);
    color: var(--color-white);
}
.btn-primary:hover {
    background-color: var(--color-action-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}
.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-base-black);
}

.big-btn {
    font-size: 1.25rem;
    padding: 1rem 2rem;
}

/* --- SERVICES CARD GRID --- */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-base-grey);
    margin: 0;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    color: var(--color-action-hover);
}

.card-content p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.text-link {
    color: var(--color-action);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.text-link:hover { text-decoration: underline; }

/* --- FEATURES --- */
.feature-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* --- SERVICE CONTENT (ZIG-ZAG) --- */
.grid-2-alt {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.service-text { order: 2; }

.sub-label {
    display: block;
    font-weight: 600;
    color: var(--color-action);
    text-transform: uppercase;
    font-size: var(--text-sm);
    margin-bottom: 0.5rem;
}

.check-list {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.check-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.check-list li::before {
    content: "✓";
    color: var(--color-action);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-details {
    margin: 1.5rem 0;
}

.service-details dt {
    font-weight: 700;
    margin-top: 1rem;
    color: var(--color-base-black);
}

.service-details dd {
    margin-left: 0;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.special-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.special-item {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-action);
}

.special-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.special-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.img-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background-color: var(--color-base-grey);
}

.img-frame img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-frame:hover img {
    transform: scale(1.02);
}

.img-frame-small {
    width: 100%;
    margin: 0 auto;
}

/* --- FAQ CARD --- */
.faq-wrapper {
    margin-top: 2rem;
}

.faq-card-container {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.faq-card-container details {
    border-bottom: 1px solid #e2e8f0;
}

.faq-card-container details:last-child {
    border-bottom: none;
}

.faq-card-container summary {
    list-style: none;
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 3rem;
    color: var(--color-text-main);
    transition: background-color 0.2s;
}

.faq-card-container summary:hover {
    background-color: #f8f9fa;
    color: var(--color-action);
}

.faq-card-container summary::after {
    content: "▼";
    font-size: 0.8rem;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--color-text-muted);
}

.faq-card-container details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-card-container summary::-webkit-details-marker {
    display: none;
}

.faq-card-container p {
    padding: 0 1.25rem 1.25rem;
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- ABOUT PAGE SPLIT --- */
.about-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.quote-block {
    border-left: 4px solid var(--color-action);
    padding-left: 1rem;
    font-style: italic;
    margin: 1.5rem 0;
    color: var(--color-text-main);
    font-weight: 500;
}

/* --- FEATURED REFERENCE --- */
.featured-ref {
    background-color: var(--color-bg-highlight);
    border-left: 6px solid var(--color-action);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: var(--spacing-xl);
}

.featured-ref h2 {
    color: var(--color-action-hover);
    margin-bottom: 0.5rem;
}

.featured-ref .ref-badge {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

.ref-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ref-tag {
    background: rgba(0, 86, 179, 0.1);
    color: var(--color-action);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- REVIEW CARDS --- */
.review-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.review-card {
    background: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid #e2e8f0;
}

.star-rating {
    color: var(--color-gold);
    font-size: 1.25rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.review-text {
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.review-author {
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.source-badge {
    font-size: 0.75rem;
    color: #718096;
    font-weight: normal;
    background: #edf2f7;
    padding: 2px 6px;
    border-radius: 4px;
}

/* --- CONTACT PAGE STYLES --- */
.contact-center {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-options-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.contact-card-large {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card-large h3 {
    color: var(--color-action);
    margin-bottom: 0.5rem;
}

.contact-card-large .action-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-block;
}

.contact-card-large .action-link:hover {
    color: var(--color-action-hover);
    text-decoration: underline;
}

.address-block {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-btn {
    background: #f1f5f9;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: background 0.2s;
}

.social-btn:hover {
    background: #e2e8f0;
}

/* --- LEGAL PAGES (NEW STYLES) --- */
.legal-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-block {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.legal-block:last-child {
    border-bottom: none;
}

.legal-block h2 {
    font-size: 1.5rem;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

.legal-block h3 {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-list dt {
    font-weight: 600;
    float: left;
    clear: left;
    width: 80px;
}

.contact-list dd {
    margin-left: 90px;
    margin-bottom: 0.5rem;
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--color-bg-footer);
    color: var(--color-text-footer);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    font-size: var(--text-sm);
}

.footer-grid {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: 1fr;
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    display: block;
    margin-bottom: 0.5rem;
}

/* Modified to H2 for Semantic Hierarchy */
.footer-col h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.legal-links-small a {
    color: var(--color-text-footer);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: var(--spacing-md);
    text-align: center;
    color: #ffffff;
}

/* --- RESPONSIVE BREAKPOINTS (EM-based) --- */

@media (min-width: 48em) { 
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .review-grid { grid-template-columns: repeat(2, 1fr); } 
    
    .hero-actions-wrapper {
        flex-direction: row;
        justify-content: center;
    }

    .grid-2-alt {
        grid-template-columns: 1fr 1fr;
    }
    
    .grid-2-alt .service-text { order: 1; }
    .grid-2-alt .service-img-col { order: 2; }
    
    .grid-2-alt.reversed .service-text { order: 2; }
    .grid-2-alt.reversed .service-img-col { order: 1; }
    
    .service-columns-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .about-split {
        grid-template-columns: 1fr 1fr;
    }
    
    .img-frame-small {
        max-width: 450px; 
    }

    .contact-options-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 64em) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); } 
    .footer-grid { grid-template-columns: repeat(5, 1fr); }

    .logo { height: 70px; }
    .menu-toggle { display: none; }
    
    .main-nav {
        position: static;
        height: auto;
        width: auto;
        background: none;
        transform: none;
        padding: 0;
        visibility: visible;
        display: block;
    }

    .main-nav ul {
        flex-direction: row;
        gap: var(--spacing-md);
        width: auto;
    }
    
    .main-nav a { font-size: 1rem; padding: 0.5rem; }
    
    .nav-phone {
        margin-top: 0;
        padding: 0.4rem 1rem !important;
        font-size: 0.9rem;
    }

    .hero { min-height: 70vh; }
    .hero-small { min-height: 40vh; }
    .hero-subpage { min-height: 50vh; }

    .contact-options-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}