:root {
    --bg-page: #f2ede4;
    --card-bg: #fcfbfa;
    --primary-green: #688255;
    --primary-green-hover: #5d754c;
    --secondary-bg: #e6dfd5;
    --secondary-hover: #dad2c7;
    --text-dark: #2c3e35;
    --text-muted: #6b7770;
    --accent-orange: #c86d51;
    --border-radius: 16px;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 30px 15px;
}

/* Container-Layouts */
.main-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.main-wrapper.narrow {
    max-width: 720px;
}

.werb {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: -5px;
}

/* Karten-Layouts */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 35px 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}

.card h2 {
    font-family: Georgia, serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: bold;
}

.card h3 {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    color: var(--accent-orange);
    margin-bottom: 16px;
    font-weight: bold;
    word-wrap: break-word;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 18px 0 14px 0;
    font-weight: 500;
}

/* ==========================================================================
   Button-Styles
   ========================================================================== */

.btn,
.btn-submit {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--primary-green);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.08) 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 13px 16px;
    border-radius: 25px !important;
    font-size: 1.08rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(0, 0, 0, 0.22);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(104, 130, 85, 0.2);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    backface-visibility: hidden;
}

.btn:hover, 
.btn-submit:hover,
.btn:focus,
.btn-submit:focus {
    background-color: var(--primary-green-hover);
    box-shadow: 0 5px 14px rgba(104, 130, 85, 0.3);
}

.btn:active,
.btn-submit:active {
    background-color: #4f6441;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn:focus-visible,
.btn-submit:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Sekundäre Buttons */
.btn-secondary,
.btn-reset,
.btn-momox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--secondary-bg);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(0, 0, 0, 0.04) 100%);
    color: var(--text-dark) !important;
    text-decoration: none !important;
    padding: 13px 16px;
    border-radius: 25px !important;
    font-size: 1.02rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    outline: none;
    backface-visibility: hidden;
}

.btn-momox {
    width: auto;
    padding: 10px 22px;
    font-weight: 600;
}

.btn-secondary:hover, 
.btn-reset:hover, 
.btn-momox:hover,
.btn-secondary:focus, 
.btn-reset:focus, 
.btn-momox:focus {
    background-color: var(--secondary-hover);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.btn-secondary:active, 
.btn-reset:active, 
.btn-momox:active {
    background-color: #cfc6ba;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Button über volle Spaltenbreite im Raster */
.btn-full {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

/* Partner Grid für Suchergebnisse */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
    width: 100%;
}

.partner-grid .btn {
    margin-top: 0;
}

/* Hero-Card / Suchformular Layout */
.hero-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.03);
}

.search-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.search-content h1 {
    font-family: Georgia, serif;
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.search-content p.intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    width: 100%;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

input[type="text"].input-search {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border: 1px solid #d5cfc5;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin: 0;
}

input[type="text"].input-search:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(104, 130, 85, 0.2);
}

.button-group {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    width: 100%;
    margin-top: 4px;
}

.image-container {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.momox-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}

.momox-card h2 {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.momox-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    margin-top: 10px;
}

.footer-card p.small {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 6px 0;
    line-height: 1.55;
}

.footer-card p.info-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    margin: 12px 0;
    line-height: 1.5;
}

.footer-card a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.footer-card a:hover {
    text-decoration: underline;
}

.footer-card hr {
    border: 0;
    height: 1px;
    background: #e2dacd;
    margin: 14px auto;
    width: 70%;
}

.mt-10 {
    margin-top: 10px;
}

/* Accordion / Toggle-Trigger */
.toggle-trigger {
    display: inline-block;
    background: linear-gradient(180deg, #ece6dd 0%, #dbd3c7 100%);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 9px 18px;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    margin: 5px auto 0 auto;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(0, 0, 0, 0.08),
        0 3px 8px rgba(0, 0, 0, 0.08),
        0 2px 0 #c2b7a7;
    outline: none;
    backface-visibility: hidden;
}

.toggle-trigger:hover {
    background: linear-gradient(180deg, #f4eee5 0%, #e3dad0 100%);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.05),
        0 4px 10px rgba(0, 0, 0, 0.12),
        0 2px 0 #c2b7a7;
}

#toggle-checkbox {
    display: none;
}

#suche-box {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out, opacity 0.3s ease-in-out, margin-top 0.35s ease-in-out;
    margin-top: 0;
}

#toggle-checkbox:checked + .toggle-trigger::after {
    transform: rotate(180deg);
}

#toggle-checkbox:checked ~ #suche-box {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
    overflow: visible;
}

/* Responsives Verhalten */
@media (max-width: 860px) {
    .hero-card {
        grid-template-columns: 1fr;
        padding: 25px;
    }
    .search-content h1 {
        white-space: normal;
    }
    .image-container {
        min-height: 240px;
        order: -1;
    }
    .button-group {
        grid-template-columns: 1fr;
    }
    .momox-card {
        padding: 20px;
    }
}

@media (max-width: 580px) {
    .card, .footer-card {
        padding: 25px 20px;
    }
    .partner-grid {
        grid-template-columns: 1fr;
    }
    .footer-card p.info-text {
        text-align: left;
    }
}