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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.flag-btn {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
    opacity: 0.6;
}

.flag-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lang-btn,
.lang-btn:link,
.lang-btn:visited,
.lang-btn:hover,
.lang-btn:active {
    font-size: 1.5rem;
    text-decoration: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.lang-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lang-btn.active {
    opacity: 1;
}

.flag-btn.active {
    opacity: 1;
    background: rgba(72, 187, 120, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    height: 3rem;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 600;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.tabs {
    display: flex;
    gap: 1rem;
}

.tab-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.3);
}

.tab-btn.active {
    background: white;
    color: #38a169;
}

main {
    padding: 2rem 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.intro {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.map-container {
    height: 400px;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filters {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.filter-group button {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-group button:hover {
    background: #c53030;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.locations-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.location-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.location-item:hover {
    background: #f7fafc;
}

.location-item:last-child {
    border-bottom: none;
}

.location-logo {
    width: 60px;
    height: 60px;
    background: #e2e8f0;
    border-radius: 8px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.location-logo img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.location-logo-right {
    width: 60px;
    height: 60px;
    margin-left: 1rem;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.location-logo-right img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.location-info {
    flex: 1;
}

.location-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.location-category {
    display: inline-block;
    background: #48bb78;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.location-address {
    color: #718096;
    font-size: 0.9rem;
}

.location-url {
    color: #3182ce;
    text-decoration: none;
    font-size: 0.9rem;
}

.location-url:hover {
    text-decoration: underline;
}

.location-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.expand-btn {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.expand-btn:hover {
    background: #cbd5e0;
}

.hidden-addresses {
    margin-top: 0.2rem;
}

.hidden-addresses div {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button:hover {
    background: #f7fafc;
}

.pagination button.active {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer a {
    color: #81c784;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Category colors for map markers */
.marker-restaurant { background-color: #e53e3e; }
.marker-supermarkt { background-color: #38a169; }
.marker-kleidung { background-color: #3182ce; }
.marker-online { background-color: #805ad5; }

/* Address styling */
.location-item {
    cursor: pointer;
}

.location-addresses {
    margin: 0.25rem 0;
}

.location-address {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.location-address:last-child {
    margin-bottom: 0;
}

.detail-addresses {
    margin-bottom: 2rem;
}

.addresses-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    max-height: calc(5 * (4rem + 1rem));
    overflow-y: auto;
    padding-right: 0.5rem;
}

.addresses-list::-webkit-scrollbar {
    width: 6px;
}

.addresses-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.addresses-list::-webkit-scrollbar-thumb {
    background: #48bb78;
    border-radius: 3px;
}

.addresses-list::-webkit-scrollbar-thumb:hover {
    background: #38a169;
}

.address-item {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #48bb78;
    transition: all 0.2s;
}

.address-item:hover {
    background: #edf2f7;
    transform: translateX(2px);
}

.address-text {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.address-coords {
    font-size: 0.8rem;
    color: #718096;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-info {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .location-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Red "Non-EU" corner ribbon for products/brands produced outside the EU */
.non-eu-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #c0392b;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    padding: 3px 10px;
    border-radius: 0 12px 0 8px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.detail-header .non-eu-badge {
    position: static;
    display: inline-block;
    margin-left: 10px;
    border-radius: 4px;
    vertical-align: middle;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-size: 3rem;
    color: #999;
}

.software-directory {
    margin-top: 2rem;
}

.software-category {
    margin-bottom: 2.5rem;
}

.software-category h2 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.software-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.matching-software {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

.matching-software h2 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.software-tool-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.software-tool-card .tool-type-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1rem;
    line-height: 1;
}

.software-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.software-tool-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
}

.software-tool-logo img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.software-tool-info h3 {
    font-size: 1rem;
    margin: 0 0 0.2rem 0;
    color: #2d3748;
}

.software-tool-info p {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
}

.software-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.software-filters select {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.software-filters button {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.software-filters button:hover {
    background: #c53030;
}

.platform-badges {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.platform-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    background: #edf2f7;
    color: #4a5568;
}

.product-category-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.product-category {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .product-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
/* Breadcrumb Navigation */
.breadcrumb {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb-item.current {
    color: white;
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .breadcrumb-separator {
        margin: 0 0.3rem;
    }
}
/* Product Detail Page Styles */
.location-detail {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
}

.location-logo.large {
    width: 100px;
    height: 100px;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    flex-shrink: 0;
}

.location-logo.large img {
    max-width: 75%;
    max-height: 75%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.detail-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.location-category {
    color: #48bb78;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.location-url {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
}

.location-url:hover {
    text-decoration: underline;
}

.detail-info-text {
    margin-bottom: 2rem;
}

.detail-info-text h2 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.5rem;
}

.detail-info-text p {
    line-height: 1.6;
    color: #4a5568;
}

.detail-gallery {
    margin-bottom: 2rem;
}

.detail-gallery h2 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.5rem;
}

.gallery-grid.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 600px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

.detail-actions {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .gallery-grid.product-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .location-logo.large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .detail-info h1 {
        font-size: 1.5rem;
    }
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.close:hover {
    opacity: 0.7;
}

/* Header / Footer (used by base.html across all pages) */
.header {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-content .logo {
    text-decoration: none;
    color: white;
}

/* Row 1: logo left, language switcher right; row 2: full-width menu */
.header .language-switcher {
    order: 2;
}

.header .tabs {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
}

.footer {
    background: #2d3748;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 20px;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* Recommendation form (/kontakt) */
.contact-form { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 1rem; }
.contact-form label { font-weight: 600; margin-top: 0.75rem; }
.contact-form input[type="text"], .contact-form input[type="url"], .contact-form input[type="email"],
.contact-form textarea {
    width: 100%; padding: 0.6rem; border: 1px solid #cbd5e0; border-radius: 6px;
    font: inherit; background: #ffffff; color: #2d3748;
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid #2b6cb0; outline-offset: 1px; }
.contact-form fieldset { border: none; padding: 0; margin: 0; }
.contact-form legend { font-weight: 600; margin-bottom: 0.4rem; }
.type-options { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.type-options label, .contact-form .checkbox-label { font-weight: normal; margin-top: 0; display: flex; gap: 0.4rem; align-items: flex-start; }
.contact-form .checkbox-label { margin-top: 1rem; }
.contact-form .human-check { max-width: 6rem; }
.contact-form button { align-self: flex-start; margin-top: 1rem; }
.form-hint { color: #718096; font-size: 0.85rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { background: #fff5f5; color: #9b2c2c; border: 1px solid #feb2b2; border-radius: 6px; padding: 0.75rem 1rem; margin: 1rem 0; }
.form-errors ul { margin: 0 0 0 1.25rem; }
.form-success { background: #f0fff4; color: #22543d; border: 1px solid #9ae6b4; border-radius: 6px; padding: 1rem 1.25rem; margin-top: 1rem; }

/* Unobtrusive cookie info bar (bottom left, dismissible) */
.cookie-notice {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 900;
    max-width: 420px;
    width: calc(100% - 2rem);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #2d3748;
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; }
.cookie-notice a { color: #9ae6b4; }

.cookie-notice-ok {
    flex-shrink: 0;
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: 6px;
    background: #38a169;
    color: #ffffff;
    font-size: 0.85rem;
    cursor: pointer;
}

.cookie-notice-ok:focus-visible { outline: 2px solid #9ae6b4; outline-offset: 2px; }

/* Filter chips on "Marken aus Europa" */
.brand-filters { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; text-align: left; }
.brand-filters .filter-group { justify-content: flex-start; flex-wrap: wrap; gap: 0.75rem; padding-left: calc(7rem + 0.75rem); }
.chip-row { display: flex; align-items: flex-start; gap: 0.75rem; width: 100%; }
@media (max-width: 640px) {
    .chip-row { flex-direction: column; gap: 0.35rem; }
    .brand-filters .filter-group { padding-left: 0; }
}
.chip-row[hidden] { display: none; }
.chip-row-label { min-width: 7rem; padding-top: 0.35rem; font-size: 0.85rem; font-weight: 600; color: #4a5568; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; flex: 1; }
.chip {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #cbd5e0;
    background: #ffffff;
    color: #2d3748;
    font-size: 0.85rem;
    cursor: pointer;
}
.chip:hover { border-color: #38a169; }
.chip[aria-pressed="true"] { background: #38a169; border-color: #38a169; color: #ffffff; }
.chip:focus-visible { outline: 2px solid #2b6cb0; outline-offset: 2px; }
.verified-toggle { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; white-space: nowrap; }
a.product-card { color: inherit; text-decoration: none; display: block; }
.card-labels { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.3rem 0; }
.card-label { font-size: 0.7rem; padding: 0.1rem 0.45rem; border-radius: 4px; background: #ebf8ff; color: #2c5282; }

/* Label logos/badges on detail pages */
.label-list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.label-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.8rem; border: 1px solid #bee3f8;
    border-radius: 8px; background: #ffffff; color: #2c5282; text-decoration: none; font-size: 0.9rem; }
.label-badge img { height: 28px; width: auto; }
a.label-badge:hover { border-color: #3182ce; }

/* Provider type badges on the detail page (brand / shop / restaurant) */
.provider-types { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0.4rem 0; }
.provider-type {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
    font-size: 0.8rem;
    font-weight: 600;
}
.address-item[role="button"] { cursor: pointer; }
.address-item[role="button"]:focus-visible { outline: 2px solid #2b6cb0; outline-offset: 2px; }

/* Impressum / Datenschutz */
.legal-page { max-width: 800px; margin: 0 auto; line-height: 1.6; }
.legal-page h1 { margin-bottom: 1rem; }
.legal-page h2 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; color: #276749; }
.legal-page ul { margin: 0.5rem 0 0.5rem 1.5rem; }
.legal-page a { color: #276749; }
.legal-updated { margin-top: 2rem; color: #718096; font-size: 0.85rem; }

/* Confirmation dialog before leaving to an external website */
.external-dialog {
    max-width: 420px;
    width: calc(100% - 2rem);
    border: none;
    border-radius: 10px;
    padding: 1.5rem;
    background: #ffffff;
    color: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.external-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.external-dialog h2 { font-size: 1.2rem; margin-bottom: 0.75rem; color: #276749; }
.external-dialog p { font-size: 0.95rem; line-height: 1.45; margin-bottom: 0.75rem; }
.external-dialog-host { font-weight: 600; word-break: break-all; }

.external-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.external-dialog-actions .btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    background: #edf2f7;
    color: #2d3748;
    cursor: pointer;
    font-size: 0.95rem;
}

.external-dialog-actions .btn-primary { background: #38a169; border-color: #38a169; color: #ffffff; }
.external-dialog-actions .btn:focus-visible { outline: 2px solid #2b6cb0; outline-offset: 2px; }

.footer-disclaimer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 1.25rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* Criteria ratings on brand/product detail pages */
.criteria-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0.5rem 0 1rem;
}

.criterion-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: help;
}

a.criterion-badge { cursor: pointer; }

.criterion-badge.status-verified { background: #c6f6d5; color: #22543d; border-color: #9ae6b4; }
.criterion-badge.status-claimed  { background: #ffffff; color: #276749; border-color: #68d391; border-style: dashed; }
.criterion-badge.status-not_met  { background: #edf2f7; color: #4a5568; border-color: #cbd5e0; }

.criterion-status,
.criterion-source { font-size: 0.75rem; opacity: 0.85; }
.criterion-source { text-decoration: underline; }

.criterion-badge:focus-visible { outline: 2px solid #2b6cb0; outline-offset: 2px; }

/* Mouse-over / keyboard-focus text, maintained per rating in the admin tool */
.criterion-tooltip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 10;
    width: max-content;
    max-width: 280px;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: #2d3748;
    color: #ffffff;
    font-size: 0.8rem;
    line-height: 1.35;
    white-space: normal;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s;
}

.criterion-badge:hover .criterion-tooltip,
.criterion-badge:focus-visible .criterion-tooltip {
    opacity: 1;
    visibility: visible;
}

.criteria-legend,
.criteria-disclaimer { color: #718096; font-size: 0.85rem; margin-top: 0.5rem; }
.criteria-disclaimer { font-style: italic; }

/* Location detail: two-column layout + address list (btn shared across detail pages) */
.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-addresses h2 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.5rem;
}

.addresses-list {
    max-height: calc(5 * (4rem + 1rem));
    overflow-y: auto;
    padding-right: 0.5rem;
}

.addresses-list::-webkit-scrollbar {
    width: 6px;
}

.addresses-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.addresses-list::-webkit-scrollbar-thumb {
    background: #48bb78;
    border-radius: 3px;
}

.address-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f7fafc;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.address-item:hover {
    background: #edf2f7;
}

.address-text {
    font-weight: 500;
    color: #2d3748;
}

.address-coords {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 0.25rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-height: calc(5 * (4rem + 1rem));
    overflow-y: auto;
    padding-right: 0.5rem;
}

.detail-map {
    margin-bottom: 2rem;
}

.detail-map h2 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #48bb78;
    color: white;
}

.btn-primary:hover {
    background: #38a169;
}

#modalCaption {
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .detail-content {
        grid-template-columns: 1fr;
    }

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

/* Landing page (Tab 1: Startseite) */
.landing-hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.landing-hero h1 {
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.landing-hero p {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 640px;
    margin: 0 auto;
}

.landing-mission {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.landing-mission h2 {
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.landing-mission p {
    color: #4a5568;
    line-height: 1.6;
}

.landing-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.landing-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #2d3748;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.landing-card-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.landing-card-logo {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.75rem;
}

.landing-card h3 {
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.landing-card p {
    color: #718096;
    font-size: 0.9rem;
}

/* Article count badge on the Digitaler-Selbstschutz topic cards */
.landing-card-count {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #f0fff4;
    color: #276749;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Coming-soon placeholder (Datenschutz-Themen, Blog, Links until implemented) */
.coming-soon {
    background: white;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.coming-soon-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.coming-soon h1 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.coming-soon p {
    color: #718096;
}
.provider-category { background: #ebf8ff; color: #2c5282; border-color: #90cdf4; }

/* Image credits page */
.credits-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.credits-table th, .credits-table td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.credits-table th { color: #276749; }
.credits-kind { color: #718096; font-size: 0.8rem; }
@media (max-width: 640px) { .credits-table { font-size: 0.8rem; } }

/* ---- Relaxed article layout (privacy articles, e.g. "KI, aber lokal") ---- */
.article-body { max-width: 760px; }
.article-body h2 { margin: 2.2rem 0 0.8rem; font-size: 1.4rem; }
.article-body h3 { margin: 1.6rem 0 0.6rem; font-size: 1.15rem; color: #2d3748; }
.article-body p, .article-body li { color: #4a5568; line-height: 1.7; }
.article-body p + p { margin-top: 0.8rem; }
.article-body ul { margin: 0.6rem 0 0.6rem 1.3rem; }
.article-body a { color: #2f855a; }
.article-lead { font-size: 1.12rem; color: #2d3748 !important; }
.article-figure { margin: 1.4rem 0; }
.article-figure img { display: block; width: 100%; max-height: 380px; object-fit: contain; background: #fff;
    border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
.article-figure figcaption, .device-card figcaption { margin-top: 0.4rem; font-size: 0.8rem; color: #718096; }
.article-figure figcaption a, .device-card figcaption a { color: inherit; }
.article-figure.small img { max-height: 120px; box-shadow: none; background: transparent; }
.device-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.device-card { margin: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1rem;
    display: flex; flex-direction: column; gap: 0.5rem; }
.device-card img { width: 100%; height: 170px; object-fit: contain; }
.device-card h3 { margin: 0.3rem 0 0 !important; }
.device-card p { font-size: 0.95rem; margin: 0 !important; }
.device-card .btn-link { margin-top: auto; align-self: flex-start; background: #38a169; color: #fff !important;
    text-decoration: none; padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.9rem; }
.device-card .btn-link:hover, .device-card .btn-link:focus-visible { background: #2f855a; }
.article-box { border-radius: 12px; padding: 0.9rem 1.1rem; margin: 1.2rem 0; border-left: 5px solid; }
.article-box p { margin: 0 !important; }
.article-box.tip { background: #f0fff4; border-color: #48bb78; }
.article-box.warn { background: #fff5f5; border-color: #e53e3e; }
.article-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.article-table th, .article-table td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.article-table th { background: #edf7f1; }
.table-scroll { overflow-x: auto; }
.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; align-items: end; margin: 1.4rem 0; }
.figure-row .article-figure { margin: 0; }
.figure-row .article-figure img { max-height: 340px; }
.device-card .card-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.device-card .card-links a { font-size: 0.85rem; }
.device-card .btn-link.secondary { background: #edf7f1; color: #276749 !important; }
.device-card .btn-link.secondary:hover, .device-card .btn-link.secondary:focus-visible { background: #c6f6d5; }
.article-steps { counter-reset: step; list-style: none; margin-left: 0 !important; padding: 0; }
.article-steps li { counter-increment: step; position: relative; padding-left: 2.4rem; margin: 0.7rem 0; }
.article-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.7rem; height: 1.7rem;
    border-radius: 50%; background: #38a169; color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
/* ---- Open-source badge (software list, detail page, matching tools) ---- */
.oss-badge { display: inline-block; margin-top: 0.4rem; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.78rem;
    font-weight: 600; max-width: 100%; overflow-wrap: anywhere; }
.oss-badge.oss-open { background: #e6f6ec; color: #22543d; }
.oss-badge.oss-partial { background: #fefcbf; color: #744210; }
.detail-info .oss-badge { margin: 0.3rem 0 0.5rem; font-size: 0.85rem; }
.oss-source-link { margin-left: 1rem; }
.oss-filter { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.95rem; }
.oss-filter input { width: auto; }
.oss-note-plain { color: #718096; font-size: 0.9rem; }
/* ---- Provider portal (/anbieter-portal/<token>) ---- */
.portal-page h2 { margin-top: 1.8rem; }
.portal-inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.8rem; }
.portal-inline label { margin-top: 0; }
.portal-criterion { margin-top: 0.9rem !important; }
.portal-criterion input[type="url"], .portal-label input[type="url"] { margin-top: 0.35rem; width: 100%; }
.portal-labels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.4rem 1rem; }
.portal-label .checkbox-label { margin-top: 0.6rem; }
.portal-objection { color: #9b2c2c; }
.contact-form .portal-password { max-width: 11rem; font-family: monospace; letter-spacing: 0.08em; text-transform: uppercase; }
