/* Global Styles */
:root {
    --primary-color: #e60000;
    --secondary-color: #242424;
    --accent-color: #ff4444;
    --text-color: #ffffff;
    --text-dark: #333333;
    --background-color: #1a1a1a;
    --card-bg: #2a2a2a;
    --border-color: #383838;
    --hover-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --light-bg: #f5f5f5;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
    box-shadow: none;
}

.btn i {
    font-size: 0.95em;
}

.btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: none;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Header Styles */
header {
    background-color: rgba(20, 20, 20, 0.98);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/teufel_logo.jpg') center center;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.08;
    filter: grayscale(100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.92), rgba(26, 26, 26, 0.97));
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 16px;
    color: var(--text-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.08rem;
    margin-bottom: 22px;
    color: #cccccc;
}

/* Angebote Section */
.angebote {
    padding: 100px 0;
    background-color: var(--background-color);
}

.angebot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 600px) {
    .angebot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .angebot-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.angebot-card {
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    background: var(--card-bg);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 420px;
    overflow: hidden;
    position: relative;
}

.favorite-banner {
    position: absolute;
    top: -5px;
    right: -5px;
    overflow: hidden;
    width: 200px;
    height: 200px;
    z-index: 2;
    opacity: 1;
}

.favorite-banner::before {
    content: "Favorit";
    position: absolute;
    display: block;
    width: 250px;
    padding: 15px 0;
    background-color: var(--primary-color);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    right: -25px;
    top: 50px;
    transform: rotate(45deg);
}

.angebot-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transform: translateY(-6px) scale(1.02);
}

.angebot-image {
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    height: 220px;
    position: relative;
}

.angebot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.angebot-card:hover .angebot-image img {
    transform: scale(1.05);
}

.angebot-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.angebot-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

.angebot-info p {
    color: #bbbbbb;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

.angebot-preis {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 12px;
}

@media (max-width: 600px) {
    .angebot-card {
        height: 380px;
    }
    
    .angebot-image {
        height: 180px;
    }
}

/* Über Uns Section */
.ueber-uns {
    padding: 100px 0;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.ueber-uns::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/teufel_logo.jpg') center center;
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.ueber-uns-content {
    position: relative;
    z-index: 1;
}

.ueber-uns-text {
    flex: 1;
    min-width: 300px;
}

.ueber-uns-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.ueber-uns-features {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.feature {
    background-color: rgba(42, 42, 42, 0.9);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--hover-transition);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.feature:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background-color: rgba(50, 50, 50, 0.95);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Kontakt Section */
.kontakt {
    padding: 100px 0;
    background-color: var(--background-color);
}

.kontakt-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.kontakt-info {
    flex: 1;
    min-width: 300px;
}

.kontakt-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.kontakt-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.kontakt-item p {
    margin-right: 15px;
}

.support-name {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kontakt-form {
    flex: 2;
    min-width: 300px;
}

/* Klassisches Formular-Design */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    position: static;
    left: unset;
    top: unset;
    transform: none;
    background: none;
    padding: 0;
    pointer-events: auto;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    color: #222;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-shadow: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background: #fff;
    color: #222;
}

.form-group .form-error,
.form-group .error {
    color: #e60000;
    font-size: 0.97rem;
    margin-top: 4px;
    margin-bottom: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.3;
    display: block;
}

.form-group .form-hint,
.form-group .hint {
    color: #888;
    font-size: 0.93rem;
    margin-top: 4px;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.3;
    display: block;
}

@media (max-width: 600px) {
    .form-group input,
    .form-group textarea {
        font-size: 0.97rem;
        padding: 10px 10px;
    }
    .form-group label {
        font-size: 0.97rem;
    }
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-social {
    flex: 1;
    min-width: 150px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--card-bg);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.social-icons i {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--hover-transition);
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .angebot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .hero-content p {
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .angebote, .ueber-uns, .kontakt {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 60px;
        min-height: 90vh;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .angebote, .ueber-uns, .kontakt {
        padding: 60px 0;
    }
    
    .ueber-uns-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-logo, .footer-links, .footer-social {
        width: 100%;
    }

    .angebot-info h3 {
        font-size: 1.3rem;
    }

    .angebot-info p {
        font-size: 0.95rem;
    }

    .angebot-card {
        height: auto;
        min-height: 400px;
    }

    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .form-group .form-error,
    .form-group .error {
        font-size: 0.9rem;
    }
    
    .kontakt-form .btn {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .angebote, .ueber-uns, .kontakt {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

/* Fix für Navigationsmenü auf Mobilgeräten */
@media (max-width: 899px) {
    header .container {
        padding: 10px 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 1rem;
    transition: bottom 0.3s;
    z-index: 1000;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

@media screen and (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Burger Menü */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
    margin-left: auto;
}
.burger span {
    display: block;
    width: 28px;
    height: 3.5px;
    margin: 4px 0;
    background: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s;
}
.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
    opacity: 0;
}
.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
#main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--background-color);
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(.77,0,.18,1);
    z-index: 1100;
}
#main-nav.open {
    transform: translateY(0);
}
#main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}
#main-nav ul li a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1px;
    transition: color 0.2s;
}
#main-nav ul li a:hover {
    color: var(--accent-color);
}
@media (min-width: 900px) {
    .burger {
        display: none;
    }
    #main-nav {
        position: static;
        height: auto;
        width: auto;
        background: none;
        transform: none;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
    }
    #main-nav ul {
        flex-direction: row;
        gap: 2.2rem;
    }
    #main-nav ul li a {
        font-size: 1.1rem;
        font-weight: 500;
    }
}
.angebot-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.hero-content h1 {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 16px;
}
@media (min-width: 600px) {
    .hero-content h1 {
        font-size: 2.7rem;
    }
}
@media (min-width: 1100px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
}
.hero-content p {
    font-size: 1.08rem;
    margin-bottom: 22px;
}
@media (min-width: 600px) {
    .hero-content p {
        font-size: 1.18rem;
    }
}
@media (max-width: 600px) {
    .btn {
        font-size: 0.97rem;
        padding: 10px 16px;
    }
}

/* iPhone und kleinere Geräte */
@media (max-width: 428px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.7rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .angebote, .ueber-uns, .kontakt {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.8rem;
    }
    
    .angebot-grid {
        gap: 1.5rem;
    }
    
    .angebot-card {
        min-height: 360px;
        height: auto;
    }
    
    .angebot-image {
        height: 160px;
    }
    
    .angebot-info {
        padding: 15px;
    }
    
    .angebot-info h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .angebot-info p {
        margin-bottom: 10px;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .angebot-preis {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .ueber-uns-features {
        gap: 1.2rem;
    }
    
    .feature {
        padding: 20px 15px;
    }
    
    .feature i {
        font-size: 2rem;
    }
    
    .feature h3 {
        font-size: 1.1rem;
    }
    
    .feature p {
        font-size: 0.9rem;
    }
    
    .kontakt-content {
        gap: 1.5rem;
    }
    
    .kontakt-item {
        margin-bottom: 15px;
    }
    
    .kontakt-item i {
        font-size: 1.3rem;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .footer-logo h2 {
        font-size: 1.4rem;
    }
    
    .footer-links h3, 
    .footer-social h3 {
        font-size: 1.1rem;
    }
    
    .footer-links ul li {
        margin-bottom: 8px;
    }
    
    .footer-links ul li a,
    .footer-bottom p {
        font-size: 0.9rem;
    }
    
    .burger span {
        width: 24px;
        height: 3px;
    }

    .kontakt-form {
        margin-top: 20px;
    }
    
    .kontakt-info {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .kontakt-item {
        padding: 10px;
        background-color: rgba(42, 42, 42, 0.3);
        border-radius: 8px;
        margin-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
    }
    
    textarea {
        min-height: 100px;
    }
}

/* iPhone SE und sehr kleine Geräte */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .angebot-image {
        height: 140px;
    }
    
    .angebot-info h3 {
        font-size: 1.1rem;
    }
    
    .angebot-info p {
        font-size: 0.85rem;
    }
    
    .angebot-preis {
        font-size: 0.95rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
}

/* Verbesserte Touchflächen für mobile Geräte */
@media (max-width: 768px) {
    .btn, 
    .social-icons a,
    .kontakt-item i,
    nav ul li a,
    .back-link a {
        padding: 10px;  /* Mindestens 44x44px Touch-Target nach WCAG */
    }
    
    .social-icons a {
        width: 44px;
        height: 44px;
    }
    
    nav ul li {
        margin-left: 15px;
    }
    
    #main-nav ul li a {
        font-size: 1.8rem;  /* Größere Schrift im Mobile-Menü */
    }
    
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content {
        gap: 15px;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Touch-Optimierungen */
@media (hover: none) {
    .btn, 
    .social-icons a,
    .kontakt-item i,
    nav ul li a,
    .angebot-card,
    .footer-links a {
        transition: none; /* Entferne Hover-Effekte auf Touch-Geräten */
    }
    
    .btn:active,
    .social-icons a:active,
    nav ul li a:active {
        transform: scale(0.98); /* Alternative Feedback-Effekte */
    }
}

/* Radio button validation styles */
.invalid-radio .radio-square {
    border-color: #ff3333 !important;
    background-color: rgba(255, 51, 51, 0.05);
}

.radio-square-group .error-message {
    color: #ff3333;
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    display: block;
}

/* Form message styles */
.form-message {
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
    font-weight: 500;
}

.form-message.error {
    background-color: rgba(255, 51, 51, 0.1);
    border-left: 4px solid #ff3333;
    color: #ff3333;
}

.form-message.success {
    background-color: rgba(75, 181, 67, 0.1);
    border-left: 4px solid #4bb543;
    color: #4bb543;
} 