/* =========================================================
   Grundfarben & Basis
========================================================= */

:root {
    --primary-red: #a00000;
    --primary-red-dark: #7d0000;
    --accent-orange: #ff6600;
    --accent-orange-dark: #e65c00;
    --dark-grey: #333333;
    --medium-grey: #666666;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --black: #000000;
    --border-light: rgba(0, 0, 0, 0.10);
    --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background: var(--white);
}

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

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =========================================================
   Header
========================================================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 20px 0;
    border-bottom: 1px solid #eeeeee;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo {
    height: 100px;
    width: auto;
}

.header-shop-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-orange);
    color: var(--white);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.header-shop-link:hover,
.header-shop-link:focus {
    background: var(--accent-orange-dark);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}
.header-reviews {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 280px;
}

.header-reviews etrusted-widget {
    max-width: 420px;
    width: 100%;
}

/* =========================================================
   Hero Section
========================================================= */

.hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("dein-bild.jpg");
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}

.hero-text {
    padding-right: 30px;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-text p {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f4f4f4;
}

.hero-text ul {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    font-size: 1.15rem;
    color: var(--white);
    line-height: 1.8;
}

.hero-text li {
    margin-bottom: 6px;
}

.hero-image img {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    object-fit: cover;
}


/* =========================================================
   Buttons
========================================================= */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-orange-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}


/* =========================================================
   Trust Bar
========================================================= */

.trust-bar {
    background: var(--primary-red);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

.trust-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 1.25rem;
    font-weight: 700;
}


/* =========================================================
   Kategorien
========================================================= */

.categories {
    padding: 60px 0;
    background: var(--light-grey);
}

.categories h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-grey);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.cat-card {
    display: block;
    background: var(--white);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.cat-card:hover,
.cat-card:focus {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.cat-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 18px;
    border-radius: 6px;
}

.cat-card h3 {
    color: var(--primary-red);
    margin-bottom: 10px;
    text-decoration: none;
}

.cat-card p {
    color: var(--dark-grey);
    text-decoration: none;
}


/* =========================================================
   Anwendungskarten
   HTML muss so aussehen:
   <a href="..." class="application-card">...</a>
========================================================= */

.application-grid {
    width: 100%;
    max-width: 1280px;
    margin: 40px auto 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.application-card {
    display: block;
    min-height: 175px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.application-card:link,
.application-card:visited,
.application-card:hover,
.application-card:focus,
.application-card:active {
    color: inherit;
    text-decoration: none;
}

.application-card h3 {
    margin: 0 0 14px 0;
    color: var(--primary-red);
    font-size: 1.15rem;
    line-height: 1.3;
    text-decoration: none;
}

.application-card p {
    margin: 0;
    color: var(--dark-grey);
    font-size: 1rem;
    line-height: 1.65;
    text-decoration: none;
}

.application-card:hover,
.application-card:focus {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(160, 0, 0, 0.25);
    text-decoration: none;
}

.application-card:hover h3,
.application-card:focus h3 {
    color: var(--primary-red-dark);
}

.application-card:focus-visible {
    outline: 3px solid var(--accent-orange);
    outline-offset: 4px;
}


/* =========================================================
   Tabellen / Auswahlhilfe
========================================================= */

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

th,
td {
    padding: 16px;
    border: 1px solid #dddddd;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--primary-red);
    color: var(--white);
    font-weight: 700;
}

td {
    color: var(--dark-grey);
}


/* =========================================================
   FAQ
========================================================= */

.faq-section {
    padding: 60px 0;
    background: var(--white);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 36px;
}

.faq-item {
    max-width: 900px;
    margin: 0 auto 16px auto;
    padding: 22px 24px;
    background: var(--light-grey);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    margin-bottom: 10px;
    color: var(--primary-red);
}

.faq-item p {
    color: var(--dark-grey);
}


/* =========================================================
   Link-Hub / interne Links
========================================================= */

.link-hub {
    padding: 60px 0;
    background: var(--light-grey);
}

.link-hub h2 {
    text-align: center;
    margin-bottom: 36px;
}

.link-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.link-hub a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-grey);
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}

.link-hub a:hover,
.link-hub a:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--primary-red);
    text-decoration: none;
}


/* =========================================================
   Footer
========================================================= */

.main-footer {
    background: #222222;
    color: #cccccc;
    padding: 40px 0;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
}

.main-footer a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.25s ease;
}

.main-footer a:hover,
.main-footer a:focus {
    color: var(--accent-orange);
}


/* =========================================================
   Responsive: Tablet
========================================================= */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-text ul {
        display: inline-block;
        text-align: left;
    }

    .application-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
}


/* =========================================================
   Responsive: Smartphone
========================================================= */

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .main-header {
    position: static;
    top: auto;
    z-index: auto;
    box-shadow: none;
}

    .logo {
        height: 72px;
        margin: 0 auto;
    }

    .hero {
        padding: 56px 0;
    }

    .hero-grid {
        gap: 24px;
    }

    .hero-text h1 {
        font-size: 2.15rem;
    }

    .hero-text p {
        font-size: 1.05rem;
    }

    .hero-text ul {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-image img {
        height: 280px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        margin-bottom: 12px;
    }

    .trust-flex {
        flex-direction: column;
        gap: 12px;
        font-size: 1.05rem;
    }

    .categories {
        padding: 44px 0;
    }

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

    .cat-card img {
        height: 190px;
    }

    .application-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 28px;
    }

    .application-card {
        min-height: auto;
        padding: 24px;
    }

    .main-footer {
        font-size: 1rem;
        padding: 32px 0;
    }
    .header-reviews {
    display: none;
}
}



/* =========================================================
   Responsive Tabelle als Karten auf Smartphone
========================================================= */

@media (max-width: 600px) {
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 16px;
        background: var(--white);
        border: 1px solid #dddddd;
        border-radius: 12px;
        overflow: hidden;
    }

    td {
        border: none;
        border-bottom: 1px solid #eeeeee;
        padding: 14px 16px;
    }

    td:last-child {
        border-bottom: none;
    }

    td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-weight: 700;
        color: var(--primary-red);
    }
}
