/* Autopark Alam – Website Feedback 1.0.1
 * Optik bewusst an Impressum / rechtliche Inhaltsseiten angelehnt.
 */
.apa-feedback {
    --alam-card: #ffffff;
    --alam-text: var(--e-global-color-text, #333333);
    --alam-border: var(--e-global-color-secondary, #dedede);
    --alam-accent: var(--e-global-color-primary, #b59a6a);
    --alam-accent-light: lightgray;
    --alam-dark: var(--e-global-color-accent, #252525);
    --alam-bg: #f7f7f7;
    --alam-muted: #666666;
    --alam-focus: #005fcc;
    box-sizing: border-box;
    width: 100%;
    color: var(--alam-text);
    font-family: inherit;
    line-height: 1.7;
}
.apa-feedback *,
.apa-feedback *::before,
.apa-feedback *::after { box-sizing: border-box; }

.apa-feedback-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* Hero wie auf dem Impressum */
.apa-feedback-hero {
    padding: 48px 45px;
    margin-bottom: 30px;
    background: var(--alam-dark);
    color: #ffffff;
    border-radius: 10px;
    border-left: 6px solid var(--alam-accent);
}
.apa-feedback-eyebrow {
    margin: 0 0 8px;
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #e4d5bb;
}
.apa-feedback-hero h1 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    font-weight: 700;
}
.apa-feedback-hero > p:last-child {
    max-width: 800px;
    margin: 0;
    color: #f2f2f2;
    font-size: 1.05rem;
}

/* Hauptkarte analog zu .alam-impressum-section */
.apa-feedback-form {
    margin: 0;
    padding: 34px 38px;
    background: var(--alam-card);
    border: 1px solid var(--alam-border);
    border-radius: 8px;
    box-shadow: none;
}
.apa-feedback-fieldset { border: 0; padding: 0; margin: 0; }
.apa-feedback-fieldset legend {
    margin: 0 0 18px;
    color: var(--alam-dark);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    line-height: 1.3;
    font-weight: 700;
}

.apa-feedback-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.apa-feedback-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 154px;
    padding: 20px;
    background: var(--alam-bg);
    border: 1px solid var(--alam-border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.apa-feedback-type-card:hover { border-color: var(--alam-accent); }
.apa-feedback-type-card.is-selected {
    background: var(--alam-card);
    border-color: var(--alam-accent);
    box-shadow: inset 4px 0 0 var(--alam-accent);
}
.apa-feedback-type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.apa-feedback-type-icon {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    border-radius: 6px;
    background: var(--alam-dark);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}
.apa-feedback-type-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--alam-dark);
    font-size: 16px;
}
.apa-feedback-type-card small {
    color: var(--alam-muted);
    font-size: 13px;
    line-height: 1.5;
}

.apa-feedback-details {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--alam-border);
}
.apa-feedback-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.apa-feedback-field { margin-bottom: 20px; }
.apa-feedback-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--alam-dark);
    font-weight: 700;
}
.apa-feedback-field input[type=email],
.apa-feedback-field input[type=file],
.apa-feedback-field select,
.apa-feedback-field textarea {
    width: 100%;
    padding: 13px 14px;
    background: var(--alam-card);
    border: 1px solid var(--alam-border);
    border-radius: 6px;
    color: var(--alam-text);
    font: inherit;
}
.apa-feedback-field textarea {
    min-height: 160px;
    resize: vertical;
}
.apa-feedback-field input:focus,
.apa-feedback-field select:focus,
.apa-feedback-field textarea:focus {
    outline: 3px solid color-mix(in srgb, var(--alam-focus) 28%, transparent);
    outline-offset: 1px;
    border-color: var(--alam-focus);
}
.apa-feedback-field small,
.apa-optional {
    color: var(--alam-muted);
    font-size: 12px;
    font-weight: 400;
}

/* Infobox entspricht dem Impressum-Muster */
.apa-feedback-context {
    margin: 4px 0 20px;
    padding: 20px 22px;
    background: var(--alam-bg);
    border-left: 4px solid var(--alam-accent);
    border-radius: 4px;
}
.apa-feedback-context strong {
    display: block;
    margin-bottom: 5px;
    color: var(--alam-dark);
}
.apa-feedback-context p {
    margin: 0;
    color: var(--alam-muted);
    font-size: 13px;
    line-height: 1.6;
}
.apa-feedback-privacy {
    margin: 0 0 20px;
    color: var(--alam-muted);
    font-size: 12px;
    line-height: 1.6;
}
.apa-feedback-privacy a,
.apa-feedback-inline-link {
    color: #164f79;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.apa-feedback-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    background: var(--alam-dark);
    border: 1px solid var(--alam-dark);
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}
.apa-feedback-submit:hover {
    background: var(--alam-accent);
    border-color: var(--alam-accent);
    color: var(--alam-dark);
}

.apa-feedback-success {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 0 0 30px;
    padding: 20px 22px;
    background: var(--alam-bg);
    border-left: 4px solid var(--alam-accent);
    border-radius: 4px;
}
.apa-feedback-success-icon {
    display: flex;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    background: var(--alam-dark);
    border-radius: 50%;
    color: #ffffff;
    font-weight: 800;
}
.apa-feedback-success h2 {
    margin: 0 0 4px;
    color: var(--alam-dark);
    font-size: 1.25rem;
}
.apa-feedback-success p { margin: 0; color: var(--alam-muted); }

.apa-feedback-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}
.apa-feedback-details[hidden] { display: none !important; }

/* Globaler kleiner Problem-melden-Button */
.apa-feedback-floating {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9994;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    background: var(--e-global-color-accent, #252525);
    border-left: 4px solid var(--e-global-color-primary, #b59a6a);
    border-radius: 6px;
    box-shadow: 0 6px 22px rgba(0,0,0,.16);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none !important;
    transition: transform .18s ease, opacity .18s ease;
}
.apa-feedback-floating::before {
    content: '⚑';
    margin-right: 7px;
    font-size: 14px;
}
.apa-feedback-floating:hover {
    transform: translateY(-2px);
    color: #ffffff !important;
    opacity: .95;
}

.apa-feedback a:focus-visible,
.apa-feedback button:focus-visible,
.apa-feedback-type-card:focus-within,
.apa-feedback-floating:focus-visible {
    outline: 3px solid var(--alam-focus, #005fcc);
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .apa-feedback-wrap { padding: 15px 12px 40px; }
    .apa-feedback-hero { padding: 32px 25px; }
    .apa-feedback-form { padding: 26px 22px; }
    .apa-feedback-type-grid,
    .apa-feedback-row { grid-template-columns: 1fr; }
    .apa-feedback-type-card { min-height: auto; }
    .apa-feedback-floating {
        left: 12px;
        bottom: 12px;
        min-height: 38px;
        padding: 0 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .apa-feedback *,
    .apa-feedback *::before,
    .apa-feedback *::after,
    .apa-feedback-floating {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
