/* ==========================================================================
   versicherung-schwaz.at — zentrales Stylesheet
   Ausgelagert aus templates/base.html (Phase 1 UI-Redesign).
   Design-Tokens unter :root; Legacy-Variablennamen (--primary-color etc.)
   bleiben als Aliase erhalten, weil Templates sie inline referenzieren.
   ========================================================================== */

:root {
    /* Farbpalette */
    --color-primary: #3f9ba0;
    --color-primary-dark: #2f7d82;
    --color-primary-rgb: 63, 155, 160;
    --color-accent-light: #e8f4f5;
    --color-heading: #1f2a2e;
    --color-text: #3d4a4f;
    --color-text-muted: #5c6b70;
    --color-surface: #f6f9f9;
    --color-border: #dee2e6;

    /* Legacy-Aliase (werden in Templates verwendet) */
    --primary-color: var(--color-primary);
    --secondary-color: var(--color-heading);
    --background-color: #ffffff;
    --text-color: var(--color-text);
    --light-gray: var(--color-surface);
    --border-color: var(--color-border);

    /* Bootstrap-Theme auf die Markenfarbe mappen
       (text-primary, bg-primary, Links, Pagination statt Bootstrap-Blau) */
    --bs-primary: #3f9ba0;
    --bs-primary-rgb: 63, 155, 160;
    --bs-link-color: #3f9ba0;
    --bs-link-color-rgb: 63, 155, 160;
    --bs-link-hover-color: #2f7d82;
    --bs-link-hover-color-rgb: 47, 125, 130;

    /* Tiefe & Form */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(var(--color-primary-rgb), 0.1), 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 24px rgba(var(--color-primary-rgb), 0.15), 0 6px 12px rgba(0, 0, 0, 0.08);
    --shadow-brand: 0 4px 12px rgba(var(--color-primary-rgb), 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Verläufe */
    --gradient-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);

    /* Bewegung */
    --transition-base: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   Basis
   -------------------------------------------------------------------------- */

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(31, 42, 46, 0.06);
    padding: 1rem 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

/* Kontakt-CTA in der Navbar (Pill-Button) */
.nav-cta {
    border-radius: 50rem;
    padding: 0.5rem 1.35rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Auf schmalen Desktops (viele Menüpunkte + CTA) etwas dichter setzen */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
    }

    .nav-cta {
        padding: 0.5rem 1rem;
    }
}

/* Mobiles Ausklapp-Menü als Karte mit größeren Touch-Zielen */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        padding: 0.75rem 1rem;
        margin-top: 0.75rem;
    }

    .navbar-nav .nav-link {
        padding: 0.65rem 0.5rem;
        margin: 0;
    }

    .nav-cta {
        display: block;
        text-align: center;
        margin: 0.5rem 0.5rem 0.25rem;
    }
}

.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-primary {
    background: var(--gradient-brand);
    border: none;
    font-weight: 500;
    padding: 0.75rem 2rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #276a6e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--color-primary-rgb), 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 2rem;
    background: transparent;
    transition: var(--transition-base);
}

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

a.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Sektionen & Typografie
   -------------------------------------------------------------------------- */

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 3rem;
}

/* --------------------------------------------------------------------------
   Karten
   -------------------------------------------------------------------------- */

.card {
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark), var(--color-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card:hover::before {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
    background-color: var(--color-heading);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 1.5rem;
}

.footer h5 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8ecdd1;
    margin-bottom: 1.25rem;
}

.footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer ul li i {
    color: #8ecdd1;
    width: 1.25rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #8ecdd1;
}

.footer-logo {
    height: 30px;
    width: auto;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: var(--transition-base);
}

.social-btn:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 1.5rem 0;
    opacity: 1;
}

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

/* --------------------------------------------------------------------------
   Einheitlicher Unterseiten-Kopf
   -------------------------------------------------------------------------- */

.page-header {
    background:
        radial-gradient(60rem 20rem at 85% -5rem, rgba(var(--color-primary-rgb), 0.12), transparent 60%),
        linear-gradient(180deg, var(--color-accent-light) 0%, #ffffff 100%);
    padding: 4.5rem 0 3.5rem;
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.12);
}

.page-header h1 {
    color: var(--color-heading);
}

.page-header .lead {
    color: var(--color-text-muted);
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs-sep {
    margin: 0 0.5rem;
    color: var(--color-border);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

/* Heller Hero: dunkler Text auf sanftem Petrol-Verlauf mit dezentem Punktmuster */
.hero-section {
    background:
        radial-gradient(70rem 30rem at 85% -8rem, rgba(var(--color-primary-rgb), 0.14), transparent 60%),
        linear-gradient(180deg, var(--color-accent-light) 0%, #ffffff 100%);
    padding: 6rem 0 6.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(var(--color-primary-rgb), 0.22) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(115deg, transparent 45%, rgba(0, 0, 0, 0.9));
    mask-image: linear-gradient(115deg, transparent 45%, rgba(0, 0, 0, 0.9));
    pointer-events: none;
}

.hero-section h1 {
    color: var(--color-heading);
}

.hero-section .lead {
    color: var(--color-text-muted);
}

/* Foto-Komposition: organisch abgerundetes Porträt mit Versatz-Rahmen und Badge */
.hero-figure {
    position: relative;
    display: inline-block;
}

.hero-figure::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    right: -1.25rem;
    bottom: -1.25rem;
    border: 2px solid rgba(var(--color-primary-rgb), 0.35);
    border-radius: 28px;
}

.hero-portrait {
    position: relative;
    max-width: 350px;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

.hero-badge {
    position: absolute;
    left: -1.5rem;
    bottom: 1.5rem;
    z-index: 2;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 1.25rem;
    text-align: left;
}

.hero-badge-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}

.hero-badge-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Trust-Band (Statistiken, ragt in den Hero hinein)
   -------------------------------------------------------------------------- */

.trust-indicators {
    position: relative;
    z-index: 2;
    padding: 0 0 2rem;
}

.trust-band {
    background: #fff;
    border: 1px solid rgba(var(--color-primary-rgb), 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: -3.5rem;
}

.trust-band .stats-number {
    font-size: 2.75rem;
    color: var(--color-primary);
}

.trust-band p {
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Formulare
   -------------------------------------------------------------------------- */

.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--color-heading);
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form-check-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
}

/* --------------------------------------------------------------------------
   Service-Icons
   -------------------------------------------------------------------------- */

/* Weiche "Squircle"-Icons mit hellem Akzent-Hintergrund */
.service-icon {
    width: 64px;
    height: 64px;
    background: var(--color-accent-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
    color: var(--color-primary);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .service-icon {
    background: var(--gradient-brand);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.3);
}

.service-card .card-body {
    padding: 2rem;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonial-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--color-primary-rgb), 0.1), transparent);
    transition: left 0.6s ease;
}

.testimonial-card:hover::before {
    left: 100%;
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

/* Weiche Flächen- und Rahmen-Helfer für Startseiten-Sektionen */
.bg-soft {
    background-color: var(--color-surface);
}

.framed-figure {
    position: relative;
    display: inline-block;
}

.framed-figure::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: -1.25rem;
    right: 1.25rem;
    bottom: -1.25rem;
    border: 2px solid rgba(var(--color-primary-rgb), 0.35);
    border-radius: var(--radius-lg);
}

.framed-figure img {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Versatz-Rahmen auf Mobilgeräten enger, damit nichts über den Viewport ragt */
@media (max-width: 768px) {
    .framed-figure::before {
        top: 0.75rem;
        left: -0.75rem;
        right: 0.75rem;
        bottom: -0.75rem;
    }
}

.about-portrait {
    max-width: 400px;
}

/* Dunkle Petrol-CTA (klarer Kontrast zum hellen Hero) */
.cta-section {
    background:
        radial-gradient(50rem 18rem at 12% -5rem, rgba(142, 205, 209, 0.18), transparent 60%),
        linear-gradient(135deg, #2a5f64 0%, var(--color-heading) 100%);
}

/* Nummerierte Prozess-Schritte (Squircle statt Bootstrap-blauem Kreis) */
.process-step-number {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 24px;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-brand);
}

/* Partner-Band (z. B. INFINA-Kooperation auf der Kredit-Seite) */
.partner-band {
    background-color: var(--color-surface);
    border-top: 3px solid var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
}

.partner-logo {
    height: 58px; /* native Höhe der Grafik — kein unscharfes Hochskalieren */
    width: auto;
}

/* Große Akzent-Icons in Info-Karten */
.icon-lg {
    font-size: 3rem;
}

.blog-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.blog-content {
    font-size: 1.0625rem;
    line-height: 1.75;
}

.pagination {
    --bs-pagination-color: var(--color-primary);
    --bs-pagination-hover-color: var(--color-primary-dark);
    --bs-pagination-focus-color: var(--color-primary-dark);
    --bs-pagination-active-bg: var(--color-primary);
    --bs-pagination-active-border-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Rechtsseiten: schmale Lesespalte mit ruhiger Typografie
   -------------------------------------------------------------------------- */

.legal-card .card-body {
    padding: 2.5rem;
    max-width: 72ch;
    margin-inline: auto;
    line-height: 1.7;
}

.legal-card .card-body h2,
.legal-card .card-body h3 {
    color: var(--color-heading);
}

@media (max-width: 576px) {
    .legal-card .card-body {
        padding: 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   Meldungen
   -------------------------------------------------------------------------- */

.alert-success {
    background-color: rgba(var(--color-primary-rgb), 0.1);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: var(--radius-md);
    border-width: 2px;
    animation: slideInDown 0.5s ease;
}

/* --------------------------------------------------------------------------
   Animationen
   -------------------------------------------------------------------------- */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s ease forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.fade-in-up:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   Statistiken
   -------------------------------------------------------------------------- */

.stats-number {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    transition: transform 0.3s ease;
}

.stats-number:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   Responsive: Tablet (≤ 768 px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 3rem 0 4rem;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .trust-band {
        margin-top: -2.5rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-brand img {
        height: 35px;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .testimonial-card,
    .card-body {
        padding: 1.5rem;
    }

    .display-4 {
        font-size: 2.2rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-section .d-flex {
        flex-direction: column;
    }

    .footer .col-lg-4,
    .footer .col-lg-3,
    .footer .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* --------------------------------------------------------------------------
   Responsive: Smartphone (≤ 576 px)
   -------------------------------------------------------------------------- */

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-padding {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .card-body {
        padding: 1rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .btn {
        font-size: 0.9rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-brand img {
        height: 30px;
    }

    .footer .footer-logo {
        height: 25px;
    }

    .page-header {
        padding: 3rem 0 2.5rem;
    }

    .contact-item {
        margin-bottom: 1.5rem;
    }

    .hero-section img {
        max-width: 250px;
        margin-top: 2rem;
    }

    .hero-badge {
        left: 0;
        bottom: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .hero-badge-number {
        font-size: 1.25rem;
    }

    .trust-band {
        margin-top: -2rem;
        padding: 1.5rem 0.75rem 0.75rem;
    }

    .trust-band .stats-number {
        font-size: 2rem;
    }

    .form-control {
        font-size: 16px; /* verhindert Auto-Zoom auf iOS */
    }

    .contact-item h5 {
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    a[href^="tel:"] {
        color: var(--primary-color);
        font-weight: 500;
        text-decoration: none;
    }

    a[href^="tel:"]:hover {
        color: var(--secondary-color);
    }
}

/* --------------------------------------------------------------------------
   Touch-Geräte
   -------------------------------------------------------------------------- */

@media (hover: none) {
    .btn:hover {
        transform: none;
    }

    .navbar-nav .nav-link {
        padding: 1rem 0.5rem;
    }

    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }

    .card:hover {
        transform: translateY(-4px);
        transition: transform 0.2s ease;
    }

    .service-icon:hover {
        transform: scale(1.05);
        transition: transform 0.2s ease;
    }

    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        animation-duration: 0.5s;
    }
}

/* Querformat auf Smartphones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
    }

    .section-padding {
        padding: 2rem 0;
    }
}

/* --------------------------------------------------------------------------
   Telefon-CTA-Button (weißer Outline-Button auf Verlaufs-Hintergrund)
   -------------------------------------------------------------------------- */

.phone-cta-btn {
    color: white !important;
    border-color: white !important;
    background-color: transparent !important;
}

.phone-cta-btn:hover,
.phone-cta-btn:focus {
    color: var(--primary-color) !important;
    background-color: white !important;
    border-color: white !important;
}

@media (max-width: 768px) {
    .phone-cta-btn,
    .phone-cta-btn:visited,
    .phone-cta-btn:active {
        color: white !important;
        border-color: white !important;
        background-color: transparent !important;
    }

    .phone-cta-btn:active,
    .phone-cta-btn:focus {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
    }

    .phone-cta-btn span,
    .phone-cta-btn i {
        color: white !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .phone-cta-btn {
        color: white !important;
        border-color: white !important;
    }

    .phone-cta-btn:active {
        background-color: rgba(255, 255, 255, 0.2) !important;
        color: white !important;
    }
}

/* --------------------------------------------------------------------------
   Barrierefreiheit: reduzierte Bewegung
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
