:root {
    --bg-page: #f2ede4;
    --card-bg: #fcfbfa;
    --primary-green: #688255;
    --primary-green-hover: #556c45;
    --secondary-bg: #e6dfd5;
    --secondary-hover: #d8cfc3;
    --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;
}

/* Von 720px auf 480px reduziert (~1/3 schmaler) */
.main-wrapper {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.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;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px 24px;
    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.4rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: bold;
}

/* Hervorhebung für Suchbegriffe (q, s, stw) */
.card h3 {
    font-family: Georgia, serif;
    font-size: 1.3rem;
    color: var(--accent-orange);
    margin-bottom: 14px;
    font-weight: bold;
    word-wrap: break-word;
}

/* Button-Styling */
.btn {
    display: block;
    width: 100%;
    background-color: var(--primary-green) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 18px !important;
    border-radius: 25px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(104, 130, 85, 0.2) !important;
    transition: background-color 0.2s ease-in-out !important;
    margin-top: 10px;
}

.btn:hover, .btn:active, .btn:focus {
    background-color: var(--primary-green-hover) !important;
}

.btn-secondary {
    background-color: var(--text-muted) !important;
    box-shadow: none !important;
}

.btn-secondary:hover {
    background-color: var(--text-dark) !important;
}

/* Entfernen alter Pseudoelemente */
a.btn::before, a.btn::after {
    content: "" !important;
    display: none !important;
}

/* Suchformular Styles */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.search-input {
    width: 100%;
    padding: 11px 16px;
    border-radius: 20px;
    border: 1px solid var(--secondary-hover);
    background-color: #fff;
    font-size: 0.92rem;
    text-align: center;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-green);
}

.search-buttons {
    display: flex;
    gap: 8px;
}

.search-buttons .btn {
    margin-top: 0;
}

/* Accordion / Toggle */
.toggle-trigger {
    display: inline-block;
    background-color: var(--secondary-bg);
    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-in-out;
    user-select: none;
    border: none;
}

.toggle-trigger:hover {
    background-color: var(--secondary-hover);
}

.toggle-trigger::after {
    content: " ▼";
    font-size: 0.75rem;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.25s ease;
}

#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;
}

/* Footer-Design */
.footer-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 22px 24px;
    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.5;
}

.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.48;
}

.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: 12px auto;
    width: 75%;
}

@media (max-width: 500px) {
    .card, .footer-card {
        padding: 20px 16px;
    }
}