/* IWWIT: aus der Original-style.css ausgelagerte Regeln. Originalreihenfolge pro Datei erhalten. */
/* #region 23. Single-Template: Ikonen der Community */

/* =========================================================
   23. Single-Template: Ikonen der Community
   ---------------------------------------------------------
   Ausgelagert aus single-ikonen.php.
   Steuert Hero, Sticky-Navigation, Inhaltsbereich und Mobile-Ansicht
   für Beiträge der Kategorie „Ikonen“.
   ========================================================= */


:root {
    --ik-font: 'Barlow Semi Condensed', Arial, sans-serif;
      --wp--preset--spacing--30: 10px;

    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --primary-color: #2c3e50;
    --accent-color: #38617B;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #eeeeee;
    --quote-bg: #f9f9f9;

    /* Wird per JS dynamisch überschrieben (ResizeObserver auf dem Header). */
    --ik-header-height: 86px;
    --ik-header-height-mobile: 72px;

    --ik-radius-xl: 22px;
    --ik-radius-lg: 18px;
    --ik-shadow: 0 16px 44px rgba(0, 0, 0, .08);
    --ik-shadow-soft: 0 8px 24px rgba(0, 0, 0, .06);
}

body.pcdark-mode,
html.pcdark-mode body {
    --bg-color: #000000;
    --card-bg: #1c1c1e;
    --primary-color: #ffffff;
    --text-main: #e1e1e1;
    --text-muted: #a1a1a6;
    --border-color: #333333;
    --quote-bg: #2c2c2e;
    --ik-shadow: 0 16px 44px rgba(0, 0, 0, .5);
    --ik-shadow-soft: 0 8px 24px rgba(0, 0, 0, .35);
}

/* Sanftes Scrollen nur für Nutzer, die es zulassen. */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ===============================
   WORDPRESS HEADER STICKY
   =============================== */

.iwwit-site-header-sticky {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.admin-bar .iwwit-site-header-sticky {
    top: 32px;
}

body.pcdark-mode .iwwit-site-header-sticky,
html.pcdark-mode body .iwwit-site-header-sticky {
    background: var(--card-bg);
    border-bottom-color: var(--border-color);
}

/* ===============================
   GLOBAL TEMPLATE
   =============================== */

.iwwit-ikonen-template,
.iwwit-ikonen-template * {
    box-sizing: border-box;
}

.iwwit-ikonen-template {
    font-family: var(--wp--preset--font-family--barlow-semi-condensed, var(--ik-font));
    background: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    padding: 36px 20px 90px;
}

/* Schmalere Shell für Hero + Nav. */
.iwwit-ikonen-shell {
    width: min(100%, 880px);
    margin: 0 auto;
}

/* ===============================
   HERO
   Gleichmäßiges Padding rundum die Card.
   Das Bild füllt seinen Container (Card-Höhe minus Padding) komplett.
   =============================== */

.iwwit-ikonen-hero {
    display: grid;
    grid-template-columns: minmax(200px, 300px) 1fr;
    gap: 22px;
    align-items: stretch;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--ik-radius-xl);
    
    padding: 18px;          /* gleichmäßiger Rand rundum – inkl. links */
    min-height: 280px;
}

.iwwit-ikonen-image {
    margin: 0 !important;
    padding: 0;
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    overflow: hidden;
    background: var(--quote-bg);
    border-radius: 14px;
    line-height: 0;
}

.iwwit-ikonen-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: top;
}

.iwwit-ikonen-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: grid;
    place-items: center;
    background: var(--quote-bg);
    color: var(--text-muted);
    font-size: 16px;
}

.iwwit-ikonen-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 12px 4px 0;   /* kleines Atmen + rechts greift Card-Padding */
}

.iwwit-ikonen-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.iwwit-ikonen-title {
    margin: 0;
    color: var(--primary-color);
    font-size: 41px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
}

.iwwit-ikonen-excerpt {
    max-width: 480px;
    margin: 14px 0 0;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.45;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iwwit-ikonen-meta {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.45;
}

.iwwit-ikonen-meta strong {
    color: var(--text-main);
    font-weight: 600;
}

/* ===============================
   KOMPAKTE STICKY NAVIGATION
   Alle 8 Links sollen im Desktop in einer einzigen Zeile sein.
   =============================== */

.iwwit-ikonen-nav-wrap {
    position: sticky;
    top: var(--ik-header-height);
    z-index: 900;
    margin-top: 18px;
}

.admin-bar .iwwit-ikonen-nav-wrap {
    top: calc(var(--ik-header-height) + 32px);
}

.iwwit-ikonen-nav-card {
    display: grid;
    grid-template-columns: minmax(180px, 220px) 1fr;
    align-items: center;
    gap: 14px;

    background: rgba(255,255,255,.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    border-radius: var(--ik-radius-lg);
    
    padding: 10px 14px;
}

body.pcdark-mode .iwwit-ikonen-nav-card,
html.pcdark-mode body .iwwit-ikonen-nav-card {
    background: rgba(28,28,30,.94);
}

.iwwit-ikonen-nav-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.iwwit-ikonen-nav-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--quote-bg);
}

.iwwit-ikonen-nav-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.iwwit-ikonen-nav-text {
    min-width: 0;
}

.iwwit-ikonen-nav-label {
    margin: 0 0 2px;
    color: var(--accent-color);
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: .10em;
    line-height: 1.1;
    text-transform: uppercase;
}

.iwwit-ikonen-nav-title {
    margin: 0;
    color: var(--primary-color);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.01;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iwwit-ikonen-menu-button {
    display: none;
    width: 38px;
    height: 34px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--quote-bg);
    color: var(--text-main);
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
}

.iwwit-ikonen-menu-button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.iwwit-ikonen-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
}

.iwwit-ikonen-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.iwwit-ikonen-nav a:hover,
.iwwit-ikonen-nav a:focus-visible {
    background: rgba(56, 97, 123, .08);
    color: var(--accent-color);
    outline: none;
}

.iwwit-ikonen-nav a:focus-visible {
    
}

.iwwit-ikonen-nav a.is-active {
    background: rgba(56, 97, 123, .12);
    border-color: rgba(56, 97, 123, .18);
    color: var(--accent-color);
}

/* ===============================
   CONTENT
   =============================== */

.iwwit-ikonen-content {
      width: min(100%, 1000px);
  margin: 0;
    color: var(--text-main);
    font-family: var(--wp--preset--font-family--barlow-semi-condensed, var(--ik-font));
}

.iwwit-ikonen-content > * {
    max-width: 100%;
}

.iwwit-ikonen-content p {
    color: var(--text-main);
    font-size: 22px;
    font-weight: 300;
    line-height: 1.55;
}

.iwwit-ikonen-content h2 {
    margin-top: 1.7em;
    margin-bottom: .5em;
    color: var(--primary-color);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    scroll-margin-top: calc(var(--ik-header-height) + 100px);
}

.iwwit-ikonen-content h3 {
    margin-top: 1.5em;
    margin-bottom: .5em;
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.08;
    scroll-margin-top: calc(var(--ik-header-height) + 100px);
}

.iwwit-ikonen-content a {
    color: var(--accent-color);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.iwwit-ikonen-content blockquote {
    margin: 36px 0;
    padding: 26px 30px;
    background: var(--quote-bg);
    border-left: 5px solid var(--accent-color);
    border-radius: 0 18px 18px 0;
    color: var(--text-main);
}

.iwwit-ikonen-content blockquote p {
    margin: 0;
    font-size: 26px;
    font-weight: 300;
    line-height: 1.35;
}

.iwwit-ikonen-content img {
    border-radius: 18px;
}

/* ===============================
   TABLET
   =============================== */

@media (max-width: 900px) {
    .iwwit-ikonen-template {
        padding: 28px 18px 76px;
    }

    .iwwit-ikonen-shell {
        width: min(100%, 720px);
    }

    .iwwit-ikonen-hero {
        grid-template-columns: 180px 1fr;
        gap: 18px;
        padding: 14px;
        min-height: 220px;
    }

    .iwwit-ikonen-image {
        border-radius: 12px;
    }

    .iwwit-ikonen-copy {
        padding: 4px 8px 4px 0;
    }

    .iwwit-ikonen-title {
        font-size: 38px;
    }

    .iwwit-ikonen-excerpt {
        font-size: 16px;
    }

    .iwwit-ikonen-meta {
        margin-top: 16px;
        padding-top: 12px;
        font-size: 14px;
    }

    .iwwit-ikonen-nav-card {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 10px 12px;
        border-radius: 16px;
    }

    .iwwit-ikonen-nav-head {
        grid-template-columns: 44px minmax(0, 1fr) 38px;
        gap: 10px;
    }

    .iwwit-ikonen-nav-thumb {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .iwwit-ikonen-nav-label {
        font-size: 10px;
        letter-spacing: .12em;
    }

    .iwwit-ikonen-nav-title {
        font-size: 18px;
    }

    .iwwit-ikonen-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .iwwit-ikonen-nav {
        display: none;
        flex-wrap: wrap;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
        padding-top: 10px;
        margin-top: 10px;
        border-top: 1px solid var(--border-color);
    }

    .iwwit-ikonen-nav-card.is-open .iwwit-ikonen-nav {
        display: grid;
    }

    .iwwit-ikonen-nav a {
        justify-content: center;
        min-height: 34px;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        background: var(--quote-bg);
        font-size: 12px;
        padding: 8px 10px;
    }

    .iwwit-ikonen-nav a.is-active {
        background: rgba(56, 97, 123, .16);
        border-color: rgba(56, 97, 123, .35);
    }
}

/* ===============================
   MOBILE
   =============================== */

@media (max-width: 782px) {
    .admin-bar .iwwit-site-header-sticky {
        top: 46px;
    }
}

@media (max-width: 640px) {
    :root {
        --ik-header-height: var(--ik-header-height-mobile);
    }

    .iwwit-ikonen-template {
        padding: 18px 14px 60px;
    }

    .iwwit-ikonen-shell {
        width: min(100%, 390px);
    }

    .iwwit-ikonen-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
        border-radius: 18px;
        min-height: 0;
    }

    .iwwit-ikonen-copy {
        display: contents;
        padding: 0;
    }

    .iwwit-ikonen-kicker {
        order: 1;
        margin: 0 0 2px;
        font-size: 11px;
        letter-spacing: .24em;
    }

    .iwwit-ikonen-title {
        order: 2;
        font-size: 41px;
        line-height: 1;
    }

    .iwwit-ikonen-image {
        order: 3;
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
        border-radius: 12px;
    }

    .iwwit-ikonen-excerpt {
        order: 4;
        margin-top: 2px;
        font-size: 16px;
        line-height: 1.35;
    }

    .iwwit-ikonen-meta {
        order: 5;
        margin-top: 8px;
        padding-top: 12px;
        font-size: 13px;
    }

    .iwwit-ikonen-nav-wrap {
        top: var(--ik-header-height-mobile);
        margin-top: 12px;
    }

    .admin-bar .iwwit-ikonen-nav-wrap {
        top: calc(var(--ik-header-height-mobile) + 46px);
    }

    .iwwit-ikonen-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .iwwit-ikonen-nav a {
        justify-content: flex-start;
        white-space: normal;
        line-height: 1.15;
    }

    .iwwit-ikonen-content {
        margin-top: 38px;
    }

    .iwwit-ikonen-content p {
        font-size: 19px;
        line-height: 1.5;
    }

    .iwwit-ikonen-content h2 {
        font-size: 34px;
    }

    .iwwit-ikonen-content h3 {
        font-size: 27px;
    }

    .iwwit-ikonen-content blockquote {
        padding: 20px;
    }

    .iwwit-ikonen-content blockquote p {
        font-size: 22px;
    }
}

.iwwit-ikonen-template figure {
    margin: 0 !important;
}

/* #endregion */
