/* chrestels.css - Ultra-Modern Redesign for Johannes Chrestels KFZ-Meisterbetrieb */

/* ==========================================================================
   0. Locally Hosted Fonts (GDPR Compliant & Fast)
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/inter-300-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/inter-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/inter-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/inter-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/outfit-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/outfit-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/outfit-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/outfit-700-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/outfit-800-normal.woff2') format('woff2');
}

/* ==========================================================================
   1. Design System & CSS Variables
   ========================================================================== */
:root {
    --primary-red: #d32f2f;       /* Vibrant accessible red */
    --primary-red-hover: #b71c1c; /* Darker rich red for interactive feedback */
    --primary-red-light: #ffebee;
    --dark-charcoal: #111113;     /* Sleek background tones for footer & text */
    --text-main: #212529;         /* Charcoal body text */
    --text-muted: #5a626a;        /* High-contrast grey body text */
    --bg-page: #f8f9fa;           /* Modern off-white background */
    --bg-card: #ffffff;
    --white: #ffffff;             /* Primary white text & component color */
    --border-color: rgba(0, 0, 0, 0.08);
    --border-focus: #d32f2f;
    --max-width: 1200px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --transition-curve: cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-speed: 0.3s;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.06), 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   2. Reset & Global Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-page);
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

/* ==========================================================================
   3. Typography Hierarchy (Outfit for Headings, Inter for Body)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-charcoal);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Decorative modern accent line below section titles */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-main);
    font-size: 1.05rem;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color var(--transition-speed) ease-in-out;
}

a:hover, a:focus {
    color: var(--primary-red-hover);
    text-decoration: underline;
}

/* Email Obfuscation Styles (Renders reversed string forward for human eyes) */
.email-obf {
    unicode-bidi: bidi-override;
    direction: rtl;
    display: inline-block;
}

/* Visually hidden accessibility helper class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicator for keyboard navigation accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-red);
    outline-offset: 3px;
}

/* ==========================================================================
   4. Sticky Glassmorphism Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.6rem 2rem;
    transition: background var(--transition-speed);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 55px; /* Unified aligned height */
}

/* Horizontal branding logo + text layout */
.brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none !important;
}

.brand-logo-pic {
    display: flex;
    align-items: center;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--dark-charcoal);
    line-height: 1;
    letter-spacing: -0.5px;
}

.brand-sub {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
    line-height: 1;
}

/* ==========================================================================
   5. Modern Navigation Bar & Dropdowns
   ========================================================================== */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    position: relative;
    z-index: 1010;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--dark-charcoal);
    position: relative;
    transition: background-color var(--transition-speed);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background-color: var(--dark-charcoal);
    left: 0;
    transition: transform var(--transition-speed), top var(--transition-speed);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Hamburger animated transform when active */
.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.35rem;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-charcoal);
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--transition-speed), background-color var(--transition-speed);
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a.active {
    color: var(--primary-red);
    background-color: rgba(211, 47, 47, 0.05);
    text-decoration: none;
}

/* Dropdown specific items */
.nav-dropdown .arrow {
    font-size: 0.65rem;
    transition: transform var(--transition-speed);
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    list-style: none;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), transform var(--transition-speed), visibility var(--transition-speed);
    z-index: 1001;
}

.dropdown-menu li a {
    display: block;
    padding: 0.65rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    color: var(--text-main);
    text-align: left;
}

.dropdown-menu li a:hover {
    background-color: var(--primary-red-light);
    color: var(--primary-red);
}

/* Show dropdown on hover (desktop only) */
@media screen and (min-width: 769px) {
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown a:focus + .dropdown-menu,
    .dropdown-menu:focus-within {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .nav-dropdown:hover .arrow {
        transform: rotate(180deg);
    }
}

/* ==========================================================================
   6. Main Content Area & Layout Panels
   ========================================================================== */
.site-main {
    flex-grow: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.container {
    width: 100%;
}

/* ==========================================================================
   7. Homepage Design (Wow-Factors, Hero & Grid)
   ========================================================================== */

/* Hero Banner Layout */
.hero-section {
    position: relative;
    padding: 5rem 4rem;
    background: linear-gradient(135deg, #111113 0%, #1e1e24 100%);
    border-radius: 12px;
    color: #f4f4f5; /* Light off-white content contrast base */
    margin-bottom: 4rem;
    overflow: hidden;
    box-shadow: var(--primary-red) 0px 5px 5px 0px inset;
}

.hero-eyebrow {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: #ef4444 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

/* Explicit contrast override to solve black-on-black bug */
.hero-section h1 {
    color: #ffffff !important;
    font-size: clamp(2.00rem, 4.5vw, 3.25rem);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: #d1d1d6 !important; /* High-contrast light grey */
    max-width: 800px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Modern Primary Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-red);
    color: var(--white) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.9rem 2.25rem;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    text-decoration: none;
    transition: background-color var(--transition-speed) var(--transition-curve),
                transform 0.2s var(--transition-curve),
                box-shadow var(--transition-speed) var(--transition-curve);
}

.cta-button:hover,
.cta-button:focus {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
    text-decoration: none;
}

/* Service Grid with floating card transitions */
.services-section {
    margin-bottom: 4rem;
}

.services-section h2 {
    margin-bottom: 2rem;
}

/* Balanced 3-column grid system */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.leistung-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-red); /* Premium red top accent bar */
    border-radius: 8px;
    padding: 2.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-speed) var(--transition-curve),
                box-shadow var(--transition-speed) var(--transition-curve),
                border-color var(--transition-speed);
}

.leistung-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.01);
    border-color: rgba(211, 47, 47, 0.3);
}

/* Modern Card Icon Header */
.card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(211, 47, 47, 0.08);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px 26px;
}

.icon-unfall {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d32f2f'><path d='M19 8h-1V5c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zM8 5h8v3H8V5zm11 13H5v-8h14v8z'/></svg>");
}
.icon-lack {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d32f2f'><path d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 1.93-.68 3.7-1.9 5.08z'/></svg>");
}
.icon-glas {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d32f2f'><path d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h16v12zM6 10h12v2H6zm0 4h8v2H6z'/></svg>");
}
.icon-wartung {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d32f2f'><path d='M9 16.57L4.83 12.4l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
}
.icon-diagnose {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d32f2f'><path d='M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.3C.5 6.7.9 9.8 2.9 11.8c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.5z'/></svg>");
}
.icon-reifen {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d32f2f'><path d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-11c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/></svg>");
}

.leistung-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.leistung-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.card-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-red);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    margin-top: auto;
}

.card-link span {
    transition: transform 0.2s var(--transition-curve);
}

.leistung-card:hover .card-link span {
    transform: translateX(4px);
}



/* ==========================================================================
   8. Service Subpages Styling
   ========================================================================== */
.service-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.service-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.service-split-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.service-details-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.service-checklist {
    list-style: none;
    margin: 1.5rem 0 2rem 0;
}

.service-checklist li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    font-size: 1.05rem;
}

.service-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Sidebar Callout Blocks */
.sidebar-box {
    background-color: var(--dark-charcoal);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    position: sticky;
    top: 100px;
    box-shadow: var(--primary-red) 0px 5px 5px 0px inset;
    margin-bottom: 2rem;
}

.sidebar-box h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.sidebar-box p {
    color: #b0b0b8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.sidebar-box .contact-info-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.sidebar-box .contact-info-list li {
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.sidebar-box .contact-info-list a {
    color: var(--white);
}

.sidebar-box .cta-button {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   9. Anfahrt / Location (Redesigned representation without cookies)
   ========================================================================== */
.route-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.route-desc-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.route-step {
    border-left: 2px solid var(--primary-red);
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.route-step::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-red);
}

.route-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.route-step p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.route-planners {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-planner {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background-color: var(--dark-charcoal);
    color: var(--white) !important;
    padding: 0.8rem 1.4rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-speed), transform var(--transition-speed) var(--transition-curve), box-shadow var(--transition-speed) var(--transition-curve);
}

.btn-planner:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.35);
}

/* ==========================================================================
   10. Form Design (Floating Style)
   ========================================================================== */
.contact-form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    margin: 0 auto;
}

.contact-form-card h2 {
    margin-bottom: 1.5rem;
}

/* Row & Column Form Alignment Grid */
.contact-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.contact-col {
    flex: 1;
    min-width: 0;
}

.contact-col-full {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--dark-charcoal);
}

.form-group label .required-mark {
    color: var(--primary-red);
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    background-color: var(--white);
    color: var(--dark-charcoal);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-input:focus {
    border-color: var(--border-focus);
    outline: none;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 160px;
}

/* Off-screen Honeypot Position (Keeps DOM interactive for bots, invisible to humans) */
.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Spam challenge layout */
.spam-captcha-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.captcha-label {
    font-weight: 500;
}

.captcha-equation {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-red);
    font-weight: 800;
    background-color: #fff5f5;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(211, 47, 47, 0.15);
}

.form-input-captcha {
    width: 110px;
    text-align: center;
    font-weight: 700;
}

.form-submit-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Premium Form Submit Button */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-red);
    color: var(--white) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.9rem 2.25rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    transition: background-color var(--transition-speed) var(--transition-curve),
                transform 0.2s var(--transition-curve),
                box-shadow var(--transition-speed) var(--transition-curve);
}

.btn-submit:hover,
.btn-submit:focus {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.5);
    outline: none;
}


/* ==========================================================================
   11. Footer Structure & Widgets
   ========================================================================== */
.site-footer {
    background-color: var(--dark-charcoal);
    color: #e2e8f0;
    padding: 4.5rem 2rem 2rem 2rem;
    box-shadow: var(--primary-red) 0px 5px 0px 0px inset;
    font-family: var(--font-sans);
}

.footer-widgets {
    max-width: var(--max-width);
    margin: 0 auto 3rem auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3.5rem;
}

.footer-widget-title {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-red);
}

.widget-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-red);
    margin-bottom: 1.25rem;
}

/* Specificity override to prevent general p color (#212529) from overriding footer text */
.site-footer p {
    color: #e2e8f0 !important; /* High contrast light grey */
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-widget p.address-text, 
.footer-widget p.contact-links {
    color: #e2e8f0 !important;
}

.footer-widget a {
    color: #ffffff !important; /* Bright white links */
    transition: color var(--transition-speed);
}

.footer-widget a:hover {
    color: #ff8a80 !important; /* Light coral red on hover */
    text-decoration: none;
}

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

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget ul li a {
    font-size: 0.95rem;
    text-decoration: none !important;
}

.hours-table {
    width: 100%;
    font-size: 0.95rem;
    border-collapse: collapse;
}

.hours-table td {
    padding: 0.4rem 0;
    color: #e2e8f0;
}

.hours-table td:last-child {
    text-align: right;
    color: var(--white);
    font-weight: 500;
}

.hours-note {
    margin-top: 1rem;
    font-style: italic;
    font-size: 0.85rem;
    color: #cbd5e1 !important;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #cbd5e1; /* High contrast light grey for bottom elements */
}

/* Override general p color for bottom copyright and webdesign text */
.footer-bottom p.footer-copy,
.footer-bottom p.footer-design {
    color: #cbd5e1 !important;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-legal a {
    color: #cbd5e1 !important;
    transition: color var(--transition-speed);
}

.footer-legal a:hover {
    color: var(--white) !important;
}

.footer-bottom a {
    color: #ffffff !important;
}

.footer-bottom a:hover {
    color: #ff8a80 !important;
}

/* ==========================================================================
   12. Media Breakpoints
   ========================================================================== */

/* Medium tablet breakpoint (collapse to 2 columns) */
@media screen and (max-width: 992px) {
    .leistungen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet & Smaller Displays (under 768px) */
@media screen and (max-width: 768px) {
    .site-header {
        padding: 0.85rem 1.25rem;
    }
    
    .header-inner {
        position: relative;
        height: 45px;
    }
    
    .brand-name {
        font-size: 1.35rem;
    }
    
    .brand-sub {
        font-size: 0.75rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: var(--bg-card);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
        height: 100vh;
        width: 280px;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 1.5rem 1.5rem 1.5rem;
        gap: 0.5rem;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform var(--transition-speed) var(--transition-curve), visibility var(--transition-speed) var(--transition-curve);
        z-index: 1005;
        overflow-y: auto;
    }
    
    .nav-menu--open {
        transform: translateX(0);
        visibility: visible;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: 4px;
        justify-content: space-between;
    }
    
    /* Toggle dropdown menus inside drawer */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--primary-red);
        background-color: transparent;
        margin-left: 1rem;
        padding-left: 0.5rem;
        min-width: unset;
        transition: none;
    }
    
    .nav-dropdown--open .dropdown-menu {
        display: block;
    }
    
    .nav-dropdown--open .arrow {
        transform: rotate(180deg);
    }
    
    .site-main {
        padding: 2rem 1.25rem;
    }
    
    /* Grid collapse details */
    .hero-section {
        padding: 3rem 2rem;
        margin-bottom: 2.5rem;
    }
    
    .service-split-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .sidebar-box {
        position: static;
    }
    
    .route-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Mobile-Specific Breakpoints (under 480px) */
@media screen and (max-width: 480px) {
    .brand-name { font-size: 1.25rem; }
    .brand-sub { font-size: 0.7rem; }
    
    .hero-section {
        padding: 2.5rem 1.5rem;
    }
    
    .leistungen-grid {
        grid-template-columns: 1fr;
    }
    
    .leistung-card {
        padding: 1.75rem;
    }
    
    .contact-form-card {
        padding: 1.75rem 1.25rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ==========================================================================
   14. Layout classes (Replacing Inline Styles)
   ========================================================================== */

/* 404 Error Page Classes */
.error-page-wrapper {
    margin: 0 auto;
    padding: 2rem 0;
    text-align: center;
}
.error-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.error-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.error-cta-container {
    margin-top: 1rem;
}

/* Contact Details Cards */
.contact-details-grid {
    margin-bottom: 3.5rem;
}
.contact-detail-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.contact-detail-card h2::after {
    left: 50%;
    transform: translateX(-50%);
}
.contact-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.contact-card-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.25rem;
}
.contact-link-inherit {
    color: inherit !important;
}
.contact-card-label {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
}
.form-info-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}
.required-star {
    color: var(--primary-red);
}
.contact-submit-row {
    margin-top: 1rem;
}

/* Anfahrt Map SKizze Layouts */
.skizze-title {
    margin-top: 2rem;
}
.map-container {
    margin-top: 1rem;
}
.map-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Impressum Disclaimer Card Layouts */
.impressum-disclaimer-card {
    margin-top: 2rem;
}

/* ==========================================================================
   15. Print-Specific Styling overrides
   ========================================================================== */
@media print {
    /* Hide interactive, dark, and non-printable elements */
    header.site-header,
    footer.site-footer,
    .cta-button,
    .btn-planner,
    .contact-form-card,
    .nav-toggle,
    .cookie-banner,
    .spam-captcha-group {
        display: none !important;
    }

    body {
        background-color: var(--white) !important;
        color: #000000 !important;
        font-size: 11pt !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    h1, h2, h3 {
        color: #000000 !important;
        page-break-after: avoid;
    }

    a {
        text-decoration: underline !important;
        color: #000000 !important;
    }

    /* Print URL text after href links (except class email-lnk and tel) */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 9pt;
    }
}


