/* ============================================
   SPERRMÜLL BERLIN - Mobile First Stylesheet
   Farben: Weiß (#FFFFFF), Orange (#F07D00)
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #F07D00;
    --primary-dark: #D46A00;
    --primary-light: #FF9B33;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #666666;
    --text-color: #333333;
    --shadow: 0 2px 12px rgba(0,0,0,0.1);
    --shadow-hover: 0 6px 24px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: var(--text-color);
}

/* === UTILITY CLASSES === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 48px 0;
}

.section-title {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 40px;
    font-size: 1rem;
}

.text-center { text-align: center; }
.text-orange { color: var(--primary); }
.bg-light { background-color: var(--light-gray); }
.bg-orange { background-color: var(--primary); color: var(--white); }
.bg-white { background-color: var(--white); }

.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;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--light-gray);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* === HEADER / NAVIGATION === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.nav-logo img {
    height: 45px;
    width: auto;
    min-width: 200px;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
    opacity: 1 !important;
    transform: none !important;
}

.nav-menu.active {
    right: 0;
}

.nav-menu a {
    display: block;
    padding: 14px 0;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--medium-gray);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.nav-dropdown-toggle::after {
    content: '▾';
    font-size: 0.8rem;
    transition: var(--transition);
}

.nav-dropdown.open .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    padding-left: 16px;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    font-size: 0.95rem;
    padding: 10px 0;
    color: var(--dark-gray);
}

.nav-cta {
    margin-top: 20px;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
}

.nav-overlay.active {
    display: block;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    padding: 120px 16px 60px;
    background: linear-gradient(rgba(240, 125, 0, 0.85), rgba(212, 106, 0, 0.9)), url('../images/hero-sperrmull.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 28px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

/* === TRUST BAR === */
.trust-bar {
    background: var(--white);
    padding: 24px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.trust-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    text-align: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.trust-item svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
    flex-shrink: 0;
}

/* === SERVICES GRID === */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.service-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* === PRICING === */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.pricing-card.featured {
    border-color: var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    margin-top: 12px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 16px 0;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--dark-gray);
}

.pricing-features {
    text-align: left;
    margin: 24px 0;
}

.pricing-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* === HOW IT WORKS === */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    counter-reset: step;
}

.step-card {
    text-align: center;
    position: relative;
    counter-increment: step;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
}

/* === DISTRICTS / BEZIRKE === */
.bezirke-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bezirk-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.bezirk-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.bezirk-card-body {
    padding: 16px;
}

.bezirk-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.bezirk-card p {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.bezirk-card a {
    font-size: 0.9rem;
    font-weight: 600;
}

/* === BLOG === */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 20px;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.blog-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.blog-card h3 a {
    color: var(--text-color);
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.blog-tag {
    display: inline-block;
    background: var(--light-gray);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* === BLOG ARTICLE === */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 32px 0 12px;
}

.article-content h3 {
    font-size: 1.25rem;
    margin: 24px 0 10px;
}

.article-content p {
    margin-bottom: 16px;
    color: var(--dark-gray);
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
    color: var(--dark-gray);
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.article-hero-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

/* === TESTIMONIALS === */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 8px;
    left: 16px;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-location {
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.stars {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* === CONTACT FORM === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group label .required {
    color: red;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(240, 125, 0, 0.15);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.form-check label {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.contact-info-card {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.form-message {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: none;
    font-size: 0.95rem;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 48px 16px;
}

.cta-section h2 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.cta-section p {
    margin-bottom: 24px;
    opacity: 0.95;
    font-size: 1.05rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* === FAQ === */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--medium-gray);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: var(--text-color);
    font-family: inherit;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 18px;
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 100px 16px 16px;
    background: var(--light-gray);
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs-list li:not(:last-child)::after {
    content: '›';
    color: var(--dark-gray);
}

.breadcrumbs-list a {
    color: var(--dark-gray);
}

.breadcrumbs-list a:hover {
    color: var(--primary);
}

.breadcrumbs-list li:last-child {
    color: var(--primary);
    font-weight: 500;
}

/* === PAGE HEADER === */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 100px 16px 48px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 12px;
}

.page-header p {
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* === FOOTER === */
.footer {
    background: var(--text-color);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links a {
    display: block;
    padding: 6px 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
    flex-shrink: 0;
}

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

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* === PHONE CTA STICKY === */
.phone-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 14px;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}

.phone-cta svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
}

.phone-cta:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Extra bottom padding for sticky CTA */
.footer {
    padding-bottom: 60px;
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 70px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 997;
    transition: var(--transition);
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* === CHECKLIST === */
.checklist {
    max-width: 700px;
    margin: 0 auto;
}

.checklist li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    border-bottom: 1px solid var(--medium-gray);
    font-size: 0.95rem;
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* === BEZIRK DETAIL === */
.bezirk-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.bezirk-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bezirk-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
}

.bezirk-hero-overlay h1 {
    color: var(--white);
    font-size: 1.75rem;
}

.bezirk-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.bezirk-info-box {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.bezirk-info-box h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

/* === LOADING SPINNER === */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   TABLET BREAKPOINT (min-width: 600px)
   ============================================ */
@media (min-width: 600px) {
    .hero h1 { font-size: 2.5rem; }
    .section { padding: 64px 0; }
    .container { padding: 0 24px; }

    .services-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .bezirke-grid { grid-template-columns: 1fr 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .bezirk-card img { height: 140px; }
    .article-hero-img { height: 350px; }
}

/* ============================================
   DESKTOP BREAKPOINT (min-width: 992px)
   ============================================ */
@media (min-width: 992px) {
    .nav-toggle { display: none; }
    .nav-overlay { display: none !important; }

    .nav-menu {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 4px;
        overflow: visible;
    }

    .nav-menu a {
        padding: 8px 14px;
        border-bottom: none;
        font-size: 0.95rem;
        border-radius: var(--radius);
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: var(--light-gray);
    }

    .nav-dropdown {
        position: relative;
    }

    .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        border-radius: var(--radius);
        min-width: 220px;
        padding: 8px 0;
        display: none;
        z-index: 100;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 0;
    }

    .nav-dropdown-menu a:hover {
        background: var(--light-gray);
    }

    .nav-cta {
        margin-top: 0;
        margin-left: 8px;
    }

    .hero {
        padding: 160px 16px 100px;
    }

    .hero h1 { font-size: 3rem; }
    .section-title { font-size: 2.25rem; }

    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
    .steps-grid { grid-template-columns: repeat(4, 1fr); }
    .bezirke-grid { grid-template-columns: repeat(4, 1fr); }
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-grid { grid-template-columns: 2fr 1fr; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

    .phone-cta { display: none; }
    .footer { padding-bottom: 0; }
    .back-to-top { bottom: 24px; }

    .page-header {
        padding: 140px 16px 60px;
    }

    .page-header h1 { font-size: 2.5rem; }

    .bezirk-hero { height: 400px; }
    .bezirk-info-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   LARGE DESKTOP (min-width: 1200px)
   ============================================ */
@media (min-width: 1200px) {
    .hero h1 { font-size: 3.5rem; }
    .container { padding: 0 32px; }
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile nav should not be affected by fade-in styles */
.nav-toggle,
.nav-toggle *,
.nav-menu,
.nav-menu *,
.nav-overlay {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}

/* === DESKTOP CTA ASIDE === */
.desktop-cta {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(120%);
    background: var(--primary);
    color: var(--white);
    padding: 20px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 999;
    text-align: center;
    min-width: 200px;
    display: none;
    transition: transform 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.desktop-cta.visible {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

.desktop-cta.hidden {
    transform: translateY(-50%) translateX(120%);
    opacity: 0;
}

.desktop-cta h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.desktop-cta .phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.desktop-cta .phone-number:hover {
    color: var(--white);
    text-decoration: underline;
}

.desktop-cta p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

@media (min-width: 1200px) {
    .desktop-cta {
        display: block;
    }
}

/* === PRINT STYLES === */
@media print {
    .header, .phone-cta, .back-to-top, .nav-toggle, .nav-overlay { display: none; }
    .hero { padding-top: 24px; }
    body { font-size: 12pt; }
    .section { padding: 24px 0; }
}

/* === COOKIE MODAL === */
.cookie-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    border-top: 3px solid var(--primary);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-modal.show {
    transform: translateY(0);
}

.cookie-modal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.cookie-modal-header h3 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    color: var(--text-color);
}

.cookie-modal-body p {
    margin-bottom: 16px;
    color: var(--dark-gray);
    line-height: 1.5;
}

.cookie-types {
    margin: 16px 0 20px 0;
}

.cookie-type {
    margin-bottom: 12px;
}

.cookie-type label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.cookie-type input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--medium-gray);
    border-radius: 3px;
    display: inline-block;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-type input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.cookie-type input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkmark.required {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark.required::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.cookie-type small {
    display: block;
    margin-left: 26px;
    color: var(--dark-gray);
    font-size: 0.85rem;
    margin-top: 4px;
}

.cookie-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.cookie-modal-footer .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-modal-content {
        padding: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
        text-align: center;
    }
}
