/* Grundkonfiguration & Typografie */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Verdana', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Navigationsleiste */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #dc0607;
    z-index: 1000;
    height: 80px;
    border-bottom: solid 4pt #ffffff;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    position: relative;
    padding: 10px 0;
    transition: color 0.4s ease;
}

/* Linien-Animation über/unter Menüpunkten mit Drehung */
.nav-links a::before,
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transition: transform 0.4s ease;
    transform: scaleX(0) rotate(0deg);
}

.nav-links a::before { top: 0; transform-origin: left; }
.nav-links a::after { bottom: 0; transform-origin: right; }

.nav-links a:hover {
    color: #feffb4;
}

.nav-links a:hover::before {
    transform: scaleX(1) rotate(2deg);
}

.nav-links a:hover::after {
    transform: scaleX(1) rotate(-2deg);
}

/* Burger Menü (Mobil) */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Slider Bereich (Proportional ohne Beschnitt) */
.hero-slider {
    margin-top: 80px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-areas: "slide";
}

.slide {
    grid-area: slide;
    width: 100%;
    opacity: 0;
    z-index: 1;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.4, 1);
}

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

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Garantiert null Beschnitt */
}

/* Wechselnde Slider-Übergänge (gesteuert via JS) */
.slide[data-transition="fade"] { transform: scale(1); }
.slide[data-transition="fade"].active { opacity: 1; }


/* Inhaltsbereich & Spalten-Layouts */
.content {
    max-width: 1700px;
    margin: 5px auto;
    padding: 0 20px;
}

section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 15px 0;
    border: solid 0px #00ff00;
}

.column {
    flex: 1 1 300px;
    border-bottom: solid 8px #ee6300;
    border-right: dashed 1px #a4a4a4;
    background-color: #f4f4f4;
    padding: 20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

/* Spezifische Spaltenverhältnisse */
.layout-60-40 .col-60 { flex: 3 1 55%; }
.layout-60-40 .col-40 { flex: 2 1 35%; }
.layout-100 .column-100 { flex: 1 1 100%; }

.layout-40-60 .col-40 { flex: 2 1 35%; }
.layout-40-60 .col-60 { flex: 3 1 55%; }

.layout-50-50 .col-half { 
    flex: 1 1 calc(50% - 20px); /* Teilt den Platz exakt zu je 50% abzüglich des Spaltenabstands */
    color: #ff00ff;
    font-size: 16px;
    line-height: 1.6;
}



/* Inhalts-Typografie & Medien */
.column h2 {
    font-size: 1.2rem; /* 20% größer als Basistext (1rem) */
    font-weight: bold;
    color: #dc0607;
    margin-bottom: 15px;
}

.column p {
    font-size: 1.1rem;
    color: #3c3c3c;
    line-height: 1.65;
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}


	.responsive-img2 {
	    width: 100%;
	    height: auto;
	    display: block;
	    object-fit: contain;
	    margin-top: 20px;
	    border-radius: 6px;
	    border-bottom: solid 0px #ee6300;
	    border-right: dashed 0px #a4a4a4;
	    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
	}






/* Transparentes Bild mit Textumfluss entlang der Alpha-Kanten */
.shape-img {
    float: left;
    height: auto;
    margin-right: 25px;
    margin-bottom: 10px;
    object-fit: contain;
    border: solid 0px #ff0000;
    /* Nutzt den Alpha-Kanal des PNGs für den Textumfluss */
    shape-outside: url(../img/transparent-image.png);
    shape-image-threshold: 0.5;
}


	/* Transparentes Bild mit Textumfluss entlang der Alpha-Kanten */
	.shape-img2 {
	    float: right;
	    height: auto;
	    margin-left: 5px;
	    margin-bottom: 5px;
	    object-fit: contain;
	    border: solid 0px #ff0000;
	}

		/* Transparentes Bild mit Textumfluss entlang der Alpha-Kanten */
		.shape-img3 {
		    height: auto;
		    margin-left: 10px;
		    margin-bottom: 10px;
		    margin-top: 10px;
		    object-fit: contain;
		    border: solid 0px #ff0000;
		    /* Nutzt den Alpha-Kanal des PNGs für den Textumfluss */
		    shape-outside: url(../img/transparent-image.png);
		    shape-image-threshold: 0.5;
		}	

/* Footer Bereich */
.footer {
    background-color: #ee6300;
    width: 100%;
    padding: 20px 0 40px 0px;
    margin-top: 60px;
    border-top: solid 8pt #080100;
    text-align: center;
}

.footer-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.footer-links a, .footer-text {
    color: #ffffff;
    text-decoration: none;
}

.footer-links a:hover {
    color: #feffb4;
}


/* Responsive Media Queries (Mobile Ansicht) */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    /* Ausblendung / Transformation der Desktop-Navigation */
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #000000;
        opacity: 0.85;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.open {
        left: 0;
    }

    .nav-links a {
        color: #ffffff;
        font-size: 24px;
    }

    .nav-links a:hover {
        color: #ee6300;
    }
    
    /* Linien-Effekt im Mobilmenü deaktivieren für sauberen Look */
    .nav-links a::before, .nav-links a::after {
        display: none;
    }

    /* Burger-Animation bei aktivierung */
    .burger-menu.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .burger-menu.open span:nth-child(2) { opacity: 0; }
    .burger-menu.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Spalten brechen mobil auf 100% um und werden gedeckelt */
    section {
        flex-direction: column;
        gap: 30px;
    }
    
    .layout-60-40 .col-60, .layout-60-40 .col-40,
    .layout-40-60 .col-40, .layout-40-60 .col-60,
    .layout-100 .column-100, 
    .col-half {
        flex: 1 1 100% !important; /* Lässt die 50%-Spalten auf dem Smartphone auf 100% Breite springen */
    .layout-thirds .column {
        flex: 0 0 100%; /* Verhindert das Aufblähen durch Flexbox */
        width: 100%;    
        max-width: 100%;
        box-sizing: border-box; /* Garantiert, dass Padding innen berechnet wird */
    } 

}
    

}


/* Styling für Aufzählungslisten im Inhalt */
.content-list {
    list-style-image:url(../img/reifen.png); /* Quadratische Aufzählungspunkte passend zum modernen Look */
    margin-top: 10px;
    margin-left: 20px; /* Schafft Platz für die Aufzählungspunkte */
}

.content-list li {
    font-size: 1.1rem;
    color: #080100; /* Exakt dasselbe Neon-Magenta wie der Fließtext */
    line-height: 1.8; /* Etwas mehr Zeilenabstand für bessere Lesbarkeit */
    padding-left: 5px;
}

/* Optional: Farbe der Aufzählungspunkte anpassen */
.content-list li::marker {
    color: #000; /* Die Quadrate leuchten im selben Gelb wie die Überschriften */
}


/* Styling für die flexible Tabelle */
.content-table {
    width: 100%; /* Passt sich automatisch der Breite der Section an */
    border-collapse: collapse; /* Verhindert doppelte Rahmen */
    margin-top: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;  
    overflow-x: auto; /* Erlaubt horizontales Scrollen NUR innerhalb der Tabelle, falls nötig */ 
}



/* Gemeinsame Zelleneigenschaften */
.content-table td {
    padding: 10px 5px;
    vertical-align: middle; /* Wichtig: Zentriert den Inhalt vertikal */
    border: 0px solid #00ff00; /* Optional: Ein feiner Rahmen im Neon-Magenta */
}

/* Linke Zelle (Bild-Spalte) */
.table-img-cell {

    text-align: center;
}

/* Bild-Verhalten innerhalb der Zelle */
.table-responsive-img {
    max-width: 100%; /* Bild bricht nicht aus der Zelle aus */
    height: auto; /* Behält das Seitenverhältnis bei */
    display: block;
}


/* Rechte Zelle (Text-Spalte) */
.table-text-cell {
    width: 90%; /* Restliche Breite für den Text */
    text-align: left; /* Text wird linksbündig ausgerichtet */
    font-size: 1.1rem;
}

.table-text-cell p {
    color: #080100; /* Identisches Neon-Magenta wie dein Fließtext */
    margin: 0; /* Entfernt Standard-Abstände für perfekte Zentrierung */
}

.table-img-cell img {
    margin: 0 auto; /* Zentriert die Icons, wenn sie untereinanderstehen */
}





	/* Styling für die flexible Tabelle */
	.content-table2 {
	    width: 100%; /* Passt sich automatisch der Breite der Section an */
	    border-collapse: collapse; /* Verhindert doppelte Rahmen */
	    margin-top: 5px;
	    margin-bottom: 8px;
	    font-size: 0.85rem;  
	    overflow-x: auto; /* Erlaubt horizontales Scrollen NUR innerhalb der Tabelle, falls nötig */ 
	}
	
	
	
	/* Gemeinsame Zelleneigenschaften */
	.content-table2 td {
	    padding: 3px;
	    vertical-align: middle; /* Wichtig: Zentriert den Inhalt vertikal */
	    border: 0px solid #00ff00; /* Optional: Ein feiner Rahmen im Neon-Magenta */
	    font-size: 0.85rem;  
	}
	
	/* Linke Zelle (Bild-Spalte) */
	.table-img-cell2 {
	    text-align: center;
	    font-size: 0.85rem;  
	}
	
	/* Bild-Verhalten innerhalb der Zelle */
	.table-responsive-img2 {
	    max-width: 100%; /* Bild bricht nicht aus der Zelle aus */
	    height: auto; /* Behält das Seitenverhältnis bei */
	    display: block;
	    font-size: 0.85rem;  
	}
	
	
	/* Mittlere Zelle (Text-Spalte) */
	.table-text-cell1 {
	    width: 42%; /* Restliche Breite für den Text */
	    text-align: left; /* Text wird linksbündig ausgerichtet */
	    font-size: 0.85rem;  
	}
	
	/* Rechte Zelle (Text-Spalte) */
	.table-text-cell2 {
	    width: 35%; /* Restliche Breite für den Text */
	    text-align: left; /* Text wird linksbündig ausgerichtet */
	    font-size: 0.85rem;  
	}
	
	/* Rechte Zelle (Text-Spalte) */
	.table-text-cell3 {
	    font-size: 0.85rem;
	    width: 15%; /* Restliche Breite für den Text */
	    text-align: left; /* Text wird linksbündig ausgerichtet */
	}
	
	
	.table-text-cell2 p {
	    font-size: 0.85rem;  
	    color: #080100; /* Identisches Neon-Magenta wie dein Fließtext */
	    margin: 0; /* Entfernt Standard-Abstände für perfekte Zentrierung */
	}
	
	.table-text-cell3 p {
	    font-size: 0.85rem;  
	    color: #080100; /* Identisches Neon-Magenta wie dein Fließtext */
	    margin: 0; /* Entfernt Standard-Abstände für perfekte Zentrierung */
	}	
	
	.table-img-cell2 img {
	    font-size: 0.85rem;  
	    margin: 0 auto; /* Zentriert die Icons, wenn sie untereinanderstehen */
	}



/* Styling für Links im Fließtext */
.text-link {
    color: #dc0607; /* Startfarbe: Rot */
    text-decoration: none; /* Unterstreichung für bessere Erkennbarkeit */
    transition: color 0.3s ease; /* Erzeugt einen weichen, fließenden Farbübergang */
}

/* Zustand beim Überfahren mit der Maus (Hover) */
.text-link:hover {
    color: #ee6300; /* Zielfarbe: Orange */
}


/* Scroll-To-Top Pfeilsymbol rechts unten */
.scroll-top-arrow {
    position: fixed;
    bottom: 60px; /* Leicht über dem Footer platziert */
    right: 20px;
    background-color: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 15%;
    border: solid 1pt #ffffff;
    z-index: 999;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.scroll-top-arrow.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-arrow:hover {
    transform: scale(1.1);
    background-color: #ffffff;
    opacity: 0.8;
    color: #dc0607;
}

/* Verhindert, dass ununterbrochene Texte (wie lange E-Mails oder Telefonnummern) die Boxen sprengen */
.column p, .column a, .table-text-cell p {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Optimierung für die Kontakt-Tabelle auf Mobilgeräten */
@media (max-width: 768px) {
    /* Setzt die Tabellenzellen untereinander, damit alles sauber Platz hat */
    .content-table tbody, 
    .content-table tr, 
    .content-table td {
        display: block;
        width: 100% !important;
        text-align: left;
    }
    
    .table-img-cell {
        margin-bottom: 5px; /* Abstand zwischen Icon und Text */
    }
    
    .table-text-cell {
        margin-bottom: 20px; /* Abstand zum nächsten Block */
    }
}

.blinkender-text {
  /* Name der Animation, Dauer (8 Sekunden), Kurve (sanft), Endlosschleife */
  animation: einAusBlenden 8s ease-in-out infinite;
}

/* Hier wird der Ablauf der Animation definiert */
@keyframes einAusBlenden {
  0%, 100% { opacity: 0; }  /* Start und Ende unsichtbar */
  30%, 70% { opacity: 1; }  /* Bleibt zwischen 30% und 70% der Zeit voll sichtbar */
}

