/* ==========================================================================
   C&B BAUSTOFFE & ZAUNSYSTEME
   PREMIUM STYLE & RESPONSIVE UPGRADE (Original-Zustand beibehalten)
   ========================================================================== */

:root {
    --orange: #ff6b00;
    --orange-light: #ff8c2f;
    --dark: #050505;
    --dark-2: #0d0d0d;
    --dark-3: #141414;
    --white: #ffffff;
    --gray: #c7c7c7;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --max-width: 1280px;
}

/* ===================================
RESET & BASE
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===================================
SCROLL-ANIMATION CLASSES (JS linked)
=================================== */
.service-card, .gate-card, .befestigung-card, .product-card, .adv-card, .hero-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card.show, .gate-card.show, .befestigung-card.show, .product-card.show, .adv-card.show, .hero-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
CONTAINER & SECTIONS
=================================== */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section {
    padding: 120px 0;
}

.dark-section {
    background: var(--dark-2);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header span {
    color: var(--orange);
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-weight: 700;
    display: block;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-top: 15px;
    line-height: 1.2;
    font-weight: 800;
}

.section-header p {
    max-width: 700px;
    margin: 20px auto 0;
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ===================================
HEADER & NAVBAR
=================================== */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: background 0.4s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 5%;
    max-width: var(--max-width);
    margin: 0 auto;
    transition: 0.4s ease;
}

.header:has(.navbar.scrolled) {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.navbar.scrolled {
    padding: 15px 5%;
}

.logo img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.03);
}

.logo img, .footer-logo img {
    pointer-events: none;
    cursor: default !important;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu a {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--orange);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 12px 26px;
    background: var(--orange);
    border-radius: 50px;
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.nav-btn:hover {
    transform: translateY(-3px);
    background: var(--orange-light);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 50px;
    transition: 0.3s ease;
}

/* ===================================
MOBILE MENU
=================================== */
.mobile-menu {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    height: 100vh;
    background: #050505;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10000;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.6rem;
    color: white;
    font-weight: 700;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--orange);
}

.mobile-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.2rem;
    cursor: pointer;
    color: white;
    transition: transform 0.3s ease;
}

.mobile-close:hover {
    transform: rotate(90deg);
}

/* ===================================
HERO SECTION
=================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(90deg, rgba(0,0,0,0.85), rgba(0,0,0,0.55)), url("assets/hero-fence.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-left h1 {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-left p {
    max-width: 600px;
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.hero-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.hero-list i {
    color: var(--orange);
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 16px 32px;
    background: var(--orange);
    border-radius: 50px;
    font-weight: 700;
    color: white;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-4px);
    background: var(--orange-light);
    box-shadow: 0 12px 24px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    padding: 16px 32px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    font-weight: 700;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.btn-secondary:hover {
    transform: translateY(-4px);
    border-color: white;
    background: rgba(255,255,255,0.05);
}

/* ===================================
HERO CARDS (Glassmorphism)
=================================== */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s;
}

.hero-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 0, 0.4);
    background: rgba(255, 255, 255, 0.07);
}

.hero-card i {
    font-size: 2.2rem;
    color: var(--orange);
    width: 50px;
    text-align: center;
}

.hero-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.hero-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===================================
SERVICES (Leistungen)
=================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--dark-3);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s, box-shadow 0.4s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--orange);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--orange);
    margin-bottom: 25px;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===================================
ZAUN BOX (Doppelstabmatten)
=================================== */
.zaun-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.zaun-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease;
}

.zaun-image img:hover {
    transform: scale(1.02);
}

.zaun-content h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 700;
}

.variant {
    padding: 20px;
    background: var(--dark-3);
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.variant:hover {
    border-color: rgba(255, 107, 0, 0.3);
}

.variant span {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--orange);
    display: block;
    margin-bottom: 5px;
}

.variant p {
    color: var(--gray);
    font-size: 0.95rem;
}

.color-row {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.color {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #1f1f1f;
    box-shadow: 0 0 0 2px transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--orange);
}

.green { background: #2f5f34; }
.anthracite { background: #3c4044; }
.black { background: #000000; }

.zaun-content p {
    color: var(--gray);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===================================
GATES (Toranlagen)
=================================== */
.gate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gate-card {
    background: var(--dark-3);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s;
}

.gate-card:hover {
    transform: translateY(-8px);
    border-color: var(--orange);
}

.gate-card img {
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.gate-card h3 {
    padding: 25px 25px 10px;
    font-size: 1.35rem;
}

.gate-card p {
    padding: 0 25px 30px;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===================================
BEFESTIGUNG
=================================== */
.befestigung-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.befestigung-card {
    background: var(--dark-3);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.befestigung-card:hover {
    transform: translateY(-5px);
}

.befestigung-card img {
    max-height: 260px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.befestigung-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.befestigung-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===================================
ZUBEHÖR (Kompaktes Grid Layout)
=================================== */
.zubehoer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--dark-3);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--orange);
}

.product-card img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
    background: #000;
}

.product-card h3 {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
}

/* ===================================
ADVANTAGES (Vorteile)
=================================== */
.advantages {
    padding: 100px 0;
    background: #090909;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.adv-card {
    background: var(--dark-3);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.adv-card i {
    font-size: 2.5rem;
    color: var(--orange);
    margin-bottom: 20px;
    display: inline-block;
}

.adv-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.adv-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===================================
CONTACT SECTION & FORM
=================================== */
.contact-section {
    padding: 120px 0;
    background: var(--dark);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: start;
}

.contact-form-box {
    background: #0b0f17;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 40px;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.input-group input,
.input-group textarea {
    background: #050505;
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group textarea {
    min-height: 150px;
    resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 18px;
    margin-top: 15px;
    border-radius: 50px;
    background: var(--orange);
    color: white;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background: #ff8128;
    transform: translateY(-2px);
}

.privacy-text {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #bdbdbd;
    line-height: 1.4;
}

.privacy-text a {
    color: #fff;
    text-decoration: underline;
}

/* SIDEBAR & LEGAL CARDS */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: #0b0f17;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.contact-card h3 {
    margin-bottom: 18px;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.contact-card p {
    margin-bottom: 14px;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-card i {
    color: var(--orange);
    margin-right: 10px;
    width: 16px;
}

.contact-sidebar .contact-card a {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: white;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.contact-sidebar .contact-card a:hover {
    color: var(--orange);
}

/* ===================================
PREMIUM FOOTER
=================================== */
.premium-footer {
    background: #040404;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 30px;
}

.footer-logo img {
    width: 110px;
    height: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.footer-links a {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111827;
    color: white;
    transition: background 0.3s, transform 0.3s;
}

.footer-social a:hover {
    background: var(--orange);
    transform: translateY(-4px);
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    color: #bdbdbd;
    font-size: 0.8rem;
}

/* ===================================
COOKIE BANNER PREMIUM
=================================== */
body.cookie-lock {
    overflow: hidden;
}

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
}

.cookie-modal {
    width: 100%;
    max-width: 420px;
    background: #0b0f17;
    border: 2px solid var(--orange);
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
    animation: cookieOpen 0.4s ease;
}

.cookie-modal img {
    width: 90px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.cookie-modal h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.cookie-modal p {
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
    margin-bottom: 25px;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-bottom: 25px;
}

.cookie-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.cookie-options input {
    width: 18px;
    height: 18px;
    accent-color: var(--orange);
}

.cookie-btn {
    width: 100%;
    padding: 14px;
    background: var(--orange);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.cookie-btn:hover {
    background: #ff8128;
}

.cookie-btn-outline {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 2px solid var(--orange);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-btn-outline:hover {
    background: var(--orange);
}

@keyframes cookieOpen {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie-settings-btn {
    position: fixed;
    left: 25px;
    bottom: 25px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255,107,0,0.35);
    z-index: 999998;
    transition: transform 0.3s, background-color 0.3s;
}

.cookie-settings-btn:hover {
    transform: translateY(-4px) scale(1.05);
    background: #ff8128;
}

/* ===================================
LIGHTBOX
=================================== */
.image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.zoomable-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.zoomable-image:hover {
    transform: scale(1.02);
}

/* ===================================
GLOBAL MEDIA QUERIES (STABILITY UPGRADE)
=================================== */
@media (max-width: 1200px) {
    .navbar { padding: 20px 5%; }
    .hero-left h1 { font-size: 3.5rem; }
    .section-header h2 { font-size: 2.4rem; }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-left p, .hero-list {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-list li {
        justify-content: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .zaun-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    .footer-links { justify-content: center; }
    .footer-social { justify-content: center; }
    .footer-logo {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 10px; 
    }
    .footer-logo img {
        margin: 0 auto; 
    }
}

@media (max-width: 768px) {
    .nav-menu, .nav-btn {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .section {
        padding: 80px 0;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-form-box {
        padding: 25px;
    }
    .cookie-settings-btn {
        width: 50px;
        height: 50px;
        left: 15px;
        bottom: 15px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-left h1 { font-size: 2.4rem; }
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    .cookie-modal {
        padding: 25px 20px;
    }
    .cookie-modal h2 {
        font-size: 1.4rem;
    }

    .contact-card p {
        font-size: 0.80rem; 
    }
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(255, 107, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

.hero-buttons .btn-primary {
    animation: pulse-orange 2s infinite;
}


/* ==========================================================================
   NEUE SPEZIFISCHE ERGÄNZUNGEN FÜR DATENSCHUTZ & IMPRESSUM
   (Nahtlose Design-Integration für Premium-Glassmorphismus-Karten)
   ========================================================================== */

.legal-section {
    padding-top: clamp(140px, 18vh, 180px); /* Gewährleistet perfekten Abstand unter dem fixed Header */
    padding-bottom: 120px;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Premium-Rechtstexte-Karten */
.legal-card {
    background: var(--dark-2);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
}

.legal-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 0, 0.35); /* Edler orangefarbener Akzentrahmen bei Hover */
}

/* Modifikatoren für spezifische Layout-Varianten */
.legal-card.main-card {
    background: var(--glass);
    border-color: var(--glass-border);
}

.legal-card.highlight-card {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.02) 0%, rgba(5, 5, 5, 0) 100%);
    border-color: rgba(255, 107, 0, 0.2);
}

.legal-card.full-width {
    grid-column: 1 / -1;
}

/* Typografie & Dekorationen innerhalb der Textblöcke */
.card-icon {
    font-size: 2.2rem;
    color: var(--orange);
    margin-bottom: 20px;
    display: inline-block;
}

.legal-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
    letter-spacing: 0.5px;
}

.card-content p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 1rem;
}

.company-name {
    font-size: 1.2rem !important;
    font-weight: 700;
    color: var(--white) !important;
    margin-bottom: 8px;
}

/* Interaktive Kontakt-Links */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.contact-details a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.25s, transform 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.contact-details a i {
    color: var(--orange);
    font-size: 1rem;
}

.contact-details a:hover {
    color: var(--orange);
    transform: translateX(4px);
}

/* Strukturierte Listen für Nutzerrechte (Datenschutz) */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.legal-list li {
    color: var(--gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
}

.legal-list li i {
    color: #28a745; /* Stilvoller grüner Haken */
    font-size: 0.95rem;
}

/* Highlight-Plakette für Umsatzsteuer-ID & Register */
.ust-id {
    font-family: monospace;
    font-size: 1.15rem !important;
    font-weight: 700;
    color: var(--orange) !important;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
    border: 1px dashed rgba(255, 107, 0, 0.2);
}