/* ==========================================================================
   AMA AUTOTEILE - MAIN STYLESHEET (EXPANDED & PROFESSIONALIZED)
   Description: Premium, fully responsive CSS for car parts & vehicle trade.
   Colors: Dark Navy (#0a1c36) & Racing Red (#c1121f) matching Logo (Abbildung 1).
   ========================================================================== */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
    --primary-color: #0a1c36;
    /* Premium Dark Navy */
    --primary-light: #152e52;
    /* Lightened Navy for cards/gradients */
    --primary-dark: #050e1b;
    /* Deep Shadow Navy */
    --secondary-color: #c1121f;
    /* Racing Red from tire tracks */
    --secondary-light: #e63946;
    /* Bright Red hover accent */
    --secondary-glow: rgba(193, 18, 31, 0.15);
    --accent-silver: #f4f6f9;
    /* Metallic Silver Light Background */
    --accent-border: #e2e8f0;
    /* Fine border color */
    --text-dark: #1f2937;
    /* High contrast body text */
    --text-muted: #64748b;
    /* Secondary body text */
    --text-light: #f8fafc;
    /* High contrast text on dark background */
    --bg-light: #f8fafc;
    /* Page background */
    --bg-white: #ffffff;

    /* WhatsApp Green Brand Color */
    --whatsapp-color: #25d366;
    --whatsapp-hover: #20ba5a;

    /* Layout Constants */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1280px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 15px rgba(193, 18, 31, 0.3);
    --shadow-whatsapp: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* --- CORE BASICS --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- CONTAINER & GRID UTILITIES --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section-grey {
    background-color: var(--accent-silver);
}

.section-dark {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.section-dark h2,
.section-dark h3 {
    color: var(--text-light);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-header .subtitle {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.section-dark .section-header p {
    color: #94a3b8;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--accent-silver);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}

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

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* --- HEADER & NAVIGATION --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Dynamic Brand SVG Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo-icon {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.5rem 0.25rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

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

/* Dropdown Menu styling */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 280px;
    background-color: var(--bg-white);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 101;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    gap: 0.75rem;
}

.dropdown-link:hover {
    background-color: var(--accent-silver);
    color: var(--secondary-color);
    padding-left: 1.5rem;
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    transition: var(--transition);
}

.dropdown-link:hover .dropdown-icon {
    stroke: var(--secondary-color);
}

/* Mobile Toggle Hamburger button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 105;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* --- MOBILE DRAWER NAV --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    z-index: 102;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    overflow-y: auto;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--secondary-color);
}

.mobile-submenu {
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
    margin-top: 0.5rem;
    gap: 0.75rem;
    border-left: 2px solid var(--accent-border);
}

.mobile-submenu-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.mobile-submenu-link:hover {
    color: var(--secondary-color);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Toggle transformations */
.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 8rem 0 10rem;
    overflow: hidden;
    /* Diagonal Schnitt am Ende der Sektion */
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: var(--secondary-glow);
    border: 1px solid var(--secondary-color);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-light);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero h1 span {
    color: var(--secondary-light);
    display: block;
}

.hero p {
    font-size: 1.125rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-image-container:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-image-container img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

/* Background elements for depth */
.hero-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(193, 18, 31, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* --- INNER HERO (Subpages Banner) --- */
.inner-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 6rem 0 7rem;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.inner-hero h1 {
    font-size: 2.75rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--secondary-light);
}

.breadcrumbs span {
    color: var(--secondary-color);
}

/* --- SERVICES & CARDS --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-white);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(193, 18, 31, 0.2);
}

.service-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card-image img {
    transform: scale(1.08);
}

.service-card-number {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--secondary-color);
}

.service-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.service-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary-color);
    gap: 0.5rem;
}

.service-card-link svg {
    width: 16px;
    height: 16px;
    stroke: var(--secondary-color);
    transition: var(--transition);
}

.service-card:hover .service-card-link svg {
    transform: translateX(5px);
}

/* --- 3-STEP PROCESS SECTION ("So funktioniert Ihre Anfrage") --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 1rem;
}

.process-card {
    background-color: var(--bg-white);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.process-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    border: 3px solid var(--bg-light);
}

.process-icon {
    width: 55px;
    height: 55px;
    background-color: var(--accent-silver);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.process-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    stroke-width: 2;
    fill: none;
}

.process-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.process-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- TRUST AREA / VERTRAUENSBEREICH --- */
.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.trust-badge-card {
    background-color: var(--bg-white);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.trust-badge-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.trust-badge-icon {
    width: 42px;
    height: 42px;
    background-color: var(--secondary-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(193, 18, 31, 0.2);
}

.trust-badge-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--secondary-color);
    stroke-width: 2.5;
    fill: none;
}

.trust-badge-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

/* --- ACCORDION FAQ SYSTEM --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(10, 28, 54, 0.2);
}

.faq-header {
    width: 100%;
    padding: 1.25rem 1.75rem;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    gap: 1.5rem;
}

.faq-arrow {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 1.75rem;
    background-color: #fafbfc;
}

.faq-panel p {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-bottom: 1.25rem;
    line-height: 1.7;
}

.faq-item.active {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-header {
    color: var(--secondary-color);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    stroke: var(--secondary-color);
}

.faq-item.active .faq-panel {
    max-height: 200px;
    /* Adjust if needed */
    padding: 0.5rem 1.75rem 0.5rem;
}

/* --- CORE ADVANTAGES / LIST --- */
.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.advantages-image-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 480px;
}

.advantages-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.advantage-icon-box {
    background-color: var(--accent-silver);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--secondary-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.advantage-item:hover .advantage-icon-box {
    background-color: var(--primary-color);
    stroke: var(--text-light);
}

.advantage-item:hover .advantage-icon-box svg {
    stroke: var(--text-light);
}

.advantage-icon-box svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    stroke-width: 2;
    fill: none;
    transition: var(--transition);
}

.advantage-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.advantage-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- FORMS & FILE UPLOADS --- */
.form-card {
    background-color: var(--bg-white);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-full-width {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
    background-color: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.1);
}

/* Beautiful custom file upload design */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--accent-border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
    background-color: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.file-upload-wrapper:hover {
    border-color: var(--secondary-color);
    background-color: var(--bg-white);
}

.file-upload-wrapper svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-muted);
    fill: none;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

.file-upload-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--secondary-color);
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--secondary-color);
    margin-top: 0.15rem;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.4;
}

.checkbox-group label a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
}

.checkbox-group label a:hover {
    color: var(--secondary-light);
}

/* Form Submit container */
.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

/* General Alert message style after submit */
.form-success-message {
    display: none;
    background-color: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #065f46;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.form-success-message.active {
    display: flex;
    animation: fadeIn 0.4s ease-out;
}

/* --- TOAST SYSTEM (Custom AJAX feedback) --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-left: 5px solid var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.75rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 320px;
    max-width: 450px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-icon {
    width: 24px;
    height: 24px;
    stroke: var(--secondary-light);
    flex-shrink: 0;
}

.toast-content {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

/* --- STICKY FLOATING WHATSAPP BUTTON --- */
.whatsapp-float-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-whatsapp);
    z-index: 999;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.whatsapp-float-btn:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-5px) scale(1.08);
}

.whatsapp-float-btn svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

/* --- CONTACT DETAILS SECTION (Two Columns Layout) --- */
.contact-split-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-card-box {
    background-color: var(--bg-white);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(10, 28, 54, 0.15);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-silver);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-bottom: 2px solid var(--secondary-color);
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    stroke-width: 2;
    fill: none;
}

.contact-card-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-card-details p,
.contact-card-details a {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.contact-card-details a:hover {
    color: var(--secondary-color);
}

/* Social & External Channels (eBay / Kleinanzeigen) */
.social-channels {
    margin-top: 1rem;
}

.social-channels h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-light);
    background-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    justify-content: center;
}

.social-btn.ebay {
    background: linear-gradient(135deg, #0064d2 0%, #0039a6 100%);
}

.social-btn.ebay:hover {
    box-shadow: 0 0 15px rgba(0, 100, 210, 0.4);
    transform: translateY(-2px);
}

.social-btn.kleinanzeigen {
    background: linear-gradient(135deg, #4b9b07 0%, #367204 100%);
}

.social-btn.kleinanzeigen:hover {
    box-shadow: 0 0 15px rgba(75, 155, 7, 0.4);
    transform: translateY(-2px);
}

.social-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.social-btn.telegram:hover {
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.4);
    transform: translateY(-2px);
}

.social-btn.instagram {
    background: linear-gradient(135deg, #f9ed69 0%, #f08a5d 50%, #b83b5e 100%);
}

.social-btn.instagram:hover {
    box-shadow: 0 0 15px rgba(240, 138, 93, 0.4);
    transform: translateY(-2px);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 5rem 0 2rem;
    border-top: 5px solid var(--secondary-color);
    font-size: 0.95rem;
}

.footer h3,
.footer h4 {
    color: var(--text-light);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-light);
}

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

.footer-about p {
    line-height: 1.7;
}

.footer-links-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    color: #94a3b8;
    gap: 0.5rem;
}

.footer-link::before {
    content: '›';
    font-size: 1.2rem;
    color: var(--secondary-color);
    line-height: 1;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--text-light);
    padding-left: 0.25rem;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--secondary-color);
    stroke-width: 2;
    fill: none;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.footer-contact-item a:hover {
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
}

.footer-legal-links a {
    color: #94a3b8;
    font-weight: 500;
}

.footer-legal-links a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/* --- DETAILED SUBPAGE LAYOUTS --- */
.subpage-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: flex-start;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.detail-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.detail-gallery img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* --- DETAIL SLIDER SYSTEM --- */
.detail-slider-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16 / 10;
    max-height: 480px;
    background-color: var(--primary-dark);
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(10, 28, 54, 0.4);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.slider-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-glow);
    color: var(--text-light);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

/* Slide Counter */
.slider-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(10, 28, 54, 0.6);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Thumbnails row */
.slider-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.thumbnail {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background-color: var(--primary-dark);
}

.thumbnail:hover {
    border-color: rgba(193, 18, 31, 0.5);
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-glow);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: var(--transition);
}

.thumbnail:hover img,
.thumbnail.active img {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .detail-slider {
        max-height: 320px;
    }

    .slider-btn {
        width: 38px;
        height: 38px;
    }

    .slider-btn svg {
        width: 18px;
        height: 18px;
    }

    .slider-thumbnails {
        gap: 0.5rem;
    }
}


.parts-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.part-cat-item {
    background-color: var(--bg-white);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.part-cat-item:hover {
    transform: translateX(5px);
    border-color: var(--secondary-color);
}

.part-cat-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--secondary-color);
}

.part-cat-item span {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

.sidebar-panel {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.sidebar-panel h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.sidebar-panel h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.sidebar-panel p {
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (FULL BREAKPOINT ADAPTATIONS)
   ========================================================================== */

/* --- TABLETS / MEDIUM SCREENS (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-container {
        transform: none;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-image-container img {
        height: 360px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .advantages-image-container {
        height: 360px;
        order: -1;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        max-width: 500px;
        margin: 2.5rem auto 0;
    }

    .contact-split-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .subpage-detail-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .sidebar-panel {
        position: static;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* --- TABLETS / MOBILE MENU TRIGGER (max-width: 768px) --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Hide normal nav menu */
    }

    .nav-toggle {
        display: flex;
        /* Show burger */
    }

    .section-header h2 {
        font-size: 1.85rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-full-width {
        grid-column: span 1;
    }

    .form-card {
        padding: 2rem 1.5rem;
    }

    .parts-categories {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }

    .whatsapp-float-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float-btn svg {
        width: 28px;
        height: 28px;
    }
}

/* --- SMARTPHONES (max-width: 480px) --- */
@media (max-width: 480px) {
    html {
        font-size: 15px;
        /* Scaled down slightly for tiny viewports */
    }

    .hero {
        padding: 5rem 0 6rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .btn {
        width: 100%;
        /* Stacks buttons vertically on narrow smartphones */
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .contact-card-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}