/* ===================================================================
   durma-sandstrahler.ch  –  style.css
   Aufgebaut in dieser Reihenfolge:
     1. Variablen
     2. Reset und Basis
     3. Typografie
     4. Layout
     5. Header und Navigation
     6. Hero
     7. Karten
     8. Listen
     9. Buttons
    10. Banner
    11. Bilder und Slideshow
    12. Footer
    13. Cookie-Banner
    14. Barrierefreiheit
    15. Media Queries
   =================================================================== */


/* ===================================================================
   1. Variablen
   =================================================================== */

:root {
    --primary: #f6b26b;        /* Durma Orange */
    --primary-dark: #e69138;
    --dark: #1a1a1a;
    --gray-bg: #fdfdfd;
    --text: #444444;
    --muted: #999999;
    --border: #eaeaea;
    --white: #ffffff;

    --max-width: 1290px;
    --radius: 16px;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.10);

    /* Konkrete Eigenschaften statt `all` – schont schwaechere Geraete */
    --transition: color 0.3s ease,
                  background-color 0.3s ease,
                  border-color 0.3s ease,
                  opacity 0.3s ease,
                  transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


/* ===================================================================
   2. Reset und Basis
   =================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    /* Hinweis: 'Inter' muss in header.php eingebunden werden,
       sonst greift die System-Schrift. */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--gray-bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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


/* ===================================================================
   3. Typografie
   Wegen des Resets oben haben Ueberschriften keinen Abstand.
   Er wird hier gezielt zurueckgegeben.
   =================================================================== */

h1, h2, h3 {
    color: var(--dark);
    letter-spacing: -0.5px;
}

h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

h2,
.highlight-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

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


/* ===================================================================
   4. Layout
   =================================================================== */

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.content-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
}

.column {
    flex: 1;
    min-width: 350px;
    display: flex;
}


/* ===================================================================
   5. Header und Navigation
   =================================================================== */

.main-header {
    background-color: var(--primary);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    max-height: 45px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo-text {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--dark);
}

/* Burger-Button (im Markup ein <button>, daher Reset noetig) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}


/* ===================================================================
   6. Hero
   =================================================================== */

.hero-section {
    padding: 80px 0 60px;
    text-align: center;
}

.badge {
    background: rgba(246, 178, 107, 0.15);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-section h1 {
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #888;
    max-width: 700px;
    margin: 0 auto;
}


/* ===================================================================
   7. Karten
   =================================================================== */

.modern-card,
.image-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 8px solid var(--primary);
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: var(--transition);
}

.modern-card:hover,
.image-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-content {
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-content h2,
.card-content .highlight-title {
    margin-bottom: 16px;
}

.card-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.card-content p {
    margin-bottom: 16px;
}

/* Zweite und weitere Ueberschrift in derselben Karte braucht Luft */
.card-content > h2 ~ h2 {
    margin-top: 40px;
}

.card-content > *:last-child {
    margin-bottom: 0;
}

.card-footer {
    margin-top: auto;
}


/* ===================================================================
   8. Listen
   =================================================================== */

.service-list-modern {
    list-style: none;
    margin: 30px 0;
    padding-left: 0;
}

.service-list-modern li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 1.1rem;
}

.service-list-modern li:last-child {
    margin-bottom: 0;
}

.dot {
    flex: 0 0 8px;
    height: 8px;
    width: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-right: 15px;
    display: inline-block;
}

/* Links in Listen im Seitenstil statt Browser-Blau */
.service-list-modern a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.service-list-modern a:hover,
.service-list-modern a:focus-visible {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

/* Nummerierte Ablauf-Listen */
ol.service-list-modern {
    counter-reset: schritt;
}

ol.service-list-modern li {
    counter-increment: schritt;
    align-items: flex-start;
}

ol.service-list-modern li::before {
    content: counter(schritt);
    flex: 0 0 26px;
    height: 26px;
    margin-right: 15px;
    background: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ===================================================================
   9. Buttons
   =================================================================== */

.btn-primary {
    background: var(--dark);
    color: var(--white);
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 10px;
    display: inline-block;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--dark);
    transform: scale(1.05);
}


/* ===================================================================
   10. Banner
   =================================================================== */

.info-banner-modern {
    background: var(--dark);
    color: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    text-align: center;
    margin: 60px 0;
}

.info-banner-modern p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.info-banner-modern .banner-title,
.banner-title {
    color: var(--primary);
    margin-bottom: 20px;
}

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

.feature-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.cta-banner {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 8px solid var(--primary);
    padding: 50px;
    margin: 60px 0;
    text-align: center;
}

.cta-banner h2 {
    margin-bottom: 16px;
}

.cta-banner p {
    max-width: 640px;
    margin: 0 auto 28px;
}


/* ===================================================================
   11. Bilder und Slideshow
   =================================================================== */

.simple-crossfade {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
    background: #f0f0f0;
}

.fade-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.fade-img.active {
    opacity: 1;
    z-index: 2;
}

/* Vorher-Nachher-Bilder mit Bildunterschrift */
figure.image-card {
    padding: 0;
    overflow: hidden;
}

figure.image-card img {
    width: 100%;
    height: auto;
    display: block;
}

figure.image-card figcaption {
    padding: 16px 24px;
    font-size: 0.9rem;
    color: var(--muted);
}


/* ===================================================================
   12. Footer
   =================================================================== */

.main-footer {
    background-color: var(--white);
    color: var(--dark);
    padding: 80px 0 40px;
    margin-top: 80px;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.footer-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-box p,
.footer-box address {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    font-style: normal;
}

.footer-box a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-line {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin-bottom: 30px;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--dark);
}

.designby {
    color: #f63407;
}


/* ===================================================================
   13. Cookie-Banner
   =================================================================== */

.cookie-overlay {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 30px;
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    transition: opacity 0.5s ease;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.cookie-content a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-cookie {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-cookie:hover {
    background: var(--primary);
    color: var(--dark);
}


/* ===================================================================
   14. Barrierefreiheit
   =================================================================== */

/* Sprunglink: unsichtbar, bis er per Tab-Taste fokussiert wird */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--dark);
    color: var(--white);
    text-decoration: none;
    border-radius: 0 0 6px 0;
}

.skip-link:focus {
    left: 0;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 3px;
}

.main-nav a:focus-visible,
.menu-toggle:focus-visible,
.skip-link:focus-visible {
    outline-color: var(--dark);
}


/* ===================================================================
   15. Media Queries
   =================================================================== */

@media (max-width: 992px) {

    /* Header */
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .main-nav {
        display: none;
        width: 100%;
        background: var(--primary-dark);
        border-radius: 12px;
        margin-top: 10px;
        padding: 20px 0;
    }

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

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .site-logo {
        max-height: 35px;
        margin: 0 auto;
    }

    .logo-text {
        font-size: 1.2rem;
        text-align: center;
    }

    /* Layout */
    .content-flex {
        flex-direction: column;
    }

    .column {
        min-width: 100%;
    }

    .modern-card,
    .image-card {
        padding: 30px;
    }

    .info-banner-modern,
    .cta-banner {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {

    .hero-section {
        padding: 50px 0 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .bottom-flex {
        flex-direction: column;
        gap: 15px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .btn-cookie {
        width: 100%;
    }
}

/* Bewegung reduzieren, wenn das Betriebssystem es verlangt */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .modern-card:hover,
    .image-card:hover,
    .btn-primary:hover {
        transform: none;
    }
}