/*
Theme Name: Abisko Child
Template: abisko
Version: 3.0
*/

/* Überschriften */
h1, h2, h3, h4, h5, h6 { text-transform: none !important; }
h1 { font-size: 48px !important; }
h2 { font-size: 36px !important; }
h3 { font-size: 30px !important; }
h4 { font-size: 24px !important; }
h5 { font-size: 20px !important; }
h6 { font-size: 18px !important; }


/*========================================================*/
/* Gemeinsame Formular-Stile  .user-form                  */
/*========================================================*/
.user-form {
    max-width: 640px;
    margin: 30px auto;
    padding: 20px;
    background: var(--wp--custom--role--surface);
}

.user-form h4 {
    margin: 8px 0 6px;
    font-weight: 700;
    color: var(--wp--custom--role--text-strong);
}

.user-form label {
    display: block;
    margin: 12px 0 5px;
    font-weight: 600;
    color: var(--wp--custom--role--text-strong);
}

.user-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    margin: 10px 0;
}

.user-form .checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.user-form input[type="text"],
.user-form input[type="email"],
.user-form input[type="number"],
.user-form input[type="password"],
.user-form input[type="file"],
.user-form textarea,
.user-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--wp--custom--role--border);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    background: var(--wp--custom--role--surface-sunken);
    transition: border-color .2s;
    margin-bottom: 12px;
}

.user-form input:focus,
.user-form textarea:focus,
.user-form select:focus {
    border-color: var(--wp--custom--color--neutral-600);
    background: var(--wp--custom--role--surface);
    outline: none;
}

.user-form input[type="checkbox"] {
    display: inline-block;
    width: auto;
    margin-right: 6px;
}

.user-form button[type="submit"],
.user-form button#add-variante-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--wp--custom--role--accent);
    color: var(--wp--custom--role--on-accent);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.user-form button[type="submit"]:hover { background: var(--wp--custom--role--text-body); }

#add-variante-btn {
    background: var(--wp--custom--role--surface) !important;
    color: var(--wp--custom--role--text-strong) !important;
    border: 1px solid var(--wp--custom--role--border-strong) !important;
    margin-top: 12px !important;
}
#add-variante-btn:hover { background: var(--wp--custom--role--surface-hover) !important; }

.form-intro { color: var(--wp--custom--role--text-muted); font-size: .95rem; margin-bottom: 4px; }

/* Kleine Gruppenbezeichnung oberhalb Segmented Controls */
.user-form .field-group-label,
.field-group-label {
    margin: 16px 0 4px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--wp--custom--color--neutral-600);
}

/* Trennlinie vor Einwilligungen */
.form-divider {
    border: none;
    border-top: 1px solid var(--wp--custom--role--line);
    margin: 28px 0 20px;
}

/* Consent-Labels: Checkbox oben links, Text daneben ohne Umbruchprobleme */
.user-form .checkbox-label,
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    margin: 10px 0;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"],
.user-form .checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 3px;
    width: auto;
    display: inline-block;
}

.checkbox-label span {
    font-size: .88rem;
    color: var(--wp--custom--role--text-body);
}

/* Datei-Label (nicht bold wie normale Labels) */
.user-form .file-label {
    font-weight: 600;
    font-size: .92rem;
    color: var(--wp--custom--role--text-strong);
    margin: 14px 0 5px;
    display: block;
}

/*========================================================*/
/* Toggle Switch                                          */
/*========================================================*/

/* Überschreibt display:block und font-weight:600 von .user-form label */
.user-form .toggle-row,
.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    cursor: pointer;
    user-select: none;
    font-weight: 400;
}

.toggle-row input[type="checkbox"],
.user-form .toggle-row input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--wp--custom--color--neutral-400);
    border-radius: 12px;
    flex-shrink: 0;
    transition: background .2s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--wp--custom--role--surface);
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

/* AN = grün */
.toggle-row input:checked + .toggle-slider {
    background: var(--wp--custom--color--success-solid);
}

.toggle-row input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.toggle-text {
    font-size: .95rem;
    color: var(--wp--custom--role--text-strong);
    font-weight: 500;
    line-height: 1.3;
}


/*========================================================*/
/* Segmented Control (Projektstadium)                     */
/*========================================================*/
.segmented-control {
    display: flex;
    border: 1px solid var(--wp--custom--role--border);
    border-radius: 6px;
    overflow: hidden;
    margin: 8px 0 16px;
}

.segmented-control input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.segmented-control label {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    color: var(--wp--custom--role--text-muted);
    border-right: 1px solid var(--wp--custom--role--border);
    transition: background .15s, color .15s;
    margin: 0;
}

.segmented-control label:last-of-type {
    border-right: none;
}

.segmented-control input:checked + label {
    background: var(--wp--custom--role--accent);
    color: var(--wp--custom--role--on-accent);
    font-weight: 600;
}

.segmented-control label:hover {
    background: var(--wp--custom--role--surface-hover);
}

.segmented-control input:checked + label:hover {
    background: var(--wp--custom--color--neutral-850);
}



/* Alerts */
.alert-success, .alert-error {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 14px 0;
    font-size: .95rem;
}
.alert-success { background: var(--wp--custom--color--success-bg-alt); border: 1px solid var(--wp--custom--color--success-border); color: var(--wp--custom--color--success-text-alt); }
.alert-error   { background: var(--wp--custom--color--danger-bg); border: 1px solid var(--wp--custom--color--danger-border); color: var(--wp--custom--color--danger-text); }

/* Varianten-Block im Formular */
.variante-block {
    border: 1px solid var(--wp--custom--color--neutral-275);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
    background: var(--wp--custom--role--surface-sunken);
}

.variante-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.btn-remove-variante {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wp--custom--role--text-faint);
    font-size: .85rem;
    padding: 2px 6px;
}
.btn-remove-variante:hover { color: var(--wp--custom--color--danger-solid); }

/* Bildvorschau */
.bilder-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    min-height: 0;
}


/*========================================================*/
/* Galerie-Filter + Startseiten-Galerie                   */
/*========================================================*/
#beitraege-galerie-wrapper {
    width: 100%;
}

/* Filterleisten untereinander (Desktop + Mobil), kompakt */
#beitraege-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

#beitraege-suche {
    width: 100%;
    height: 38px;
    flex: 0 0 auto;
    padding: 0 12px;
    border: 1px solid var(--wp--custom--role--border);
    border-radius: 6px;
    font-size: .9rem;
    background: var(--wp--custom--role--surface);
    box-sizing: border-box;
}

/* Filtergruppe: eine Zeile – Name links fix, Chips scrollen horizontal daneben */
.rga-filter {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.rga-filter__name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 0;
    background: var(--wp--custom--role--surface);
    border: 1px solid var(--wp--custom--role--border);
    border-radius: 6px;
    color: var(--wp--custom--role--text-muted);
    cursor: pointer;
}
.rga-filter__caret { font-size: .8rem; line-height: 1; transition: transform .15s ease; }
.rga-filter__name[aria-expanded="true"] .rga-filter__caret { transform: rotate(180deg); }

/* Zurücksetzen-× je Gruppe */
.rga-filter__clear {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--wp--custom--role--border);
    border-radius: 50%;
    background: var(--wp--custom--role--surface);
    color: var(--wp--custom--role--text-muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}
.rga-filter__clear[hidden] { display: none; }

.rga-filter__chips {
    display: flex;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.rga-filter__chips::-webkit-scrollbar { display: none; }

.rga-chip {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--wp--custom--role--border);
    border-radius: 16px;
    background: var(--wp--custom--role--surface);
    color: var(--wp--custom--role--text);
    font-size: .85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.rga-chip.is-active {
    background: var(--wp--custom--role--accent);
    color: var(--wp--custom--role--on-accent);
    border-color: var(--wp--custom--role--accent);
}

.rga-filter__dropdown {
    position: absolute;
    z-index: 30;
    top: 100%;
    left: 0;
    min-width: 220px;
    max-height: 280px;
    overflow-y: auto;
    margin: 6px 0 0;
    padding: 4px;
    list-style: none;
    background: var(--wp--custom--role--surface);
    border: 1px solid var(--wp--custom--role--border);
    border-radius: 8px;
}
.rga-filter__dropdown[hidden] { display: none; }
.rga-filter__option {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 6px;
    background: none;
    color: var(--wp--custom--role--text);
    text-align: left;
    font-size: .92rem;
    cursor: pointer;
}
.rga-filter__option:hover { background: var(--wp--custom--role--surface-hover); }
.rga-filter__option.is-active { font-weight: 600; }

/* Ansicht-Umschalter Galerie / Feed (dezent) */
#beitraege-ansicht {
    display: inline-flex;
    gap: 2px;
    margin-bottom: 12px;
    padding: 2px;
    border-radius: 999px;
    background: var(--wp--custom--role--surface-sunken);
}
.ansicht-option {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: none;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: .82rem;
    color: var(--wp--custom--role--text-muted);
    cursor: pointer;
}
.ansicht-option.is-active {
    background: var(--wp--custom--role--surface);
    color: var(--wp--custom--role--text-strong);
}

/* Feed: ein Projekt pro Bildschirm, untereinander, volle Breite, eckig */
.feed-liste { width: 100%; }
.feed-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--wp--custom--role--line);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 6px;
}
.feed-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

/* Scroll-Snap ist im Feed DAUERHAFT aktiv (Klasse .feed-snap beim Ansichtswechsel).
   Der Spotlight/Kopf ist ein eigener Snap-Punkt und klemmt oben (scroll 0) ein – dadurch
   bleibt er beim Laden sichtbar und wird beim Hochscrollen wieder angefahren; darunter
   rastet jedes Projekt ein. Kein Umschalten -> auch schwungvolles Scrollen rastet zuverlässig.
   scroll-padding-top: Projekte rasten ~20 % tiefer ein (dort schaut man hin);
   der Spotlight wird durch das negative Ergebnis auf 0 geklemmt. */
html.feed-snap {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 20vh;
    scroll-padding-top: 20svh;
}
html.feed-snap #beitraege-spotlight { scroll-snap-align: start; }

.feed-media { position: relative; width: 100%; }
.feed-swiper {
    width: 100%;
    min-height: 30svh;
    overflow: hidden;
    background: var(--wp--custom--role--surface-sunken);
}
.feed-swiper .swiper-slide { display: flex; align-items: center; justify-content: center; }
.feed-img-link { display: flex; width: 100%; }
.feed-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 82vh;
    max-height: 82svh;
    object-fit: contain;
}

/* Unsichtbar größere Bedienfläche des Swipers: breite Tap-Zonen an den Rändern,
   keine sichtbaren Pfeile, kein Beschnitt am Bild */
.feed-swiper .swiper-button-prev,
.feed-swiper .swiper-button-next {
    top: 0;
    height: 100%;
    width: 25%;
    margin-top: 0;
}
.feed-swiper .swiper-button-prev { left: 0; }
.feed-swiper .swiper-button-next { right: 0; }
.feed-swiper .swiper-button-prev::after,
.feed-swiper .swiper-button-next::after { content: none; }

/* Bildzähler oben rechts */
.feed-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--wp--custom--role--accent);
    color: var(--wp--custom--role--on-accent);
    font-size: .78rem;
    font-weight: 600;
}
/* Projekt-Seite nutzt denselben .feed-counter -> Swiper-Container als Positionsbezug */
.abisko-gallery .swiper-container { position: relative; }

.feed-info { padding: 10px 2px 0; }

/* Kopf: Initial-Avatar + Designer + Hochschule · Jahr */
.feed-head { display: flex; align-items: center; gap: 10px; }
.feed-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--wp--custom--role--surface-sunken);
    color: var(--wp--custom--role--text-strong);
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
}
.feed-head__text { min-width: 0; line-height: 1.2; }
.feed-designer { font-weight: 600; text-decoration: none; color: var(--wp--custom--role--text); }
.feed-meta { margin-top: 1px; font-size: .82rem; color: var(--wp--custom--role--text-muted); }

.feed-title { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.25; }
.feed-title a { text-decoration: none; color: var(--wp--custom--role--text); }

.feed-desc {
    margin-top: 4px;
    color: var(--wp--custom--role--text-body);
    font-size: .95rem;
    line-height: 1.5;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.feed-desc.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.feed-more {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: none;
    margin-top: 2px;
    padding: 0;
    font-size: .88rem;
    font-weight: 600;
    color: var(--wp--custom--role--text-muted);
    cursor: pointer;
}
.feed-more[hidden] { display: none; }

#beitraege-galerie {
    width: 100%;
}

/* Grid: 4 Spalten Desktop → 3 → 2 (Vinted-Stil) → 2 auf Mobilgeräten */
.alle-beitraege-grid {
    column-count: 4;
    column-gap: 18px;
}

@media (max-width: 1100px) {
    .alle-beitraege-grid { column-count: 3; }
}
@media (max-width: 750px) {
    .alle-beitraege-grid { column-count: 2; column-gap: 10px; }
}
/* Kein Einzel-Spalten-Layout mehr: auf Mobil bleibt 2-spaltig wie bei Vinted */

.beitrag-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 18px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    break-inside: avoid;
    transition: transform .2s;
}

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

.beitrag-thumb-wrapper { overflow: hidden; }

.beitrag-thumb {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.beitrag-textblock {
    padding: 6px 0 0;
}

.beitrag-titel a {
    color: var(--wp--custom--role--text);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.3;
}

.beitrag-titel { margin: 0; }

.beitrag-name {
    font-weight: 400;
    font-size: .82rem;
    color: var(--wp--custom--role--text-subtle);
    line-height: 1.0;
    margin-top: 0;
}

.beitrag-name a {
    color: var(--wp--custom--role--text-subtle);
    text-decoration: none;
}
.beitrag-name a:hover { text-decoration: underline; }


/*========================================================*/
/* Swiper / Bildgalerie auf Beitragsseiten                */
/*========================================================*/
.abisko-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    margin: 1.5rem 0;
    box-sizing: border-box;
}

.swiper-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    box-sizing: border-box;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100% !important;
    box-sizing: border-box;
}

.gallery-image {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    margin: 0 auto;
}

.swiper-button-prev, .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--wp--custom--role--text);
    cursor: pointer;
}
.swiper-button-prev { left: 8px; }
.swiper-button-next { right: 8px; }
.swiper-button-prev:hover, .swiper-button-next:hover { opacity: 1; }

@media (max-width: 600px) {
    /* Seitlichen Inhaltsabstand (theme.json: 18px) auf Mobil auf 9px reduzieren */
    body { --wp--style--root--padding-left: 9px; --wp--style--root--padding-right: 9px; }

    .swiper-button-prev, .swiper-button-next { width: 22px; height: 22px; --swiper-navigation-size: 22px; }
    .swiper-button-prev { left: 2px; }
    .swiper-button-next { right: 2px; }
    /* Galerie um die seitliche Container-Polsterung herausziehen (kein 100vw → kein Überlauf, Swiper bleibt heil) */
    .abisko-gallery { width: auto; margin-inline: calc(-1 * var(--wp--style--root--padding-left)); }
}

.swiper-pagination { position: absolute; left: 50%; transform: translateX(-50%); bottom: 8px; z-index: 20; }
.swiper-pagination-bullet { background: var(--wp--custom--role--text); opacity: .6; }
.swiper-pagination-bullet-active { background: var(--wp--custom--color--black); opacity: 1; }


/*========================================================*/
/* Werk-Einzelseite: Designer-Card                        */
/*========================================================*/
.werk-designer-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--wp--custom--role--line);
    flex-wrap: wrap;
}


.werk-designer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.designer-name-link {
    font-weight: 600;
    color: var(--wp--custom--role--text);
    text-decoration: none;
    font-size: 1rem;
}
.designer-name-link:hover { text-decoration: underline; }

.designer-hochschule {
    font-size: .82rem;
    color: var(--wp--custom--role--text-faint);
}

.designer-bio-kurz {
    font-size: .85rem;
    color: var(--wp--custom--color--neutral-650);
}

.werk-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: auto;
}


/*========================================================*/
/* Badges (Stadium, Sichtbarkeit, Status)                  */
/*========================================================*/
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
}

.badge-concept { background: var(--wp--custom--color--warning-bg); color: var(--wp--custom--color--warning-text); }
.badge-wip     { background: var(--wp--custom--color--info-bg); color: var(--wp--custom--color--info-text); }
.badge-final   { background: var(--wp--custom--color--success-bg); color: var(--wp--custom--color--success-text); }

.badge-sicht-public  { background: var(--wp--custom--color--success-bg); color: var(--wp--custom--color--success-text); }
.badge-sicht-link    { background: var(--wp--custom--color--warning-bg); color: var(--wp--custom--color--warning-text); }
.badge-sicht-private { background: var(--wp--custom--color--danger-bg); color: var(--wp--custom--color--danger-text); }

.badge-wp-publish { background: var(--wp--custom--color--success-bg); color: var(--wp--custom--color--success-text); }
.badge-wp-draft   { background: var(--wp--custom--color--neutral-300); color: var(--wp--custom--color--neutral-820); }
.badge-wp-pending { background: var(--wp--custom--color--warning-bg); color: var(--wp--custom--color--warning-text); }


/*========================================================*/
/* Werk-Details-Tabelle                                   */
/*========================================================*/
.werk-details-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: .93rem;
}

.werk-details-tabelle th,
.werk-details-tabelle td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--wp--custom--color--neutral-150);
    text-align: left;
    vertical-align: top;
}

.werk-details-tabelle th {
    font-weight: 600;
    color: var(--wp--custom--role--text);
    width: 38%;
}

.werk-details-tabelle tr:last-child th,
.werk-details-tabelle tr:last-child td {
    border-bottom: none;
}


/*========================================================*/
/* Varianten auf der Werkseite (Tab-Wechsel)              */
/*========================================================*/
.variante-tabs {
    margin: 4px 0 20px;
}

.variante-tabs label {
    padding: 6px 8px;
    font-size: .8rem;
}

.variante-panel {
    margin-top: 8px;
}

.variante-panel .werk-beschreibung {
    margin: 20px 0;
}


/*========================================================*/
/* Anfrage-Formular (Kontakt / Kauf)                      */
/*========================================================*/
.anfrage-container {
    margin: 24px 0;
}

.anfrage-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.anfrage-toggle-btn {
    padding: 10px 20px;
    border: 1px solid var(--wp--custom--role--border-strong);
    border-radius: 6px;
    background: var(--wp--custom--role--surface);
    cursor: pointer;
    font-size: .95rem;
    font-weight: 600;
    transition: background .2s, border-color .2s;
}
.anfrage-toggle-btn:hover {
    background: var(--wp--custom--role--surface-hover);
    border-color: var(--wp--custom--role--text-faint);
}

.anfrage-form {
    max-width: 560px;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--wp--custom--role--line);
    border-radius: 8px;
}

.anfrage-meldung {
    margin-top: 10px;
    font-size: .95rem;
    color: var(--wp--custom--role--text-strong);
}


/*========================================================*/
/* Meine Werke (Profilseite)                              */
/*========================================================*/
.meine-werke-liste {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0;
}

.mein-werk-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--wp--custom--role--line);
    border-radius: 8px;
    background: var(--wp--custom--role--surface-sunken);
}

.mein-werk-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.mein-werk-info {
    flex: 1;
    min-width: 0;
}

.mein-werk-titel {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
}
.mein-werk-titel a { color: var(--wp--custom--role--text); text-decoration: none; }
.mein-werk-titel a:hover { text-decoration: underline; }

.mein-werk-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.mein-werk-aktionen {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-aktion {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--wp--custom--role--border);
    border-radius: 5px;
    background: var(--wp--custom--role--surface);
    color: var(--wp--custom--role--text-strong);
    font-size: .82rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.btn-aktion:hover { background: var(--wp--custom--color--neutral-150); }
.btn-delete { border-color: var(--wp--custom--color--danger-border); color: var(--wp--custom--color--danger-text); }
.btn-delete:hover { background: var(--wp--custom--color--danger-bg); }

@media (max-width: 500px) {
    .mein-werk-item { flex-direction: column; }
    .mein-werk-thumb { width: 100%; height: 160px; }
}


/*========================================================*/
/* Meine Anfragen                                         */
/*========================================================*/
.meine-anfragen-liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.anfrage-card {
    padding: 14px 16px;
    border: 1px solid var(--wp--custom--role--line);
    border-radius: 8px;
    background: var(--wp--custom--role--surface-sunken);
}

.anfrage-card.anfrage-typ-kauf {
    border-left: 3px solid var(--wp--custom--color--info-text);
}

.anfrage-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
    font-size: .83rem;
    color: var(--wp--custom--role--text-subtle);
}

.anfrage-typ-badge {
    font-weight: 700;
    color: var(--wp--custom--role--text-strong);
    font-size: .82rem;
    background: var(--wp--custom--color--neutral-250);
    padding: 2px 8px;
    border-radius: 10px;
}

.anfrage-werk { font-weight: 600; color: var(--wp--custom--role--text-body); }

.anfrage-absender { margin: 0 0 6px; font-size: .93rem; }
.anfrage-absender a { color: var(--wp--custom--role--text-strong); }

.anfrage-nachricht {
    font-size: .9rem;
    color: var(--wp--custom--role--text-body);
    margin: 0;
    white-space: pre-wrap;
}


/*========================================================*/
/* Profilseite: Avatar-Bereich                            */
/*========================================================*/
.profil-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.profil-layout .user-form {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.profil-avatar-bereich {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-upload-profilbild {
    display: inline-block;
    padding: 7px 14px;
    border: 1px dashed var(--wp--custom--color--neutral-500);
    border-radius: 5px;
    background: var(--wp--custom--role--surface-sunken);
    color: var(--wp--custom--role--text-muted);
    font-size: .85rem;
    cursor: pointer;
    margin-bottom: 4px;
    transition: background .15s, border-color .15s;
}
.btn-upload-profilbild:hover {
    background: var(--wp--custom--color--neutral-150);
    border-color: var(--wp--custom--color--neutral-650);
    color: var(--wp--custom--color--neutral-900);
}

.btn-remove-profilbild {
    background: none;
    border: none;
    color: var(--wp--custom--role--text-faint);
    font-size: .78rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s;
}
.btn-remove-profilbild:hover {
    color: var(--wp--custom--role--text-muted);
}

.profil-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wp--custom--role--border);
}

@media (max-width: 540px) {
    .profil-layout {
        flex-direction: column-reverse;
    }
    .profil-avatar-bereich {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }
}


/*========================================================*/
/* Designer-Profil (öffentlich)                           */
/*========================================================*/
.designer-profil { max-width: 900px; }

.designer-profil-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.designer-avatar-gross {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.designer-bio { color: var(--wp--custom--role--text-muted); line-height: 1.6; max-width: 500px; }


/*========================================================*/
/* Abstand Header → Inhalt: wie auf der Homepage (kein Leerraum) */
/*========================================================*/

/* page.html / single.html haben margin-top: spacing-100 als Inline-Style.
   Auf der Homepage existiert dieser Wrapper nicht → kein Effekt dort. */
main > .wp-block-group {
    margin-top: 0 !important;
}


/*========================================================*/
/* Seitenrand: gleich wie Galerie-Spaltenabstand          */
/*========================================================*/

/* Direktes Padding auf den Block-Wrapper (überschreibt WP global styles) */
.wp-site-blocks {
    padding-left:  18px !important;
    padding-right: 18px !important;
}

/* Header ist alignfull und bricht per Design aus dem Root-Padding heraus.
   Dem inneren alignwide-Inhalt (Nav + Sitetitle) geben wir dasselbe Padding zurück. */
header.site-header .wp-block-group.alignwide {
    padding-left:  18px;
    padding-right: 18px;
    box-sizing: border-box;
}

@media (max-width: 750px) {
    .wp-site-blocks {
        padding-left:  10px !important;
        padding-right: 10px !important;
    }
    header.site-header .wp-block-group.alignwide {
        padding-left:  10px;
        padding-right: 10px;
    }
}


/*========================================================*/
/* Header-Navigation (minimalistisch)                     */
/*========================================================*/
/* Header zu 30% durchscheinend: surface-Rolle + Alpha via color-mix */
.site-header { background-color: color-mix(in srgb, var(--wp--custom--role--surface) 70%, transparent); }

/* Startseite: Header über das Spotlight legen (Bild reicht unter den Header) */
.home .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.home .wp-site-blocks { padding-top: 0; }

.site-nav { display: flex; align-items: center; gap: 1.4em; }
.site-nav a { color: inherit; text-decoration: none; font-size: .95rem; }
.site-nav a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .site-nav { gap: 1.1em; }
}


/*========================================================*/
/* Spotlight – zufälliges Projekt (oben in der Galerie)   */
/*========================================================*/
.rga-spotlight {
    display: block;
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 24px;
    color: var(--wp--custom--role--on-accent);
    text-decoration: none;
}

.rga-spotlight__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
}

.rga-spotlight__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 56px 22px 18px;
    background: linear-gradient(to top,
        color-mix(in srgb, var(--wp--custom--color--black) 62%, transparent),
        transparent);
}

.rga-spotlight__title { font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.rga-spotlight__designer { font-size: .9rem; opacity: .9; }
.rga-spotlight:hover .rga-spotlight__title { text-decoration: underline; }


/*========================================================*/
/* Footer – minimalistisch & mobil geordnet               */
/*========================================================*/
.site-footer { border-top: 1px solid var(--wp--custom--role--border-strong); }

.site-footer__links a { color: inherit; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }

/* alignwide-Inhalt bekommt – wie der Header – das Seiten-Padding zurück */
.site-footer .site-footer__inner {
    padding-left:  18px;
    padding-right: 18px;
    box-sizing: border-box;
}

/* Mobil: gestapelt, zentriert, klar geordnet */
@media (max-width: 600px) {
    .site-footer .site-footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        row-gap: 14px;
    }
}

@media (max-width: 750px) {
    .site-footer .site-footer__inner { padding-left: 10px; padding-right: 10px; }
}


/*========================================================*/
/* Responsive                                             */
/*========================================================*/
@media (max-width: 600px) {
    .werk-designer-card { gap: 10px; }
    .werk-badges { margin-left: 0; }

    .anfrage-buttons { flex-direction: column; }
    .anfrage-toggle-btn { width: 100%; text-align: center; }
}

/*========================================================*/
/* AJAX-Bildupload – Vorschau-Items                       */
/*========================================================*/
.bild-upload-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 4px;
    border-radius: 4px;
    border: 2px solid var(--wp--custom--role--border);
    overflow: hidden;
    vertical-align: top;
    background: var(--wp--custom--color--neutral-75);
}

.bild-upload-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bild-remove-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: var(--wp--custom--role--on-accent);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bild-remove-btn:hover { background: rgba(0, 0, 0, 0.8); }

/* Reihenfolge-Badge (Zahl oben links) */
.bild-order-badge {
    position: absolute;
    top: 3px;
    left: 3px;
    min-width: 18px;
    height: 18px;
    padding: 0 3px;
    background: var(--wp--custom--color--neutral-850);
    color: var(--wp--custom--role--on-accent);
    border-radius: 9px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    user-select: none;
    display: none;
}
.bild-order-badge:not(:empty) { display: block; }

/* Ausgewählter Zustand (Reihenfolge festgelegt) */
.bild-upload-item.bild-selected { border-color: var(--wp--custom--color--neutral-850); }

/* Spinner */
.bild-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid var(--wp--custom--role--border);
    border-top-color: var(--wp--custom--color--neutral-850);
    border-radius: 50%;
    animation: rga-spin 0.75s linear infinite;
}

@keyframes rga-spin { to { transform: rotate(360deg); } }

/* Fehler-Zustand */
.bild-upload-item.bild-error {
    background: var(--wp--custom--color--danger-bg-soft);
    border-color: var(--wp--custom--color--danger-border-soft);
    font-size: 11px;
    color: var(--wp--custom--color--danger-solid);
    text-align: center;
    padding: 6px;
}

/*--*/
