:root {
    --bg: #fffaf1;
    --surface: #ffffff;
    --text: #2e2416;
    --muted: #6f5f44;
    --accent: #d49519;
    --border: #f0dfbf;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2 {
    margin: 0 0 0.6rem 0;
    font-weight: 600;
}

p {
    margin: 0 0 0.8rem 0;
    color: var(--muted);
}

.page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.6rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.site-header {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid var(--border);
}

.top-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 600;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text);
}

.site-name {
    margin: 0 0 0.4rem 0;
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: #f7f1e3;
    font-weight: 600;
}

.subtitle {
    margin: 0;
    color: #f7f1e3;
    font-size: 1rem;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    color: var(--muted);
}

.main-nav a:hover {
    color: var(--accent);
}

.hero-banner {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 260px;
    box-shadow: 0 14px 28px rgba(46, 36, 22, 0.18);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.2) saturate(1.05);
}

.hero-banner-products img {
    object-position: center 70%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: #f7f1e3;
}

.hero-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.28));
    z-index: 0;
}

.hero-overlay > * {
    position: relative;
    z-index: 1;
}

.hero-overlay h1 {
    color: #f7f1e3;
    font-size: 1.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16rem;
}

.hero-overlay .subtitle {
    margin-top: 0.3rem;
}

.content-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.7rem;
    box-shadow: 0 10px 24px rgba(46, 36, 22, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 1.6rem;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-section h2 {
    font-size: 1.2rem;
    color: var(--text);
}

.content-section:nth-of-type(even) {
    background: #fff5df;
}

.section-media {
    width: 220px;
    height: 165px;
    margin-left: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(46, 36, 22, 0.12);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.section-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.section-media img.fit-contain {
    object-fit: contain;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section.products-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.content-section.products-section > .product-grid {
    margin-top: 0.4rem;
}

.content-section.gallery-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-section.gallery-section > div {
    text-align: left;
    width: 100%;
}

.content-section.locations-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.content-section.locations-section > div:first-child {
    text-align: left;
    width: 100%;
}

.locations-grid {
    display: grid;
    gap: 1.2rem;
}

.location-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    display: grid;
    gap: 0.9rem;
}

.location-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
}

.location-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
}

.location-carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.8rem;
    align-items: center;
}

.carousel-grid-4 {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.location-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(46, 36, 22, 0.12);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
}

.image-button {
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.image-button img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(46, 36, 22, 0.12);
}

.swarm-carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.8rem;
    align-items: center;
}

.carousel-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.carousel-button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff7e6;
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carousel-button:hover {
    background: #ffe9bd;
}

.gallery-grid img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(46, 36, 22, 0.12);
}

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 60;
}

.image-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 0.75rem;
    max-width: 960px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.image-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 720px) {
    .carousel-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .carousel-grid-4 {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 900px) {
    .location-carousel,
    .swarm-carousel {
        grid-template-columns: 1fr;
    }

    .location-carousel .carousel-button,
    .swarm-carousel .carousel-button {
        justify-self: center;
    }

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

@media (max-width: 600px) {
    .location-gallery,
    .gallery-grid,
    .carousel-grid,
    .carousel-grid-4 {
        grid-template-columns: 1fr;
    }

    .image-button img,
    .gallery-grid img,
    .location-gallery img {
        height: 160px;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(46, 36, 22, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.product-body {
    padding: 1rem 1.2rem 1.2rem;
}

.product-body h2 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted);
    display: grid;
    gap: 0.35rem;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.price-list li span {
    white-space: nowrap;
}

.price-list li strong {
    margin-left: auto;
    white-space: nowrap;
}

.price-list strong {
    color: var(--text);
}

.external-link {
    color: var(--accent);
    font-weight: 600;
}

.external-link:hover {
    color: #b6780f;
    text-decoration: underline;
}

.home-page .content-section > *:not(.tile-link) {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.tile-link {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    z-index: 2;
    cursor: pointer;
    display: block;
}

.tile-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.home-page .content-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(46, 36, 22, 0.16);
}

.contact-form {
    display: grid;
    gap: 0.8rem;
}

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

.contact-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.95rem;
    font: inherit;
    background: #ffffff;
    color: var(--text);
}

.contact-form .form-status {
    margin: 0;
    font-weight: 600;
}

.contact-form .validation-message {
    margin: 0.2rem 0 0;
}

.contact-form textarea {
    resize: vertical;
    min-height: 180px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}
.content-section.contact-section {
    grid-template-columns: 1fr;
}

@media (max-width: 720px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.intern-link {
    text-align: center;
    font-weight: 600;
    margin: 0;
}

.intern-link a {
    color: var(--accent);
}

.cookie-popup {
    position: fixed;
    inset: auto 1.5rem 1.5rem auto;
    z-index: 40;
}

.cookie-card {
    background: #fff7e6;
    border: 1px solid #efd39b;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    box-shadow: 0 16px 30px rgba(46, 36, 22, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 320px;
    color: #6b4f1c;
    position: relative;
    overflow: hidden;
    background-image: none;
}

.cookie-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

.cookie-card > * {
    position: relative;
    z-index: 1;
}

.cookie-card h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    color: #4e3a14;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cookie-button {
    border: 1px solid #d7b370;
    background: #fff1cf;
    color: #6b4f1c;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.cookie-button.ghost {
    background: transparent;
}

@media (max-width: 640px) {
    .page {
        padding: 2.5rem 1.2rem 3.5rem;
    }

    .top-bar {
        justify-content: center;
        text-align: center;
    }

    .main-nav {
        justify-content: center;
        gap: 0.8rem;
    }

    .content-section {
        grid-template-columns: 1fr;
    }

    .section-media img {
        margin: 0 auto;
    }

    .section-media {
        width: 200px;
        height: 150px;
        margin: 0 auto;
    }

    .hero-banner {
        height: 210px;
    }

    .cookie-popup {
        inset: auto 1rem 1rem 1rem;
    }

    .cookie-card {
        max-width: none;
    }
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0Ljcx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2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Blazor Reconnect-Meldung ausblenden – eigenes Modal wird genutzt und nicht angezeigt */
#components-reconnect-modal {
    display: none !important;
}
