:root {
    --rohnke-blue: #1b5a9d;
    --rohnke-dark-blue: #0d2e57;
}

/* ===== reCAPTCHA BADGE VERSTECKEN ===== */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
}

/* ===== reCAPTCHA HINWEISTEXT STYLING ===== */
.recaptcha-notice {
    font-size: 0.85rem;
    color: #adb5bd;
    margin-bottom: 0;
    line-height: 1.4;
}

.recaptcha-notice a {
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

.recaptcha-notice a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* ===== DANKE-SEITE STYLING ===== */
.danke-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.success-icon {
    animation: fadeInScale 0.6s ease-out;
}

.success-icon i {
    color: #28a745 !important;
    filter: drop-shadow(0 4px 8px rgba(40, 167, 69, 0.3));
}

.confirmation-text .lead {
    font-size: 1.25rem;
    font-weight: 500;
}

.next-steps h6 {
    color: var(--rohnke-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info {
    border-left: 4px solid var(--rohnke-blue);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-info h6 {
    color: var(--rohnke-blue);
    font-weight: 600;
}

.contact-info a {
    color: var(--rohnke-blue);
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.contact-info a:hover {
    color: var(--rohnke-dark-blue);
}

.action-buttons .btn {
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

body {
    font-family: 'system-ui', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

section {
    padding: 4rem 0;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/Firmenwagen%20Index.JPG') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

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

.hero-leistungen {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/StockBild Unfall.jpg') no-repeat center center;
    background-size: cover;
}

.testimonials-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/Stockbild zwei Auto unfall.jpg') no-repeat center center;
    background-size: cover;
    color: white;
}

.testimonials-section .card {
    background-color: white;
    color: #333;
    border: none;
    border-radius: .75rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stats-section {
    background-color: var(--rohnke-dark-blue);
}

.stats-section .display-4 {
    font-weight: 700;
}

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

footer a.text-white {
    text-decoration: none;
}

footer a.text-white:hover {
    text-decoration: underline;
}

.card {
    border: none;
    border-radius: .75rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 1.5rem rgba(0,0,0,.1);
}

.btn-primary {
    background-color: var(--rohnke-blue);
    border-color: var(--rohnke-blue);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-primary:hover {
    background-color: #154b8c;
    border-color: #154b8c;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto;
}

#kontakt-karte a {
    text-decoration: none;
    color: var(--rohnke-blue);
}

#kontakt-karte a:hover {
    text-decoration: underline;
}

.text-muted {
    color: #6c757d !important;
}

.lead {
    font-weight: 400;
}

.testimonials-section .lead, .stats-section .lead {
    color: rgba(255, 255, 255, 0.85);
}

/* Timeline styles */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--rohnke-blue);
    border: 3px solid #fff;
}

.timeline-item h6 {
    font-weight: 700;
}

.statistic-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rohnke-blue);
}

.statistic-item p {
    margin-bottom: 0;
    color: #6c757d;
}

.contact-card {
    display: block;
    padding: 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.contact-link {
    color: #212529; /* Standard-Textfarbe */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.contact-link:hover {
    color: var(--rohnke-blue);
    text-decoration: underline;
}

.statistics-section {
    background-color: #f8f9fa; /* Helles Grau */
}

.statistic-item h3 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--rohnke-blue);
}

.statistic-item p {
    margin-bottom: 0;
    color: #6c757d; /* Dunkles Grau für Text */
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #212529;
    color: white;
    padding: 1rem 1.5rem;
    z-index: 1050;
    display: none; /* Managed by JS */
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
}

/* Hero Section Button Responsive Styles */
.hero-section .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    white-space: nowrap;
    text-align: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.hero-section .btn i {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Mobile specific adjustments */
@media (max-width: 575.98px) {
    .hero-section .btn {
        min-height: 3rem;
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .hero-section .btn i {
        margin-right: 0.375rem;
        font-size: 0.9rem;
    }
}

/* Small tablets */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section .btn {
        min-height: 3.25rem;
        padding: 0.6875rem 1.375rem;
    }
}

/* Ensure buttons maintain proper spacing in flex container */
.hero-section .d-flex.flex-column.flex-sm-row {
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .hero-section .d-flex.flex-column.flex-sm-row {
        gap: 1rem;
    }
}

.footer-social-icons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem 0;
}

.footer-social-group, .footer-contact-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
}

.footer-contact-group {
    margin-left: 0;
}

.footer-social-icons a i {
    font-size: 1.5rem;
}

@media (max-width: 500px) {
    .footer-container, footer .container {
        padding-left: 1.2rem !important;
        padding-right: 1.2rem !important;
    }
    .mb-3 {
        margin-top: 1.2rem !important;
    }
}

.sticky-actions {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1051;
}
.sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--rohnke-blue, #1b5a9d);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    font-size: 1.7rem;
    border: none;
    outline: none;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}
.sticky-btn:hover, .sticky-btn:focus {
    background: var(--rohnke-dark-blue, #0d2e57);
    color: #fff;
    transform: translateY(-2px) scale(1.07);
    text-decoration: none;
}
@media (max-width: 600px) {
    .sticky-actions {
        right: 1rem;
        bottom: 1rem;
        gap: 0.7rem;
    }
    .sticky-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}

/* Karten einheitliche Formatierung und vertikale Zentrierung */
.card.h-100 {
    display: flex;
    flex-direction: column;
}

.card.h-100 .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    min-height: 470px;
    padding-bottom: 3.2rem;
}

.card.h-100 .card-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Blaue Pfeile zentriert */
.card-text .text-primary {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

/* ===== WARUM MARC ROHNKE SECTION - RESPONSIVE LAYOUT ===== */

/* Desktop Layout (ab 992px) */
@media (min-width: 992px) {
    .row.why-rohnke-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 2rem;
    }
    
    .row.why-rohnke-row > .col-md-3 {
        flex: 1 1 0;
        max-width: 100%;
    }
    
    .card.h-100 .card-body {
        min-height: 470px;
        padding: 2.5rem 2rem;
    }
    
    .feature-icon {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .card-title {
        min-height: 3.5rem;
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .card-text {
        min-height: 8rem;
        margin-bottom: 1.5rem;
    }
}

/* Tablet Layout (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .row.why-rohnke-row {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .row.why-rohnke-row > .col-md-3 {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
        margin-bottom: 1.5rem;
    }
    
    .card.h-100 .card-body {
        min-height: 400px;
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    .card-title {
        min-height: 3rem;
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .card-text {
        min-height: 7rem;
        margin-bottom: 1.25rem;
    }
}

/* Mobile Layout (bis 767px) */
@media (max-width: 767.98px) {
    .row.why-rohnke-row {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .row.why-rohnke-row > .col-md-3 {
        flex: none;
        max-width: 100%;
        margin-bottom: 0;
    }
    
    .card.h-100 .card-body {
        min-height: auto;
        text-align: center;
        padding: 2rem 1.5rem;
        border: 1px solid #e9ecef;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    .feature-icon {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .card-title {
        min-height: auto;
        font-size: 1.3rem;
        margin-bottom: 2rem;
        line-height: 1.3;
    }
    
    .card-text {
        min-height: auto;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    /* Spezielle Abstände für Textblöcke auf Mobile */
    .card-text p {
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }
    
    .card-text .text-primary {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        display: block;
        padding: 0.5rem 0;
    }
    
    .trust-link {
        margin-top: 1.5rem;
    }
}

/* Small Mobile Layout (bis 575px) */
@media (max-width: 575.98px) {
    .row.why-rohnke-row {
        gap: 1.5rem;
    }
    
    .card.h-100 .card-body {
        padding: 2rem 1rem;
        margin: 0 0.5rem;
    }
    
    .feature-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .card-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .card-text {
        margin-bottom: 2rem;
        font-size: 0.95rem;
    }
    
    /* Noch größere Abstände für kleine Mobile */
    .card-text p {
        margin-bottom: 1.75rem;
        line-height: 1.8;
    }
    
    .card-text .text-primary {
        margin-top: 1.25rem;
        margin-bottom: 1.75rem;
        padding: 0.75rem 0;
    }
    
    .trust-link {
        margin-top: 2rem;
    }
}

/* Allgemeine Card-Styles für alle Bildschirmgrößen */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    background-color: var(--rohnke-blue);
    color: white;
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    line-height: 1.3;
}

.card-text {
    text-align: center;
    padding-bottom: 0;
}

/* Spezielle Abstände für Textblöcke - verhindert Überlappungen */
.card-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-text .text-primary {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    display: block;
    padding: 0.25rem 0;
    line-height: 1.5;
}

/* Zusätzliche Abstände für alle Bildschirmgrößen */
@media (min-width: 768px) {
    .card-text p {
        margin-bottom: 1.25rem;
    }
    
    .card-text .text-primary {
        margin-top: 1rem;
        margin-bottom: 1.25rem;
    }
}

/* Vertrauenskacheln: Trust-Label und Link */

/* Vertrauenskacheln: Trust-Label und Link */

.trust-link:hover, .trust-link:focus {
    text-decoration: underline;
}

/* ===== Trust-Bereich unten in den Karten – responsive & ohne Overlap ===== */
.card.h-100 .card-body{
    /* du hast hier bereits flex-column – perfekt für natürlichen Fluss */
    /* absolute Positionierung entfällt, daher kein extra padding unten nötig */
    padding-bottom: 1.25rem;
    min-height: auto; /* keine starre Höhe nötig */
  }
  
  /* Beide Zeilen im normalen Dokumentfluss platzieren */
  .trust-label,
  .trust-link{
    position: static;
    display: block;
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    line-height: 1.4;
    word-break: break-word; /* lange Wörter umbrechen */
    hyphens: auto;
  }
  
  /* Reihenfolge: erst grau, dann blau – unabhängig von der HTML-Reihenfolge */
  .trust-label{ order: 1; color: #6c757d; font-size: clamp(0.95rem, 0.9rem + .2vw, 1.05rem); }
  .trust-link{
    order: 2;
    margin-top: .4rem;
    color: var(--rohnke-blue);
    text-decoration: underline;
    font-weight: 600;
    font-size: clamp(1rem, 0.95rem + .25vw, 1.1rem);
  }
  
  /* Touch/Keyboard-Fokus gut sichtbar */
  .trust-link:focus-visible{
    outline: 2px solid var(--rohnke-blue);
    outline-offset: 2px;
  }
  
  /* Etwas mehr Luft vor dem Trust-Block */
  .card.h-100 .card-text{ margin-bottom: 1rem; }
  
  /* Kleine Screens: etwas mehr Abstand, bessere Lesbarkeit */
  @media (max-width: 575.98px){
    .trust-link{ margin-top: .55rem; }
    .card.h-100 .card-body{ padding: 1.5rem 1rem; }
  }

  .card-bottom{
    margin-top: auto;            /* schiebt den Block ans untere Ende */
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  

.trust-icon {
    font-size: 1.1rem;
    color: #6c757d;
    margin-right: 0.3em;
}
.card-title.fw-bold {
    font-weight: 700 !important;
    font-size: 1.18rem;
} 

/* ===== MOBILE NAVIGATION IMPROVEMENTS ===== */

/* Responsive Logo */
.navbar-brand img {
    height: 40px;
    transition: height 0.3s ease;
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 35px;
    }
}

@media (min-width: 992px) {
    .navbar-brand img {
        height: 50px;
    }
}

/* Mobile Menu Improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-radius: 0.5rem;
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #e9ecef;
        font-weight: 500;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
}

/* ===== HERO SECTION RESPONSIVE FIXES ===== */

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

.hero-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* Mobile Hero Adjustments */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-trust {
        font-size: 0.9rem !important;
    }
}

/* Tablet Hero Adjustments */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section h2 {
        font-size: 1.3rem;
    }
}

/* Large Mobile Hero */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
}

/* ===== CARD LAYOUT FIXES ===== */

/* Additional mobile optimizations for other card sections */
@media (max-width: 575.98px) {
    .card-title.fw-bold {
        font-size: 1rem;
        line-height: 1.3;
        min-height: auto;
        margin-bottom: 1rem;
    }
}

/* ===== TESTIMONIALS SECTION IMPROVEMENTS ===== */
.testimonials-section .card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonials-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.testimonials-section .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonials-section .card-text {
    flex-grow: 1;
    margin-bottom: 0;
}

.testimonials-section h5 {
    margin-bottom: 1rem;
    color: var(--rohnke-blue);
    font-weight: 600;
}

/* ===== TESTIMONIALS SECTION MOBILE ===== */
@media (max-width: 767.98px) {
    .testimonials-section .row {
        gap: 1.5rem 0;
    }
    
    .testimonials-section .card {
        margin-bottom: 1rem;
    }
    
    .testimonials-section .card-body {
        padding: 1.5rem;
    }
}

/* ===== STATISTICS SECTION RESPONSIVE ===== */
@media (max-width: 575.98px) {
    .statistic-item {
        margin-bottom: 2rem;
    }
    
    .statistic-item h3 {
        font-size: 2.5rem;
    }
    
    .statistic-item:last-child {
        margin-bottom: 0;
    }
}

/* ===== CONTACT FORM MOBILE OPTIMIZATIONS ===== */
@media (max-width: 575.98px) {
    #kontakt-sektion .card {
        margin: 0 0.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        margin-bottom: 1rem;
    }
}

/* ===== FOOTER RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 767.98px) {
    footer .row {
        text-align: center;
    }
    
    footer .col-md-6,
    footer .col-md-3 {
        margin-bottom: 2rem;
    }
    
    footer .col-md-6:last-child,
    footer .col-md-3:last-child {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    footer {
        padding: 2rem 0 1rem 0;
    }
    
    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    footer p, footer li {
        font-size: 0.9rem;
    }
    
    .recaptcha-notice {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
} 

/* ===== LAZY LOADING OPTIMIZIERUNG ===== */

/* Aspect Ratio Container für Bilder */
.img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.img-container::before {
    content: '';
    display: block;
    padding-top: var(--aspect-ratio, 56.25%); /* Default 16:9 */
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Spezifische Aspect Ratios */
.aspect-ratio-1-1::before { padding-top: 100%; }
.aspect-ratio-4-3::before { padding-top: 75%; }
.aspect-ratio-16-9::before { padding-top: 56.25%; }
.aspect-ratio-3-2::before { padding-top: 66.67%; }

/* Lazy Loading Placeholder */
.lazy-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: inherit;
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Smooth Loading Transition */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Fallback für ältere Browser */
@supports not (aspect-ratio: 1) {
    .img-container::before {
        display: none;
    }
    
    .img-container img {
        position: static;
        width: 100%;
        height: auto;
    }
}

/* Performance-Optimierung für kritische Bilder */
.critical-image {
    /* Verwende loading="eager" und fetchpriority="high" als HTML-Attribute */
    display: block;
}

/* Lazy Loading für Hintergrundbilder */
.lazy-bg {
    background-image: none;
    background-color: #f8f9fa;
    transition: background-image 0.3s ease-in-out;
}

.lazy-bg.loaded {
    background-color: transparent;
}

/* Intersection Observer Fallback */
@media (prefers-reduced-motion: reduce) {
    img[loading="lazy"] {
        transition: none;
    }
    
    .lazy-placeholder {
        animation: none;
        background: #f0f0f0;
    }
} 

/* ===== LOGO OPTIMIERUNGEN ===== */

/* Logo in der Kontaktkarte - verhindert Verzerrung */
.contact-card .card-body img[alt*="Logo"] {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    /* Verhindert Verzerrung durch feste Dimensionen */
    aspect-ratio: auto;
}

/* Fallback für ältere Browser */
@supports not (aspect-ratio: auto) {
    .contact-card .card-body img[alt*="Logo"] {
        width: auto;
        height: 80px;
    }
}

/* Responsive Logo-Größen für verschiedene Bildschirmgrößen */
@media (max-width: 767.98px) {
    .contact-card .card-body img[alt*="Logo"] {
        height: 60px;
    }
}

@media (min-width: 768px) {
    .contact-card .card-body img[alt*="Logo"] {
        height: 80px;
    }
}

/* Logo-Container für bessere Kontrolle */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
} 

/* ===== EINFACHE & ELEGANTE BILDINTEGRATION ===== */

/* Einfacher Wrapper für das Bild */
.simple-image-wrapper {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
    padding: 0.25rem;
}

.simple-image-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Das Bild selbst - einfache, elegante Darstellung */
.simple-professional-image {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.simple-image-wrapper:hover .simple-professional-image {
    transform: scale(1.01);
}

/* Subtiler Rahmen-Effekt */
.simple-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(27, 90, 157, 0.1);
    border-radius: 0.75rem;
    pointer-events: none;
}

/* Responsive Anpassungen */
@media (max-width: 991.98px) {
    .simple-image-wrapper {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .simple-image-wrapper {
        padding: 0.125rem;
    }
    
    .simple-image-wrapper:hover {
        transform: translateY(-2px);
    }
} 

/* Portrait von Marc Rohnke - kleinere Darstellung */
.portrait-marc {
    max-width: 300px;
    max-height: 400px;
    margin: 0 auto;
    display: block;
}

/* Kompakte Bilddarstellung für bessere Proportionen */
.compact-image {
    max-width: 95%;
    margin: 0 auto;
    padding: 1.5rem;
}

.compact-image .simple-professional-image {
    max-height: 450px;
    object-fit: cover;
    object-position: center 40%;
    width: 100%;
}

/* Responsive Anpassungen für kompakte Bilder */
@media (max-width: 991.98px) {
    .compact-image {
        max-width: 100%;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .compact-image .simple-professional-image {
        max-height: 350px;
        object-position: center 40%;
    }
}

@media (max-width: 575.98px) {
    .compact-image {
        padding: 0.75rem;
    }
    
    .compact-image .simple-professional-image {
        max-height: 280px;
        object-position: center 40%;
    }
} 

/* ===== ZITAT-AUTOR BILD ===== */

/* Container für das Zitat-Autor-Bild */
.quote-author-section {
    margin-top: 1.5rem;
}

/* Rundes Bild des Autors */
.quote-author-image {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.quote-author-image img {
    width:200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
    border: 3px solid var(--rohnke-blue);
    box-shadow: 0 4px 12px rgba(27, 90, 157, 0.2);
    transition: all 0.3s ease;
    display: block;
}

.quote-author-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(27, 90, 157, 0.3);
}

/* Responsive Anpassungen für das Autor-Bild */
@media (max-width: 575.98px) {
    .quote-author-image img {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 768px) {
    .quote-author-image img {
        width: 140px;
        height: 140px;
    }
} 

/* ===== KONTAKT HERO SECTION ===== */

/* Kontakt Hero Section mit Hintergrundbild */
.kontakt-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/Detailaufnahmen_Unfallschaden.JPG') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    position: relative;
}

.kontakt-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.kontakt-hero-section .container {
    position: relative;
    z-index: 2;
}

/* Responsive Anpassungen für Kontakt Hero */
@media (max-width: 575.98px) {
    .kontakt-hero-section {
        padding: 60px 0;
    }
    
    .kontakt-hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .kontakt-hero-section .lead {
        font-size: 1.1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .kontakt-hero-section h1 {
        font-size: 2.8rem;
    }
    
    .kontakt-hero-section .lead {
        font-size: 1.3rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .kontakt-hero-section h1 {
        font-size: 3rem;
    }
} 

/* ===== KONTAKT-INFORMATIONEN CONTAINER ===== */

/* Container für Kontaktinformationen */
.contact-info-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--rohnke-blue);
}

/* Verbesserte Kontaktkarten */
.contact-info-card .contact-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.contact-info-card .contact-card:hover {
    text-decoration: none;
    color: inherit;
}

/* Icons in den Kontaktkarten */
.contact-info-card .feature-icon {
    background: var(--rohnke-blue) !important;
    border: 3px solid rgba(27, 90, 157, 0.1);
    transition: all 0.3s ease;
}

.contact-info-card:hover .feature-icon {
    border-color: var(--rohnke-blue);
    transform: scale(1.1);
}

/* Responsive Anpassungen */
@media (max-width: 767.98px) {
    .contact-info-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .contact-info-card {
        padding: 1.25rem 0.75rem;
    }
} 

/* ===== ABOUT TEXT CONTENT ===== */
.about-text-content {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

.about-text-content p {
    line-height: 1.7;
    font-size: 1.1rem;
    color: #333;
}

.about-text-content .lead {
    font-size: 1.3rem;
    color: var(--rohnke-blue);
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

.about-text-content strong {
    color: var(--rohnke-blue);
    font-weight: 600;
}

/* Responsive Anpassungen für About Text */
@media (max-width: 991.98px) {
    .about-text-content {
        text-align: center;
    }
    
    .about-text-content p {
        font-size: 1rem;
    }
    
    .about-text-content .lead {
        font-size: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .about-text-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .about-text-content .lead {
        font-size: 1.1rem;
    }
} 