/* ═══════════════════════════════════════════════════════════════════════════
   Komponenten-CSS (Shortcodes, Kontaktformular)
   Wird bei jedem Update überschrieben und nach style.css geladen. Eigene
   Anpassungen gehören ins freie CSS (custom.css), nicht hierher.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Kontaktformular ───────────────────────────────────────────────────── */

/* Honeypot — für Bots unsichtbar, aber nicht via display:none (würden manche Bots ignorieren) */
.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tabindex: -1;
}

.contact-form {
    max-width: 560px;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-field label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.03em;
}

.contact-field .required {
    color: var(--color-accent, #c0392b);
    margin-left: 0.15rem;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--color-text);
}

.contact-field textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.contact-btn {
    align-self: flex-start;
    padding: 0.7rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-bg, #fff);
    background: var(--color-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.contact-btn:hover {
    opacity: 0.8;
}

.contact-success,
.contact-error {
    padding: 0.85rem 1.1rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ─── Kategorien ───────────────────────────────────────────────────────── */

/* Linkliste aus [category-list]. Element im Selektor, damit die Regeln
   gegen .content-text ul / .content-text a gewinnen. */
ul.category-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    border-top: 1px solid var(--color-border);
}

.category-list li {
    margin: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.category-list a {
    color: var(--color-link);
    text-decoration: none;
}

.category-list a:hover {
    color: var(--color-link-hover);
}

/* Karten aus [category-list style="cards"] */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

a.category-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--color-bg);
    color: var(--color-text);
    text-decoration: none;
    transition: border-color 0.2s ease;
}

a.category-card:hover {
    border-color: var(--color-link-hover);
}

/* .content-text img setzt Aussenabstand und Radius, hier nicht erwünscht */
.category-card .category-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

.category-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    padding: 1rem 1rem 0;
}

.category-card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-light);
    padding: 0.5rem 1rem 0;
}

.category-card > :last-child {
    padding-bottom: 1rem;
}

.category-card > .category-card-image:last-child {
    padding-bottom: 0;
}

/* Kategorien der Seite unter dem Inhalt */
.page-categories {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-light);
}
