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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c3e2f;
    background-color: #fff;
}

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

/* Navigation */
.navbar {
    background: #1a3b2f;
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    text-align: center;
}

.nav-logo {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(249, 178, 52, 0.65);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background: #ffffff;
}

.nav-brand h1 {
    color: #f9b234;
    font-size: 1.5rem;
    display: inline-block;
    text-align: center !important;
    width: auto;
    margin: 0;
    visibility: hidden;
}

html.brand-ready .nav-brand h1 {
    visibility: visible;
}

.nav-brand span {
    color: #fff;
    display: block;
    margin-top: 0.1rem;
    font-size: 0.95em;
    line-height: 1.2;
    width: auto;
    text-align: center !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.4rem;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu li {
    flex: 0 0 auto;
    text-align: center;
}

.nav-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #f9b234;
}

.admin-link {
    background: #f9b234;
    color: #1a3b2f !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.admin-link:hover {
    background: #ffc857;
}

.admin-floating {
    position: fixed;
    right: 4px;
    top: 4px;
    z-index: 1200;
    border-radius: 6px;
    border: 2px solid #5a3b1e;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
}

/* Hero Section */
.hero {
    height: auto;
    min-height: 620px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    --hero-bg-color: #ffffff;
    padding: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: none;
    display: none;
    z-index: 0;
}

.hero-content {
    color: #fff;
    width: 100%;
    max-width: 100%;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 60px;
    margin: 0;
    z-index: 1;
}

.hero-logo {
    width: clamp(220px, 40vw, 520px);
    max-height: none;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: #f9b234;
    color: #1a3b2f;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #ffc857;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1a3b2f;
    margin-bottom: 1rem;
}

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

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.service-card {
    background: #fff;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon-slot {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.service-icon-slot--admin {
    height: 84px;
    margin: 0;
}

.service-card i {
    font-size: 3rem;
    color: #f9b234;
    margin-bottom: 0;
}

.service-icon-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin: 0;
    display: none;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #1a3b2f;
    font-size: clamp(1.05rem, 1.05vw, 1.35rem);
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: #1a3b2f;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: #555;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat h3 {
    font-size: 2rem;
    color: #f9b234;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #f9f9f9;
}

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

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #f9b234;
    width: 40px;
}

.info-item h3 {
    margin-bottom: 0.25rem;
    color: #1a3b2f;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: #1a3b2f;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
}

.footer-section a:hover {
    color: #f9b234;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2c5a45;
}

.footer-partners {
    margin-top: 0;
    padding-top: 0;
}

.footer-partners h4 {
    margin-bottom: 0.75rem;
}

.footer-partners-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.footer-partner-link {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    min-width: 120px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: #fff !important;
    text-decoration: none;
}

.footer-partner-link:hover {
    border-color: #f9b234;
}

.footer-partner-logo {
    width: 90px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.footer-partner-fallback {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.footer-partner-name {
    color: #dfe8e3;
    font-size: 0.8rem;
    text-align: center;
}

/* Shop Page */
.shop-header {
    background: linear-gradient(135deg, #1a3b2f 0%, #2c5a45 100%);
    color: #fff;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 120px;
}

.shop-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.products-section {
    padding: 4rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    color: #1a3b2f;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    color: #f9b234;
    font-weight: 700;
    margin: 0.5rem 0;
}

.product-unit {
    color: #666;
    font-size: 0.9rem;
}

.product-desc {
    color: #555;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.service-offer-desc {
    white-space: pre-line;
}

.product-desc--clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.25rem 0;
    margin: 0 0 0.75rem;
    border: none;
    background: transparent;
    color: #1a3b2f;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
}

.product-desc-toggle:hover {
    text-decoration: underline;
}

.inquiry-btn {
    display: inline-block;
    background: #1a3b2f;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.inquiry-btn:hover {
    background: #2c5a45;
}

.bulk-order {
    padding: 4rem 0;
    background: #f9f9f9;
}

.bulk-card {
    background: #fff;
    padding: 3rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.bulk-card h2 {
    color: #1a3b2f;
    margin-bottom: 1rem;
}

.inquiry-modal {
    position: fixed;
    inset: 0;
    background: rgba(16, 30, 24, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 11000;
}

.inquiry-modal.open {
    display: flex;
}

.inquiry-modal__dialog {
    width: min(760px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    padding: 1.4rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
    position: relative;
}

.inquiry-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    color: #1a3b2f;
    cursor: pointer;
}

.inquiry-modal__subtitle {
    color: #5f6662;
    margin-bottom: 1rem;
}

.inquiry-product-box {
    background: #f6f8f7;
    border: 1px solid #e5ece8;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.inquiry-product-box h3 {
    margin-bottom: 0.3rem;
    color: #1a3b2f;
}

.inquiry-product-box p {
    margin: 0.1rem 0;
}

.inquiry-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.inquiry-radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.inquiry-quantity-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.inquiry-quantity-unit {
    color: #666;
    font-weight: 600;
}

.inquiry-total-box {
    margin-top: 0.4rem;
    border: 1px solid #dce8e2;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    background: #fbfdfc;
}

.inquiry-total-box p {
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.9rem;
}

.inquiry-form__actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

@media (max-width: 700px) {
    .inquiry-form__grid {
        grid-template-columns: 1fr;
    }
    .inquiry-form__actions {
        flex-direction: column;
    }
}

/* Admin Styles */
.admin-body {
    background: #f0f2f5;
}

.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    color: #1a3b2f;
    margin-bottom: 0.5rem;
}

.login-card input {
    width: 100%;
    padding: 0.75rem;
    margin: 1rem 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.login-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.admin-nav {
    background: #1a3b2f;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

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

.btn-logout {
    background: #f9b234;
    color: #1a3b2f;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

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

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #f9b234;
    color: #1a3b2f;
}

.btn-small {
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
    line-height: 1.1;
}

.btn-secondary {
    background: #ffffff;
    color: #1a3b2f;
    border: 1px solid #d6d6d6;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #f3f3f3;
}

.service-admin-hint {
    background: #f9f9f9;
    border: 1px solid #eee;
    color: #333;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    margin: 0.75rem 0 1.25rem;
}

.partner-admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.partner-admin-row {
    display: grid;
    grid-template-columns: 70px 1fr 1fr 1fr auto;
    gap: 0.6rem;
    align-items: center;
}

.partner-admin-logo {
    width: 62px;
    height: 42px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 8px;
    display: none;
    background: #fff;
}

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

.service-editor-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.service-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.service-editor-badge {
    display: inline-block;
    background: #1a3b2f;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.service-editor-icon i {
    font-size: 2.2rem;
    color: #f9b234;
}

.service-editor-row {
    margin-top: 0.75rem;
}

.service-editor-row label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #333;
}

.service-editor-card select,
.service-editor-card input[type="text"],
.service-editor-card input[type="number"],
.service-editor-card textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.service-editor-card textarea {
    resize: vertical;
}

.service-editor-card input[type="file"] {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
}

.service-editor-card input[type="range"] {
    width: 100%;
}

.service-editor-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.service-size-controls {
    display: grid;
    grid-template-columns: 1fr 92px;
    gap: 0.75rem;
    align-items: center;
}

.service-size-controls input[type="number"] {
    width: 92px;
}

@media (max-width: 900px) {
    .service-admin-grid {
        grid-template-columns: 1fr;
    }
    .partner-admin-row {
        grid-template-columns: 1fr;
    }
    .partner-admin-logo {
        width: 96px;
        height: 64px;
    }
}

.tab-content {
    display: none;
}

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

.admin-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-card h3 {
    color: #1a3b2f;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row input,
.form-row select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.products-list {
    margin-top: 1rem;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.product-item--editor {
    align-items: stretch;
}

.product-editor {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 14px;
    width: 100%;
    align-items: start;
}

.product-editor__main {
    min-width: 0;
}

.product-editor__row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.product-editor__row--top {
    margin-bottom: 10px;
}

.product-editor input.product-edit,
.product-editor textarea.product-edit {
    padding: 0.65rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

.product-editor .product-name {
    flex: 1 1 260px;
    min-width: 200px;
}

.product-editor .product-price,
.product-editor .product-unit {
    flex: 0 0 180px;
    max-width: 220px;
}

.product-editor .product-desc {
    width: 100%;
    min-height: 88px;
    resize: vertical;
}

.service-desc-match {
    width: min(100%, var(--service-desc-editor-width, 280px)) !important;
    max-width: var(--service-desc-editor-width, 280px);
    font-size: 0.9rem;
    line-height: 1.6;
}

.product-editor__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.product-editor__actionsRow {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.product-editor__actionsRow .btn-small,
.product-editor__actionsRow--wrap .btn-small,
.product-editor__actions .delete-product {
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
    line-height: 1.1;
}

.product-btn-compact {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-btn-compact i {
    font-size: 0.9em;
}

/* Dateiauswahl statt Upload-Button: Input kompakter */
.product-editor__image input[type="file"] {
    font-size: 0.85rem;
    max-width: 100%;
}

.product-editor__actions .delete-product {
    padding: 0.42rem 0.75rem;
}

.product-editor__actionsRow--wrap {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.product-editor__image {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    align-items: start;
}

.product-editor__thumb {
    width: 92px;
    height: 74px;
    border-radius: 10px;
    border: 1px solid #eee;
    object-fit: cover;
    background: #fafafa;
}

.product-editor__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8a8a;
    font-size: 0.8rem;
    text-align: center;
    padding: 6px;
}

.product-item.dragging {
    opacity: 0.65;
}

.product-drag {
    user-select: none;
    cursor: grab;
    padding: 0 10px;
    color: #9aa3ab;
    font-weight: 700;
    letter-spacing: 2px;
}

.product-item:active .product-drag {
    cursor: grabbing;
}

@media (max-width: 900px) {
    .product-editor {
        grid-template-columns: 1fr;
    }
    .product-editor__actionsRow {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .product-editor .product-price,
    .product-editor .product-unit {
        flex: 1 1 140px;
    }
}

@media (max-width: 520px) {
    .product-item {
        padding: 0.85rem;
    }
    .product-editor__image {
        grid-template-columns: 1fr;
    }
    .product-editor__thumb {
        width: 100%;
        height: 160px;
    }
    .product-editor__actionsRow {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .product-editor__actionsRow .btn-small {
        width: 100%;
        justify-content: center;
    }
    .product-editor__actionsRow--wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .product-editor__actionsRow--wrap .btn-small {
        width: 100%;
        justify-content: center;
    }
    .product-editor__actions .delete-product {
        width: 100%;
        justify-content: center;
    }
}

.product-item-info h4 {
    margin-bottom: 0.25rem;
    color: #1a3b2f;
}

.product-item-info p {
    color: #666;
    font-size: 0.85rem;
}

.delete-product {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.delete-product:hover {
    background: #c82333;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

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

.reference-item {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s;
}

.reference-item:hover {
    transform: translateY(-3px);
}

.reference-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.references-empty {
    padding: 2rem;
    text-align: center;
    color: #555;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.lightbox img {
    max-width: min(1200px, 96vw);
    max-height: 88vh;
    border-radius: 12px;
    background: #fff;
}

.lightbox-close {
    position: fixed;
    top: 14px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 30px;
    line-height: 44px;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}

.gallery-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

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

.delete-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220,53,69,0.9);
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.75rem;
}

.save-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    display: none;
}

.save-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.save-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.35rem;
        padding-top: 2px;
    }

    .nav-brand {
        width: 100%;
        justify-content: center;
        gap: 10px;
        position: relative;
    }

    .nav-brand h1 {
        font-size: 1.05rem;
        line-height: 1.15;
        text-align: center !important;
        max-width: 78vw;
        padding-right: 54px; /* Platz für Schloss rechts */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 108px;
        flex-direction: column;
        background: #1a3b2f;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu li {
        flex: 0 0 auto;
        width: 100%;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
        position: absolute;
        left: 12px;
        top: 12px;
        z-index: 1201;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        /* Mobil: Container soll sich am Inhalt orientieren (nicht riesig hoch) */
        min-height: auto;
        height: auto;
    }

    /* Mobil: nicht absolut, damit Hero-Höhe "schmal" am Inhalt bleibt */
    .hero-content {
        position: relative;
        inset: auto;
        /* Nur Platz für Navbar, sonst keine große Leere */
        padding: 86px 12px 12px;
        align-items: flex-start;
        justify-content: center;
    }
    .shop-header {
        margin-top: 0;
        padding-top: 105px;
    }

    .hero-logo {
        width: clamp(180px, 62vw, 300px);
        max-height: 52vh;
        margin-bottom: 0;
    }
}

/* Harte Positionierung fuer Admin-Button (immer oben rechts) */
.navbar .admin-floating {
    position: fixed !important;
    top: 4px !important;
    right: 4px !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    z-index: 9999 !important;
    border: 2px solid #5a3b1e !important;
}

/* Mobile: Admin-Button darf Überschrift nicht überdecken */
@media (max-width: 768px) {
    .navbar .admin-floating {
        position: absolute !important;
        top: 0 !important;
        right: 8px !important;
        left: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        align-self: center;
        z-index: 1200 !important;
    }

    .admin-link {
        padding: 0.32rem 0.45rem;
        font-size: 0.95rem;
        line-height: 1;
        min-width: 40px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    /* Mobile: Admin nur als Schloss-Icon */
    .admin-link.admin-floating i {
        margin: 0;
        font-size: 1.05rem;
    }
    .admin-link.admin-floating {
        text-indent: -9999px;
        overflow: hidden;
        white-space: nowrap;
    }
    .admin-link.admin-floating i {
        text-indent: 0;
    }
}
