:root {
    --primary-color: #414141;     /* Anthrazit */
    --secondary-color: #f8f9fa;   /* Heller Hintergrund */
    --accent-color-blue: #1c4479;  /* Dunkelblau */
    --accent-color-orange: #f0802e; /* Leuchtendes Orange */
    --text-color: #333;
    --light-text-color: #666;
    --card-shadow: 0 10px 25px rgba(0,0,0,0.08);
    --border-radius: 12px;
}

/* --- LOKAL GEHOSTETE SCHRIFTARTEN --- */
/* inter-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}
/* inter-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}
/* inter-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/inter-v20-latin-800.woff2') format('woff2');
}
/* --- ENDE LOKALE SCHRIFTARTEN --- */

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
}
.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 1rem 2rem;
}

/* --- Moderner Header --- */
header {
    background-color: #f8f9fa;
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}
header img.logo {
    max-width: 320px;
    height: auto;
    margin-bottom: 1.5rem;
}
header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    color: var(--accent-color-blue);
    
    /* --- HIER DIE NEUEN ZEILEN EINFÜGEN --- */
    overflow-wrap: break-word; /* Erlaubt den Umbruch von langen Wörtern */
    word-break: break-word;    /* Fallback für ältere Browser */
}
.highlight-word {
    color: var(--accent-color-orange);
}
header p.subtitle {
    font-size: 1.3rem;
    color: var(--light-text-color);
    max-width: 700px;
    margin: 1rem auto 0;
}

/* --- Angepasster Such-Bereich --- */
.search-section {
    padding: 4rem 0;
    background: #ffffff;
    text-align: center;
}

/* --- Sektion: Keine Cookies (auf der Startseite) --- */
.no-cookies-section {
    padding: 3rem 0;
    background-color: var(--secondary-color);
}
.no-cookies-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.no-cookies-image {
    max-width: 100px;
    height: auto;
}
.no-cookies-text h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--accent-color-blue);
}
.no-cookies-text p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--light-text-color);
}


.intro-text {
    padding: 4rem 0;
    text-align: center;
    transition: all 0.3s ease;
}
.intro-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color-blue);
}
.intro-text p {
    font-size: 1.1rem;
    color: var(--light-text-color);
    max-width: 800px;
    margin: 0 auto 3rem;
}
main {
    padding: 2rem 0;
}
.category {
    margin-bottom: 4rem;
}
.category h2 {
    border-bottom: 3px solid var(--accent-color-orange);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 2rem;
}
.category h2 a {
    color: var(--accent-color-orange);
    text-decoration: none;
    transition: color 0.3s;
}
.category h2 a:hover {
    color: var(--accent-color-blue);
}
.category-intro {
    font-size: 1.1rem;
    color: var(--light-text-color);
    max-width: 800px;
    margin-bottom: 2.5rem;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}
.company-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}
.company-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
}
.company-card h3 a {
    color: var(--accent-color-blue);
    text-decoration: none;
}
.company-card h3 a:hover {
    text-decoration: underline;
}
.company-card p.description {
    margin: 0.5rem 0 1.5rem;
    color: var(--light-text-color);
    flex-grow: 1;
}
.card-footer {
    margin-top: auto;
}
.card-footer .einsatzgebiet {
    font-weight: bold;
    color: var(--accent-color-blue);
    margin-bottom: 1rem;
    display: block;
}
.card-footer .contact-info {
    margin-bottom: 1.5rem;
}
.card-footer .contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}
.card-footer .contact-info a:hover {
    color: var(--accent-color-orange);
    text-decoration: underline;
}
.card-footer .website-link {
    display: inline-block;
    background: var(--accent-color-orange);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}
.card-footer .website-link:hover {
    background-color: #d86d26;
}

/* --- Footer Styling --- */
footer {
    text-align: center;
    padding: 3rem 1rem 1rem 1rem; /* Padding unten reduziert für neue Elemente */
    margin-top: 4rem;
    background: var(--primary-color);
    color: #fff;
}
.footer-logo-container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto 30px auto;
    max-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.footer-logo {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.footer-mission {
    font-size: 1rem;
    line-height: 1.7;
    color: #f0f0f0;
    max-width: 700px;
    margin: 2rem auto;
    border-top: 1px solid #666;
    padding-top: 2rem;
}
.footer-mission strong {
    color: #ffffff;
}

/* --- Footer Deutschland-Flagge (kompakt & volle Breite) --- */
.flag-section-full-width {
    background-color: #ffffff;  /* Der durchgehende weiße Hintergrund */
    padding: 0px 0;              /* Kleiner vertikaler Abstand, damit die Linien nicht am Rand kleben */
    margin: 0rem 0;            /* Abstand zum restlichen Inhalt */
}

.flag-line {
    height: 4px;                 /* Dicke der Linien */
    margin-bottom: 0px;          /* NEU: Abstand zwischen den Linien */
}

.flag-line:last-child {
    margin-bottom: 0;            /* Entfernt den Abstand bei der letzten Linie */
}

/* Farben der Flagge */
.flag-line.black {
    background-color: #000000;
}
.flag-line.red {
    background-color: #DD0000;
}
.flag-line.gold {
    background-color: #FFCC00;
}

/* --- Footer "Keine Cookies"-Box --- */
.no-cookies-card-footer {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 700px;
    margin: 2.5rem auto;
    text-align: left;
    color: var(--text-color);
}
.no-cookies-image {
    max-width: 80px;
    height: auto;
}
.no-cookies-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--accent-color-blue);
}
.no-cookies-text p {
    margin: 0;
    color: var(--light-text-color);
}

.footer-notice {
    font-size: 0.8em; 
    color: #ccc; 
    max-width: 800px; 
    margin: 2rem auto 1rem auto; /* Mehr Abstand nach oben */
}
footer a {
    color: #fff;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* --- Stile für Detailseiten --- */
.detail-container {
    background: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}
.detail-container h1 {
    font-size: 2.5rem;
    margin-top: 0;
    color: var(--accent-color-blue);
}
.detail-container .contact-details {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}
.detail-container .contact-details li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--accent-color-blue);
    font-weight: bold;
}

/* --- Suchleisten-Stile --- */
.search-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}
.search-container .search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #aaa;
    pointer-events: none;
}
.search-container input[type="search"] {
    width: 100%;
    box-sizing: border-box;
    padding: 1.2rem 2rem 1.2rem 60px;
    font-size: 1.1rem;
    border-radius: 50px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    box-shadow: 0 1px 6px rgba(32,33,36,0.1);
}
.search-container input[type="search"]:focus {
    outline: none;
    border-color: var(--accent-color-blue);
    box-shadow: 0 2px 8px rgba(28, 68, 121, 0.2);
}
#no-results {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light-text-color);
    padding: 3rem;
    display: none;
}

/* --- Responsivität --- */
@media (max-width: 768px) {
    .container {
        padding: 1rem 1.5rem;
    }
    header {
        padding: 2.5rem 1rem;
    }
    header h1 {
        font-size: 2.2rem;
    }
    header p.subtitle {
        font-size: 1.1rem;
    }
    .search-section {
        padding: 3rem 1rem;
    }
    .no-cookies-card, .no-cookies-card-footer {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 2rem 1.5rem;
    }
    .no-cookies-text h2 {
        font-size: 1.3rem;
    }
    .no-cookies-text p {
        font-size: 1rem;
    }
    .category-grid {
        gap: 1.5rem;
    }
    .company-card {
        padding: 1.5rem;
    }
    .company-card h3 {
        font-size: 1.4rem;
    }
    .company-card p.description {
        font-size: 0.95rem;
    }
    .footer-mission {
        font-size: 0.9rem;
        margin: 1.5rem auto;
        padding-top: 1.5rem;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    header {
        padding: 2rem 1rem;
    }
    header img.logo {
        max-width: 200px;
        margin-bottom: 1rem;
    }
    header h1 {
        font-size: 1.8rem;
    }
    header p.subtitle {
        font-size: 1rem;
    }
    .search-section {
        padding: 2.5rem 1rem;
    }
    .search-container input[type="search"] {
        padding: 1rem 1rem 1rem 45px;
        font-size: 1rem;
    }
    .search-container .search-icon {
        left: 18px;
        width: 16px;
        height: 16px;
    }
    .no-cookies-card, .no-cookies-card-footer {
        padding: 1.5rem;
    }
    .no-cookies-image {
        max-width: 70px;
    }
    .no-cookies-text h3 {
        font-size: 1.1rem;
    }
    .no-cookies-text p {
        font-size: 0.9rem;
    }
    .footer-mission {
        font-size: 0.85rem;
        margin: 1.5rem 1rem;
    }
    .footer p {
        font-size: 0.75rem;
    }
}