/* ── Wer macht was – Frontend-Styles ───────────────────────────── */

/* ── Personenkacheln ──────────────────────────────────────────── */
.wmw-personen-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.wmw-personen-grid.wmw-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wmw-personen-grid.wmw-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wmw-personen-grid.wmw-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .wmw-personen-grid.wmw-cols-3,
    .wmw-personen-grid.wmw-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wmw-personen-grid { grid-template-columns: 1fr !important; }
}

.wmw-person-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 6px;
    background: #f7fafc;
    border: 1px solid #e2eaf2;
    transition: box-shadow 0.2s;
}

.wmw-person-card:hover {
    box-shadow: 0 2px 10px rgba(28, 63, 110, 0.12);
}

.wmw-person-photo img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.wmw-person-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.88em;
    line-height: 1.5;
}

.wmw-person-name {
    font-size: 1em;
    font-weight: 700;
    color: #1c3f6e;
}

.wmw-person-phone a,
.wmw-person-email a {
    color: #555;
    text-decoration: none;
}

.wmw-person-phone a:hover,
.wmw-person-email a:hover {
    color: #1c3f6e;
    text-decoration: underline;
}

.wmw-person-aufgabe {
    color: #333;
    font-size: 0.9em;
}

.wmw-person-notiz {
    color: #777;
    font-size: 0.85em;
}

/* ── Anzeigebereich (Hauptausgabe) ────────────────────────────── */
.wmw-anzeige {
    margin: 20px 0;
}

/* Bereich-Überschrift */
.wmw-bereich {
    margin-bottom: 36px;
}

.wmw-bereich-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #1c3f6e;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #c6d9ee;
}

/* Abschnitt / Gruppe */
.wmw-gruppe {
    margin-bottom: 24px;
}

.wmw-gruppe-title {
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    background: #1c3f6e;
    padding: 7px 14px;
    margin-bottom: 12px;
    border-radius: 3px;
}

/* ── Listenmodus ──────────────────────────────────────────────── */
.wmw-list-mode {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e0e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.wmw-list-row {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    border-bottom: 1px solid #eef2f7;
    gap: 8px;
    font-size: 0.92em;
}

.wmw-list-row:last-child { border-bottom: none; }

.wmw-list-row:nth-child(even) {
    background: #f5f8fc;
}

.wmw-row-aufgabe {
    flex: 1;
    min-width: 0;
    color: #333;
}

.wmw-row-dots {
    flex: 1;
    border-bottom: 1px dotted #aab8cc;
    margin: 0 8px;
    height: 1px;
    align-self: center;
}

.wmw-row-person {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    text-align: right;
}

.wmw-list-photo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.wmw-row-notiz {
    display: block;
    font-size: 0.82em;
    color: #777;
    font-style: italic;
}

/* ── Kartenmodus ──────────────────────────────────────────────── */
.wmw-cards-mode {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .wmw-cards-mode { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .wmw-cards-mode { grid-template-columns: 1fr; }
}

/* ── PDF-Button ───────────────────────────────────────────────── */
.wmw-pdf-button {
    display: inline-block;
    background: #1c3f6e;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95em;
    transition: background 0.2s;
    margin: 8px 0;
}

.wmw-pdf-button:hover {
    background: #153260;
}

/* ── Keine Ergebnisse ─────────────────────────────────────────── */
.wmw-no-results {
    padding: 16px;
    background: #fff3cd;
    border-left: 4px solid #e6a817;
    color: #555;
    border-radius: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   VOLLSEITE  [wmw_vollseite]  –  IHK-Akademie-Schwaben-Design
   ═══════════════════════════════════════════════════════════════ */

.wmw-vollseite {
    font-family: Arial, Helvetica, sans-serif;
    color: #1a1a1a;
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* ── IHK-Farbstreifen ────────────────────────────────────────── */
.wmw-vs-stripe {
    height: 9px;
    background: linear-gradient(to right,
        #7b3082   0%,   #7b3082   9.09%,
        #f5c518   9.09%,  #f5c518  18.18%,
        #4caf50  18.18%, #4caf50  27.27%,
        #e8731a  27.27%, #e8731a  36.36%,
        #c0392b  36.36%, #c0392b  45.45%,
        #e87a7a  45.45%, #e87a7a  54.55%,
        #5baee3  54.55%, #5baee3  63.64%,
        #26a69a  63.64%, #26a69a  72.73%,
        #e91e8c  72.73%, #e91e8c  81.82%,
        #f5a623  81.82%, #f5a623  90.91%,
        #8dc63f  90.91%, #8dc63f 100%
    );
    margin-bottom: 0;
}

/* ── Seitenkopf ──────────────────────────────────────────────── */
.wmw-vs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0 14px;
    border-bottom: 2px solid #c6d5e8;
    margin-bottom: 24px;
}

.wmw-vs-pre {
    display: block;
    font-size: 1em;
    color: #555;
    margin-bottom: 2px;
}

.wmw-vs-title {
    font-size: 2.2em;
    font-weight: 900;
    color: #1c3f6e;
    line-height: 1;
    margin: 0;
}

/* IHK-Logo CSS */
.wmw-vs-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.wmw-vs-logo-diamond {
    width: 26px;
    height: 26px;
    background: #1c3f6e;
    transform: rotate(45deg);
    position: relative;
    flex-shrink: 0;
}
.wmw-vs-logo-diamond::after {
    content: "";
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    background: #f5c518;
}

.wmw-vs-logo-text strong {
    display: block;
    font-size: 1.4em;
    font-weight: 900;
    color: #1c3f6e;
    line-height: 1;
}
.wmw-vs-logo-text span {
    font-size: 0.8em;
    color: #1c3f6e;
    line-height: 1.3;
}

/* ── Personenübersicht ───────────────────────────────────────── */
.wmw-vs-section { margin-bottom: 36px; }

.wmw-vs-section-title {
    font-size: 1.4em;
    color: #1c3f6e;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 2px solid #dde8f4;
}

.wmw-vs-person-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 760px) {
    .wmw-vs-person-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .wmw-vs-person-grid { grid-template-columns: 1fr; }
}

.wmw-vs-person-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px;
    background: #f7fafc;
    border: 1px solid #e2eaf2;
    border-radius: 5px;
    transition: box-shadow 0.2s;
}
.wmw-vs-person-card:hover {
    box-shadow: 0 2px 10px rgba(28,63,110,0.1);
}

.wmw-vs-photo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.wmw-vs-person-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85em;
    line-height: 1.5;
}
.wmw-vs-person-info strong {
    font-size: 0.95em;
    color: #1c3f6e;
}
.wmw-vs-person-info a { color: #555; text-decoration: none; }
.wmw-vs-person-info a:hover { color: #1c3f6e; text-decoration: underline; }

/* ── Bereich-Titel ───────────────────────────────────────────── */
.wmw-vs-bereich-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #1c3f6e;
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 2px solid #c6d5e8;
}

/* ── Gruppe ──────────────────────────────────────────────────── */
.wmw-vs-gruppe { margin-bottom: 22px; }

.wmw-vs-gruppe-title {
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    background: #1c3f6e;
    padding: 7px 14px;
    margin-bottom: 10px;
    border-radius: 3px;
}

/* ── Listenmodus ─────────────────────────────────────────────── */
.wmw-vs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e0e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.wmw-vs-list-row {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    border-bottom: 1px solid #eef2f7;
    gap: 8px;
    font-size: 0.9em;
}
.wmw-vs-list-row:last-child { border-bottom: none; }
.wmw-vs-list-row:nth-child(even) { background: #f5f8fc; }

.wmw-vs-aufgabe { flex: 1; min-width: 0; }
.wmw-vs-dots {
    flex: 1;
    border-bottom: 1px dotted #aab8cc;
    margin: 0 6px;
    height: 1px;
    align-self: center;
}
.wmw-vs-person {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.wmw-vs-list-photo {
    width: 28px; height: 28px;
    border-radius: 50%; object-fit: cover;
}
.wmw-vs-person em {
    display: block;
    font-size: 0.82em;
    color: #777;
}

/* ── Kartenmodus ─────────────────────────────────────────────── */
.wmw-vs-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 760px) { .wmw-vs-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .wmw-vs-cards { grid-template-columns: 1fr; } }

.wmw-vs-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    background: #f7fafc;
    border: 1px solid #e2eaf2;
    border-radius: 5px;
}
.wmw-vs-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85em;
    line-height: 1.5;
}
.wmw-vs-card-info strong { font-size: 0.95em; color: #1c3f6e; }
.wmw-vs-card-info a { color: #555; text-decoration: none; }
.wmw-vs-card-info a:hover { color: #1c3f6e; }
.wmw-vs-card-aufgabe { color: #333; }
.wmw-vs-card-info em { color: #777; font-size: 0.9em; }

/* ── PDF-Download-Button am Ende ─────────────────────────────── */
.wmw-vs-download-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 18px 24px;
    background: #f0f4fa;
    border-top: 3px solid #1c3f6e;
    border-radius: 0 0 5px 5px;
    flex-wrap: wrap;
}

.wmw-vs-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1c3f6e;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1em;
    transition: background 0.2s;
    white-space: nowrap;
}
.wmw-vs-download-btn:hover { background: #153260; }

.wmw-vs-download-hint {
    font-size: 0.85em;
    color: #666;
}
