/*
 * Ideenportal (Kundenseite, Spec 5.9). Werte von www.qualido.com (16.11.2026 ausgelesen): Petrol #0c7174, Tinte #003445,
 * Text #1a4858, Türkis #32b1a7, Knöpfe als Pille (Radius 100px), Überschriften kräftig. Hausschrift Gordita (400/500/700,
 * selbst gehostet unter fonts/). Hell und dunkel über prefers-color-scheme.
 */
/**
 * @license
 * MyFonts Webfont Build ID 3867246, 2020-12-16T11:57:38-0500
 *
 * The fonts listed in this notice are subject to the End User License
 * Agreement(s) entered into by the website owner. All other parties are
 * explicitly restricted from using the Licensed Webfonts(s).
 *
 * You may obtain a valid license at the URLs below.
 *
 * Webfont: HelveticaLTWXX-Roman by Linotype
 * URL: https://www.myfonts.com/fonts/linotype/helvetica/pro-regular/
 * Copyright: Copyright © 2014 Monotype Imaging Inc. All rights reserved.
 *
 *
 *
 * © 2020 MyFonts Incn*/

/* Hausschrift Gordita (lizenziert, selbst gehostet; Quelle: Homepage-Relaunch 2022, Gordita_Webfonts) */
@font-face { font-family: "Gordita"; font-weight: 400; font-style: normal; font-display: swap;
    src: url("fonts/gordita-400.woff2") format("woff2"), url("fonts/gordita-400.woff") format("woff"); }
@font-face { font-family: "Gordita"; font-weight: 500; font-style: normal; font-display: swap;
    src: url("fonts/gordita-500.woff2") format("woff2"), url("fonts/gordita-500.woff") format("woff"); }
@font-face { font-family: "Gordita"; font-weight: 700; font-style: normal; font-display: swap;
    src: url("fonts/gordita-700.woff2") format("woff2"), url("fonts/gordita-700.woff") format("woff"); }
:root {
    --ip-brand: #0c7174;
    --ip-brand-strong: #095a5c;
    --ip-brand-soft: #e6f3f2;
    --ip-teal: #32b1a7;
    --ip-ink: #003445;
    --ip-text: #1a4858;
    --ip-muted: #5b7680;
    --ip-bg: #f5f8f8;
    --ip-surface: #ffffff;
    --ip-surface-2: #f9fbfb;
    --ip-border: #dde7e8;
    --ip-on-brand: #ffffff;
    --ip-focus: rgba(12, 113, 116, .45);
    --ip-danger: #b42318;
    --ip-danger-soft: #fef3f2;
    --ip-ok: #067647;
    --ip-ok-soft: #ecfdf3;
    /* Akzente der Homepage-Formen */
    --ip-orange: #ff8000;
    --ip-coral: #ef4f45;
    --ip-amber: #efab45;
    --ip-yellow: #efcc45;
    --ip-blue: #3364c2;
    --ip-sky: #33a0c2;
    --ip-berry: #a62b6d;

    --ip-font: "Gordita", ui-sans-serif, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --ip-font-display: "Gordita", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --ip-radius-sm: 8px;
    --ip-radius: 14px;
    --ip-radius-lg: 22px;
    --ip-radius-pill: 100px;
    --ip-shadow-sm: 0 1px 2px rgba(0, 52, 69, .06);
    --ip-shadow: 0 1px 2px rgba(0, 52, 69, .05), 0 8px 24px -8px rgba(0, 52, 69, .12);
    --ip-shadow-lg: 0 24px 48px -16px rgba(0, 52, 69, .22);
    --ip-header-h: 72px;
    --ip-wrap: 1240px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ip-brand: #3fb4b6;
        --ip-brand-strong: #6dcfd0;
        --ip-brand-soft: #123537;
        --ip-teal: #4cc7bd;
        --ip-ink: #e8f4f4;
        --ip-text: #c9dcdf;
        --ip-muted: #8ea8ae;
        --ip-bg: #0b1a1f;
        --ip-surface: #112529;
        --ip-surface-2: #0e2024;
        --ip-border: #21393e;
        --ip-on-brand: #04201f;
        --ip-focus: rgba(95, 208, 210, .55);
        --ip-danger: #f97066;
        --ip-danger-soft: #3a1d1b;
        --ip-ok: #47cd89;
        --ip-ok-soft: #10301f;
        --ip-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
        --ip-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
        --ip-shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .6);
    }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ip-header-h) + 16px); }
body.ip {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background: var(--ip-bg); color: var(--ip-text);
    font: 15.5px/1.65 var(--ip-font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.ip h1, .ip h2, .ip h3 { font-family: var(--ip-font-display); color: var(--ip-ink); letter-spacing: -.015em; line-height: 1.2; }
.ip h1 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem); font-weight: 700; margin: 0 0 .6rem; }
.ip h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-weight: 700; margin: 0 0 .5rem; }
.ip h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 .4rem; }
.ip a { color: var(--ip-brand); text-underline-offset: 3px; }
.ip a:hover { color: var(--ip-brand-strong); }
.ip :focus-visible { outline: 3px solid var(--ip-focus); outline-offset: 2px; border-radius: 4px; }
.ip-wrap { width: 100%; max-width: var(--ip-wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .ip-wrap { padding: 0 28px; } }
.ip-skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; border-radius: var(--ip-radius-sm);
    background: var(--ip-ink); text-decoration: none; transition: top .15s; }
.ip .ip-skip { color: var(--ip-bg); }
.ip-skip:focus { top: 12px; }
.ip-main { flex: 1; outline: none; }
.ip-icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Kopf ---------- */
.ip-header {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--ip-surface) 88%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--ip-border);
}
.ip-header-in { display: flex; align-items: center; gap: 12px 28px; min-height: var(--ip-header-h); flex-wrap: wrap; }
.ip-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.ip .ip-brand, .ip .ip-brand:hover { color: var(--ip-ink); }
.ip-brand img { display: block; width: 104px; height: auto; }
.ip-nav { display: flex; gap: 4px; }
.ip-nav a {
    position: relative; padding: 8px 14px; border-radius: var(--ip-radius-pill);
    font-weight: 500; font-size: .95rem; color: var(--ip-text); text-decoration: none; white-space: nowrap;
    transition: background-color .15s, color .15s;
}
.ip-nav a:hover { background: var(--ip-brand-soft); color: var(--ip-ink); }
.ip-nav a[aria-current="page"] { color: var(--ip-brand); background: var(--ip-brand-soft); }
.ip-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Handy: Logo + Aktionen oben, Navigation als eigene Zeile darunter (wischbar) */
@media (max-width: 860px) {
    .ip-header-in { gap: 0 12px; padding-top: 10px; }
    .ip-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 6px -16px 0; padding: 0 12px 8px; }
    .ip-nav::-webkit-scrollbar { display: none; }
    .ip-actions { gap: 8px; }
}
@media (max-width: 520px) {
    .ip-btn-primary.ip-btn > span { display: none; }
    .ip-actions .ip-btn-primary { padding: 0; width: 40px; justify-content: center; }
    .ip-profile-name { display: none; }
}

/* ---------- Knöpfe ---------- */
.ip-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px;
    border: 1px solid transparent; border-radius: var(--ip-radius-pill);
    font: 500 .925rem/1 var(--ip-font); text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.ip-btn:active { transform: translateY(1px); }
.ip .ip-btn-primary { background: var(--ip-brand); color: var(--ip-on-brand); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--ip-brand) 70%, transparent); }
.ip .ip-btn-primary:hover { background: var(--ip-brand-strong); color: var(--ip-on-brand); }
.ip .ip-btn-ghost { background: transparent; color: var(--ip-ink); border-color: var(--ip-border); }
.ip .ip-btn-ghost:hover { border-color: var(--ip-brand); color: var(--ip-brand); }
.ip .ip-btn-outline { background: transparent; color: var(--ip-ink); border-color: var(--ip-ink); }
.ip .ip-btn-outline:hover { background: var(--ip-ink); color: var(--ip-bg); }
.ip-btn-lg { min-height: 48px; padding: 0 24px; font-size: 1rem; }

/* Profil */
.ip-profile { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 3px 12px 3px 3px; border: 1px solid var(--ip-border);
    border-radius: var(--ip-radius-pill); text-decoration: none; font-weight: 500; font-size: .925rem; }
.ip .ip-profile, .ip .ip-profile:hover { color: var(--ip-ink); }
.ip-profile:hover { border-color: var(--ip-brand); }
.ip-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--ip-brand), var(--ip-teal)); color: var(--ip-on-brand); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }

/* ---------- Hero mit den Ringformen der Homepage ---------- */
.ip-hero { position: relative; overflow: hidden; background: var(--ip-surface); border-bottom: 1px solid var(--ip-border); }
.ip-hero-in { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 56px; }
.ip-hero-text { max-width: 640px; }
.ip-eyebrow { margin: 0 0 12px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ip-brand); }
.ip-lead { font-size: 1.125rem; color: var(--ip-muted); margin: 0 0 28px; max-width: 34em; }
.ip-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Formen laufen wie auf der Homepage über den rechten Rand hinaus; auf schmalen Schirmen blass hinter dem Text */
.ip-hero-art {
    position: absolute; z-index: 0; top: -24px; right: -180px; width: 420px; aspect-ratio: 701 / 801; opacity: .18;
    background: url("shapes.svg") no-repeat right top / contain; pointer-events: none;
}
@media (min-width: 960px) {
    .ip-hero-in { padding-top: 80px; padding-bottom: 88px; }
    /* wie auf qualido.com: Formen enden am Bildschirmrand (dort ist die Grafik beschnitten) und reichen weiter in die Mitte */
    .ip-hero-art { top: -40px; right: 0; width: clamp(540px, 40vw, 720px); opacity: 1; }
}
@media (min-width: 960px) and (max-width: 1180px) { .ip-hero-text { max-width: 520px; } }
@media (prefers-color-scheme: dark) { .ip-hero-art { opacity: .35; } }
@media (prefers-color-scheme: dark) and (min-width: 960px) { .ip-hero-art { opacity: .9; } }

/* ---------- Bausteine ---------- */
.ip-section { padding-top: 32px; padding-bottom: 48px; }
.ip-card { background: var(--ip-surface); border: 1px solid var(--ip-border); border-radius: var(--ip-radius); box-shadow: var(--ip-shadow-sm); padding: 24px; }
.ip-empty { text-align: center; padding: 48px 24px; }
.ip-empty p { color: var(--ip-muted); margin: 0; }

.ip-error { display: grid; place-items: center; padding-top: 64px; padding-bottom: 96px; }
.ip-error-card { max-width: 560px; width: 100%; text-align: center; padding: 40px 28px; box-shadow: var(--ip-shadow); }
.ip-error-card .ip-error-code {
    margin: 0 0 4px; font: 700 4.5rem/1 var(--ip-font-display); letter-spacing: -.04em;
    background: linear-gradient(120deg, var(--ip-brand), var(--ip-teal) 55%, var(--ip-amber)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ip-error-card p { color: var(--ip-muted); }

/* ---------- Fuß ---------- */
.ip-footer { border-top: 1px solid var(--ip-border); background: var(--ip-surface); color: var(--ip-muted); font-size: .875rem; }
.ip-footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; }
.ip-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.ip-footer nav a { display: inline-flex; align-items: center; min-height: 40px; }
.ip .ip-footer a { color: var(--ip-muted); text-decoration: none; }
.ip .ip-footer a:hover { color: var(--ip-brand); text-decoration: underline; }

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

/* ---------- Formulare und Konto (Anmelden, Passwort, Profil) ---------- */
.ip-auth { display: grid; place-items: center; padding-top: 48px; padding-bottom: 72px; }
@media (min-width: 720px) { .ip-auth { padding-top: 72px; padding-bottom: 104px; } }
.ip-auth-card { width: 100%; max-width: 440px; padding: 32px 28px; box-shadow: var(--ip-shadow); position: relative; overflow: hidden; }
.ip-auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--ip-brand), var(--ip-teal) 60%, var(--ip-amber)); }
.ip-auth-card h1 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.ip-auth-lead { color: var(--ip-muted); margin: 0 0 20px; }
.ip-auth-foot { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--ip-border); color: var(--ip-muted); font-size: .9rem; text-align: center; }
.ip-form { display: grid; gap: 16px; }
.ip-field { display: grid; gap: 6px; }
.ip-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ip-field label, .ip-field-head label { font-weight: 500; font-size: .925rem; color: var(--ip-ink); }
.ip-form input[type="email"], .ip-form input[type="password"], .ip-form input[type="text"], .ip-form select, .ip-form textarea, .ip-comment-form textarea {
    width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--ip-border); border-radius: var(--ip-radius-sm);
    background: var(--ip-surface-2); color: var(--ip-ink); font: inherit; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.ip-form input:hover, .ip-form select:hover, .ip-form textarea:hover, .ip-comment-form textarea:hover { border-color: color-mix(in srgb, var(--ip-brand) 40%, var(--ip-border)); }
.ip-form input:focus, .ip-form select:focus, .ip-form textarea:focus, .ip-comment-form textarea:focus { outline: none; border-color: var(--ip-brand); background: var(--ip-surface); box-shadow: 0 0 0 4px var(--ip-focus); }
.ip-small { font-size: .85rem; font-weight: 500; }
.ip-hint { margin: 0; color: var(--ip-muted); font-size: .85rem; }
.ip-muted { color: var(--ip-muted); margin: 0; }
.ip-btn-block { width: 100%; }
.ip-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ip-ink); cursor: pointer; }
.ip-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ip-brand); flex: none; }
.ip-alert { padding: 12px 14px; border-radius: var(--ip-radius-sm); border: 1px solid transparent; margin: 0 0 16px; font-size: .95rem; }
.ip-alert-error { background: var(--ip-danger-soft); color: var(--ip-danger); border-color: color-mix(in srgb, var(--ip-danger) 25%, transparent); }
.ip-alert-ok { background: var(--ip-ok-soft); color: var(--ip-ok); border-color: color-mix(in srgb, var(--ip-ok) 25%, transparent); }

.ip-profile-page { max-width: 1040px; }
.ip-profile-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin-bottom: 24px; }
.ip-profile-head h1 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.ip-profile-id { flex: 1; min-width: 200px; }
.ip-avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }
.ip-grid-2 { display: grid; gap: 20px; }
@media (min-width: 860px) { .ip-grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.ip-grid-2 .ip-card h2 { font-size: 1.25rem; margin-bottom: 16px; }
.ip-profile-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ip-border); }

/* =====================================================================================================================
 * Kundenseite Ideen und Roadmap (Plan Task 6)
 * Kategorie- und Statusfarben kommen aus /farben.css als --cat bzw. --st (Klassen .ip-cat-ID / .ip-st-ID).
 * ===================================================================================================================== */
:root { --ip-sticky-top: 73px; }
/* Handy: Kopf scrollt mit (zweizeilig, ~106 px) – oben bleiben nur Sprungleiste und Spaltenköpfe der Roadmap */
@media (max-width: 860px) { :root { --ip-sticky-top: 0px; } .ip-header { position: relative; } }
.ip-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ip-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ip-muted-inline { color: var(--ip-muted); font-weight: 400; font-size: .95rem; }
.ip-flashes { padding-top: 20px; }
.ip-flash { margin: 0; box-shadow: var(--ip-shadow-sm); animation: ip-drop .35s ease-out; }
@keyframes ip-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Farbträger: Chips, Punkte, Pillen */
.ip-chip, .ip-dot, .ip-pill, .ip-chip-cat, .ip-rm-col, .ip-rm-jump a { --c: var(--cat, var(--st, var(--ip-brand))); }
.ip-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.ip-chip-cat {
    display: inline-flex; align-items: center; max-width: 100%; padding: 3px 10px; border-radius: var(--ip-radius-pill);
    background: color-mix(in srgb, var(--c) 12%, transparent); color: color-mix(in srgb, var(--c) 80%, var(--ip-ink));
    font-size: .76rem; font-weight: 400; line-height: 1.5; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ip-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: var(--ip-radius-pill);
    border: 1px solid color-mix(in srgb, var(--c) 35%, var(--ip-border)); color: var(--ip-ink); background: var(--ip-surface);
    font-size: .76rem; font-weight: 400; line-height: 1.5; white-space: nowrap;
}
.ip-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
@media (prefers-color-scheme: dark) {
    .ip-chip-cat { background: color-mix(in srgb, var(--c) 22%, transparent); color: color-mix(in srgb, var(--c) 45%, #fff); }
}

/* ---------- Hero (Liste, kompakt) mit Suche ---------- */
.ip-hero-sm .ip-hero-in { padding-top: 40px; padding-bottom: 40px; }
.ip-hero-sm h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem); text-wrap: balance; }
.ip-hero-sm .ip-lead { margin-bottom: 22px; font-size: 1.05rem; }
@media (min-width: 960px) {
    .ip-hero-sm .ip-hero-in { padding-top: 36px; padding-bottom: 40px; }
    .ip-hero-sm .ip-hero-art { width: clamp(360px, 26vw, 460px); top: -48px; right: 0; opacity: .8; }
}
.ip-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 560px; padding: 6px; border: 1px solid var(--ip-border);
    border-radius: var(--ip-radius-pill); background: var(--ip-surface); box-shadow: var(--ip-shadow); transition: border-color .15s, box-shadow .15s; }
.ip-search:focus-within { border-color: var(--ip-brand); box-shadow: 0 0 0 4px var(--ip-focus), var(--ip-shadow); }
.ip-search-icon { width: 20px; height: 20px; margin-left: 12px; color: var(--ip-muted); flex: none; }
.ip-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ip-ink); font: inherit; font-size: 1rem; padding: 8px 4px; outline: none; }
/* Fokus zeigt der Rahmen der ganzen Suchleiste (:focus-within), nicht das Feld selbst. */
.ip-search input:focus-visible { outline: none; }
.ip-search input::-webkit-search-cancel-button { cursor: pointer; }
.ip-search .ip-btn { min-height: 42px; }

/* ---------- Liste: Filter links, Ideen rechts ---------- */
.ip-ideas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 64px; }
@media (min-width: 1000px) { .ip-ideas { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-top: 40px; } }
.ip-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; min-width: 0; }
@media (min-width: 1000px) { .ip-filters { position: sticky; top: calc(var(--ip-sticky-top) + 24px); } }
.ip .ip-filter-title { margin: 0 0 10px; font: 500 .72rem/1 var(--ip-font); letter-spacing: .12em; text-transform: uppercase; color: var(--ip-muted); }
.ip-seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--ip-radius-pill); background: var(--ip-surface); border: 1px solid var(--ip-border); }
.ip-seg a { flex: 1 1 auto; min-width: 0; min-height: 40px; overflow: hidden; text-overflow: ellipsis; text-align: center; padding: 9px 10px; border-radius: var(--ip-radius-pill); font-size: .82rem; font-weight: 500; color: var(--ip-text);
    text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.ip .ip-seg a:hover { background: var(--ip-brand-soft); color: var(--ip-ink); }
.ip .ip-seg a[aria-current="true"] { background: var(--ip-ink); color: var(--ip-bg); }
@media (min-width: 1000px) {
    .ip-seg { flex-direction: column; border-radius: var(--ip-radius); }
    .ip-seg a { text-align: left; padding: 9px 14px; border-radius: 10px; font-size: .9rem; }
}
.ip-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ip-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: var(--ip-radius-pill);
    border: 1px solid var(--ip-border); background: var(--ip-surface); color: var(--ip-text); font-size: .84rem; font-weight: 400; line-height: 1.3;
    text-decoration: none; white-space: nowrap; transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s;
}
.ip .ip-chip { color: var(--ip-text); }
.ip .ip-chip:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--ip-border)); color: var(--ip-ink); }
.ip .ip-chip.is-active { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--ip-surface)); color: var(--ip-ink);
    box-shadow: inset 0 0 0 1px var(--c); }
.ip-chip.is-active::after { content: ""; width: 5px; height: 10px; margin: 0 2px 0 4px; border: solid currentColor; border-width: 0 2px 2px 0;
    transform: translateY(-1px) rotate(45deg); }
.ip-reset { justify-self: start; display: inline-flex; align-items: center; min-height: 32px; font-size: .88rem; font-weight: 500; }

/*
 * Filter-Klappe: Auf breiten Schirmen immer offen (Kopfzeile ausgeblendet, Inhalt per ::details-content erzwungen, portal.js setzt
 * zusätzlich open), auf Handy/Tablet eingeklappt hinter einem „Filter“-Knopf mit Zahl der aktiven Filter. Chips brechen um statt
 * seitlich zu wischen – so ist jede Kategorie ganz zu sehen.
 */
.ip-filter-sheet { min-width: 0; }
.ip-filter-sheet-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.ip-filter-toggle { display: none; }
@media (min-width: 1000px) {
    .ip-filter-sheet::details-content { content-visibility: visible; display: contents; }
}
@media (max-width: 999px) {
    .ip-filters { gap: 12px; }
    .ip-seg { max-width: 440px; }
    .ip-filter-sheet { border: 1px solid var(--ip-border); border-radius: var(--ip-radius); background: var(--ip-surface); box-shadow: var(--ip-shadow-sm); }
    .ip-filter-sheet[open] { box-shadow: var(--ip-shadow); }
    .ip-filter-toggle {
        display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: inherit;
        color: var(--ip-ink); font-weight: 500; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
    }
    .ip-filter-toggle::-webkit-details-marker { display: none; }
    .ip-filter-toggle .ip-icon { color: var(--ip-brand); }
    .ip-filter-toggle .ip-count { margin-left: 0; vertical-align: 0; }
    .ip-filter-toggle-hint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ip-muted); font-size: .85rem; font-weight: 400; }
    .ip-filter-toggle::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px 4px auto; border: solid var(--ip-muted); border-width: 0 2px 2px 0;
        transform: rotate(45deg); transition: transform .2s; }
    .ip-filter-sheet[open] > .ip-filter-toggle::after { transform: translateY(4px) rotate(-135deg); }
    .ip-filter-sheet[open] > .ip-filter-toggle { border-bottom: 1px solid var(--ip-border); border-radius: var(--ip-radius) var(--ip-radius) 0 0; }
    .ip-filter-sheet-body { gap: 18px; padding: 16px; }
}
/* Fingerbedienung: Chips mindestens 40 px hoch */
@media (max-width: 999px), (pointer: coarse) {
    .ip-chip { min-height: 40px; padding: 8px 14px 8px 12px; }
    .ip-reset { min-height: 40px; }
}

.ip-results { min-width: 0; }
.ip-results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.ip .ip-results-title { margin: 0; font-size: 1.15rem; }
.ip-idea-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

/* Karte */
.ip-idea {
    position: relative; display: flex; align-items: flex-start; gap: 20px; padding: 20px 22px; border: 1px solid var(--ip-border);
    border-radius: var(--ip-radius); background: var(--ip-surface); box-shadow: var(--ip-shadow-sm);
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.ip-idea:hover { border-color: color-mix(in srgb, var(--ip-brand) 40%, var(--ip-border)); box-shadow: var(--ip-shadow); transform: translateY(-1px); }
.ip-idea-vote { position: relative; z-index: 2; flex: none; }
.ip-idea-body { flex: 1; min-width: 0; }
.ip-idea-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 8px; }
.ip .ip-idea-title { margin: 0 0 4px; font-size: 1.12rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; hyphens: auto; }
.ip .ip-idea-title a { color: var(--ip-ink); text-decoration: none; }
.ip-idea-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ip .ip-idea:hover .ip-idea-title a { color: var(--ip-brand); }
.ip-idea-excerpt { margin: 0 0 10px; color: var(--ip-muted); font-size: .93rem; line-height: 1.6; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ip-idea-foot { display: flex; align-items: center; gap: 18px; margin: 0; color: var(--ip-muted); font-size: .82rem; }
.ip-idea-comments { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 520px) {
    .ip-idea { gap: 14px; padding: 16px; }
    .ip .ip-idea-title { font-size: 1.02rem; }
}

/* ---------- Abstimmen: Pfeil-Zähler ---------- */
.ip-vote-form { margin: 0; }
.ip-vote {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 64px; min-height: 76px; padding: 8px 4px;
    border: 1.5px solid var(--ip-border); border-radius: 16px; background: var(--ip-surface-2); color: var(--ip-ink);
    font: inherit; text-decoration: none; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.ip .ip-vote { color: var(--ip-ink); }
.ip-vote-icon { width: 22px; height: 22px; color: var(--ip-brand); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.ip-vote-count { font-size: 1.15rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ip-vote-unit { font-size: .62rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ip-muted); }
.ip .ip-vote:not(.is-static):hover { border-color: var(--ip-brand); background: var(--ip-brand-soft); color: var(--ip-ink);
    box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--ip-brand) 60%, transparent); }
.ip-vote:not(.is-static):hover .ip-vote-icon { transform: translateY(-3px); }
.ip-vote:active:not(.is-static) { transform: scale(.96); }
.ip .ip-vote.is-voted { border-color: var(--ip-brand); background: var(--ip-brand); color: var(--ip-on-brand);
    box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--ip-brand) 80%, transparent); }
.ip .ip-vote.is-voted:hover { background: var(--ip-brand-strong); border-color: var(--ip-brand-strong); color: var(--ip-on-brand); }
.ip-vote.is-voted .ip-vote-icon, .ip-vote.is-voted .ip-vote-unit { color: var(--ip-on-brand); }
.ip-vote.is-busy { opacity: .7; cursor: progress; }
.ip-vote.is-pop { animation: ip-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes ip-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.ip-vote.is-static { cursor: default; background: transparent; border-style: dashed; }
.ip-vote.is-static .ip-vote-icon { color: var(--ip-muted); }
.ip-vote.is-done { border-style: solid; border-color: color-mix(in srgb, var(--ip-ok) 40%, var(--ip-border)); background: var(--ip-ok-soft); }
.ip-vote.is-done .ip-vote-icon { color: var(--ip-ok); }
.ip-vote-lg { width: 88px; min-height: 100px; border-radius: 20px; }
.ip-vote-lg .ip-vote-icon { width: 28px; height: 28px; }
.ip-vote-lg .ip-vote-count { font-size: 1.6rem; }
.ip-vote-lg .ip-vote-unit { font-size: .68rem; }
@media (max-width: 520px) { .ip-vote { width: 56px; min-height: 68px; } }

/* ---------- Seiten blättern, leere Liste ---------- */
.ip-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-top: 28px; }
.ip-pager ol { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ip-pager-num, .ip-pager-step, .ip-pager-gap { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: var(--ip-radius-pill); font-weight: 500; font-size: .9rem; text-decoration: none; }
.ip .ip-pager-num, .ip .ip-pager-step { color: var(--ip-ink); border: 1px solid var(--ip-border); background: var(--ip-surface); }
.ip .ip-pager-num:hover, .ip .ip-pager-step:hover { border-color: var(--ip-brand); color: var(--ip-brand); }
.ip .ip-pager-num[aria-current="page"] { background: var(--ip-ink); border-color: var(--ip-ink); color: var(--ip-bg); }
.ip .ip-pager-step.is-off { color: var(--ip-muted); opacity: .5; }
.ip-pager-gap { min-width: 24px; padding: 0; color: var(--ip-muted); }
.ip-empty-ideas { padding: 56px 24px; }
.ip-empty-art { width: 120px; height: 80px; color: var(--ip-brand); margin-bottom: 12px; }
.ip-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ip-empty .ip-empty-actions { margin-top: 20px; }

/* ---------- Detail ---------- */
.ip-back { padding-top: 16px; margin-bottom: 8px; }
.ip-back a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-size: .9rem; font-weight: 500; text-decoration: none; }
.ip-detail { display: grid; gap: 20px; padding-bottom: 64px; }
.ip-detail .ip-back { grid-column: 1 / -1; margin: 0; }
@media (min-width: 1000px) { .ip-detail { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; } }
.ip-detail-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.ip-detail-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 24px; padding: 28px; position: relative; overflow: hidden; }
.ip-detail-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--ip-brand), var(--ip-teal) 60%, var(--ip-amber)); }
.ip .ip-detail-title { margin: 0 0 8px; font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.1rem); line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.ip-detail-by { margin: 0; color: var(--ip-muted); font-size: .9rem; }
.ip-detail-by .ip-comment-author { color: var(--ip-ink); font-weight: 500; }
.ip-detail-body { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--ip-border); }
.ip-login-hint { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-radius: var(--ip-radius-sm);
    background: var(--ip-brand-soft); color: var(--ip-ink); font-size: .92rem; }
.ip-login-hint .ip-icon { color: var(--ip-brand); }
.ip-login-hint a { font-weight: 500; }
@media (max-width: 600px) {
    .ip-detail-head { grid-template-columns: 1fr; padding: 22px 18px; }
    .ip-detail-vote { order: 2; }
    .ip-detail-vote .ip-vote-lg { flex-direction: row; width: auto; min-height: 52px; gap: 10px; padding: 0 20px; border-radius: var(--ip-radius-pill); }
    .ip-detail-headtext { order: 1; }
    .ip-detail-body, .ip-login-hint { order: 3; }
}
.ip-badge-team { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 8px; border-radius: var(--ip-radius-pill);
    background: var(--ip-brand); color: var(--ip-on-brand); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.ip-count { display: inline-grid; place-items: center; min-width: 28px; height: 24px; margin-left: 6px; padding: 0 8px; border-radius: var(--ip-radius-pill);
    background: var(--ip-brand-soft); color: var(--ip-brand); font-size: .8rem; font-weight: 700; vertical-align: 3px; }

/* Kommentare */
.ip-discussion { padding: 28px; }
.ip .ip-discussion h2 { font-size: 1.3rem; margin-bottom: 18px; }
.ip-login-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px;
    border: 1px dashed color-mix(in srgb, var(--ip-brand) 40%, var(--ip-border)); border-radius: var(--ip-radius); background: var(--ip-surface-2); }
.ip-login-box p { margin: 0; color: var(--ip-text); }
.ip-comments, .ip-replies { list-style: none; margin: 0; padding: 0; }
.ip-comments { margin-top: 8px; }
.ip-comment { padding: 20px 0 4px; border-top: 1px solid var(--ip-border); }
.ip-comments > .ip-comment:first-child { margin-top: 20px; }
.ip-comment.is-reply { padding: 14px 0 0 18px; margin-left: 18px; border-top: 0; border-left: 2px solid var(--ip-border); }
.ip-comment.is-team > .ip-comment-body { padding: 12px 16px; border-radius: 4px var(--ip-radius) var(--ip-radius) var(--ip-radius);
    background: color-mix(in srgb, var(--ip-brand-soft) 70%, transparent); }
.ip-comment.is-new { animation: ip-drop .4s ease-out; }
.ip-comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 8px; }
/* Grauer Verlauf dunkel genug für weiße Initialen (Kontrast ≥ 4.5:1) */
.ip-avatar-sm { width: 30px; height: 30px; font-size: .7rem; background: linear-gradient(135deg, #46616b, #5b7680); color: #fff; }
.ip-avatar-sm.is-team { background: linear-gradient(135deg, var(--ip-brand), var(--ip-teal)); color: var(--ip-on-brand); }
.ip-comment-author { font-weight: 500; color: var(--ip-ink); }
.ip-comment-time { color: var(--ip-muted); font-size: .82rem; }
.ip-pin { font-size: .72rem; font-weight: 500; color: var(--ip-amber); text-transform: uppercase; letter-spacing: .06em; }
.ip-comment-body { margin-left: 40px; font-size: .96rem; }
.ip-replies { margin-left: 22px; }
.ip-reply { margin: 6px 0 8px 40px; }
.ip-reply summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 0; color: var(--ip-brand); font-size: .86rem; font-weight: 500;
    cursor: pointer; list-style: none; }
.ip-reply summary::-webkit-details-marker { display: none; }
.ip-reply summary::before { content: "↩"; }
.ip-reply[open] summary { color: var(--ip-muted); }
.ip-reply .ip-comment-form { margin-top: 8px; }
@media (max-width: 600px) {
    .ip-discussion { padding: 22px 18px; }
    .ip-comment-body, .ip-reply { margin-left: 0; }
    .ip-replies { margin-left: 4px; }
    .ip-comment.is-reply { margin-left: 4px; padding-left: 14px; }
}
.ip-comment-form { display: grid; gap: 10px; }
.ip-comment-form textarea, .ip-form textarea { width: 100%; resize: vertical; min-height: 96px; line-height: 1.55; }
.ip-comment-form textarea { padding: 12px 14px; }
.ip-comment-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ip-form-error { margin: 0; color: var(--ip-danger); font-size: .9rem; font-weight: 500; }
.ip-comments-empty { margin: 24px 0 4px; color: var(--ip-muted); text-align: center; }

/* Seitenspalte: Verlauf und Hinweis */
.ip-detail-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; min-width: 0; }
@media (min-width: 1000px) { .ip-detail-side { position: sticky; top: calc(var(--ip-sticky-top) + 24px); } }
.ip .ip-detail-side h2 { font-size: 1.05rem; margin-bottom: 16px; }
.ip-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.ip-timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--ip-border); }
.ip-timeline-item { position: relative; display: flex; gap: 14px; padding: 0 0 16px; }
.ip-timeline-item:last-child { padding-bottom: 0; }
.ip-timeline-dot { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; flex: none;
    background: var(--ip-surface); border: 2px solid color-mix(in srgb, var(--ip-brand) 50%, var(--ip-border)); }
.ip-timeline-item.is-current .ip-timeline-dot { background: var(--ip-brand); border-color: var(--ip-brand); box-shadow: 0 0 0 4px var(--ip-brand-soft); }
.ip-timeline-item strong { display: block; color: var(--ip-ink); font-weight: 500; font-size: .95rem; }
.ip-timeline-item time, .ip-timeline-from { display: block; color: var(--ip-muted); font-size: .8rem; }
.ip-side-note p { color: var(--ip-muted); font-size: .9rem; margin: 0 0 12px; }
.ip-side-note a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 500; font-size: .9rem; text-decoration: none; }

/* ---------- Idee einreichen ---------- */
.ip-submit { padding-bottom: 64px; }
.ip-submit-grid { display: grid; gap: 20px; }
@media (min-width: 1000px) { .ip-submit-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; } }
.ip-submit-card { padding: 32px; position: relative; overflow: hidden; }
.ip-submit-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--ip-brand), var(--ip-teal) 60%, var(--ip-amber)); }
@media (max-width: 600px) { .ip-submit-card { padding: 24px 18px; } }
.ip .ip-submit-card h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.ip-form select { appearance: none; padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%235b7680' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.ip-form textarea { min-height: 200px; }
.ip-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ip-hint.is-low { color: var(--ip-danger); }
.ip-submit-tips ol { margin: 0 0 16px; padding-left: 1.2em; display: grid; gap: 10px; color: var(--ip-text); font-size: .92rem; }
.ip-submit-tips strong { color: var(--ip-ink); font-weight: 500; }

/* ---------- Roadmap: die Seite scrollt, Spaltenköpfe bleiben stehen, Spalten teilen die volle Breite ---------- */
/* Breite Schirme: Kopf, Roadmap und Fuß teilen dieselbe Breite (max. 1920 px) und denselben Seitenrand */
/* Roadmap so breit wie Ideen und Changelog (gleiche --ip-wrap und Randabstände) */
.ip-page-roadmap { --ip-rm-pad: 16px; }
@media (min-width: 720px) { .ip-page-roadmap { --ip-rm-pad: 28px; } }
.ip-page-roadmap .ip-wrap { padding-left: var(--ip-rm-pad); padding-right: var(--ip-rm-pad); }
.ip-rm-page { width: 100%; max-width: var(--ip-wrap); margin: 0 auto; padding: 0 var(--ip-rm-pad) 64px; }
.ip-rm-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 40px; padding: 24px 0 20px; }
@media (min-width: 1100px) { .ip-rm-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: end; } }
.ip .ip-rm-intro h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem); }
.ip-rm-intro .ip-lead { margin: 0; }
.ip-rm-intro .ip-filter-sheet { align-self: end; }
@media (min-width: 1100px) { .ip-rm-filter { justify-content: flex-end; } }
.ip-rm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; }
.ip-rm[data-cols="2"] { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
.ip-rm[data-cols="3"] { grid-template-columns: repeat(3, minmax(280px, 1fr)); }
.ip-rm[data-cols="4"] { grid-template-columns: repeat(4, minmax(280px, 1fr)); }
.ip-rm[data-cols="5"] { grid-template-columns: repeat(5, minmax(280px, 1fr)); }
.ip-rm[data-cols="6"] { grid-template-columns: repeat(6, minmax(280px, 1fr)); }
/* Mehr als 6 Spalten passen nie sinnvoll nebeneinander: immer untereinander mit Sprungleiste (.is-stacked, siehe Template) */
.ip-rm-col { min-width: 0; border-radius: var(--ip-radius-lg); background: color-mix(in srgb, var(--c) 5%, var(--ip-surface-2));
    border: 1px solid color-mix(in srgb, var(--c) 14%, var(--ip-border)); }
.ip-rm-head {
    position: sticky; top: var(--ip-sticky-top); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 18px 14px; border-radius: var(--ip-radius-lg) var(--ip-radius-lg) 0 0;
    background: color-mix(in srgb, color-mix(in srgb, var(--c) 7%, var(--ip-surface)) 92%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid color-mix(in srgb, var(--c) 18%, var(--ip-border)); box-shadow: inset 0 3px 0 var(--c);
}
.ip .ip-rm-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.05rem; }
.ip-rm-title .ip-dot { width: 10px; height: 10px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent); }
.ip-rm-count { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: var(--ip-radius-pill);
    background: color-mix(in srgb, var(--c, var(--ip-brand)) 14%, var(--ip-surface)); color: var(--ip-ink); font-size: .8rem; font-weight: 700; }
.ip-rm-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 14px; list-style: none; }
.ip-rm-card {
    position: relative; display: grid; gap: 8px; justify-items: start; padding: 14px 16px; border: 1px solid var(--ip-border); border-radius: var(--ip-radius);
    background: var(--ip-surface); box-shadow: var(--ip-shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ip-rm-card:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--ip-border)); box-shadow: var(--ip-shadow); transform: translateY(-1px); }
.ip .ip-rm-card-title { max-width: 100%; color: var(--ip-ink); font-weight: 500; font-size: .98rem; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; hyphens: auto; }
.ip-rm-card-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ip .ip-rm-card:hover .ip-rm-card-title { color: var(--ip-brand); }
.ip-rm-card:has(.ip-rm-card-title:focus-visible) { outline: 3px solid var(--ip-focus); outline-offset: 2px; }
.ip-rm-card-foot { display: flex; gap: 16px; color: var(--ip-muted); font-size: .8rem; font-weight: 500; }
.ip-rm-card-foot > span { display: inline-flex; align-items: center; gap: 4px; }
.ip-rm-card-foot .ip-icon { width: 15px; height: 15px; }
.ip-rm-empty { padding: 28px 12px; text-align: center; color: var(--ip-muted); font-size: .9rem; border: 1px dashed var(--ip-border); border-radius: var(--ip-radius); }
/* Lange Spalten: nur die ersten Karten, dann Link zur gefilterten Ideenliste */
.ip .ip-rm-more { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: var(--ip-radius);
    border: 1px dashed color-mix(in srgb, var(--c) 40%, var(--ip-border)); color: var(--ip-brand); font-weight: 500; font-size: .9rem; text-align: center; text-decoration: none; }
.ip .ip-rm-more:hover { border-style: solid; background: var(--ip-surface); color: var(--ip-brand-strong); }
.ip-rm-jump { display: none; }
/* Untereinander, sobald die Spalten nicht mehr nebeneinander passen (n × 280 px + Abstände) */
@media (max-width: 1000px) { .ip-rm[data-cols="2"], .ip-rm[data-cols="3"] { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1300px) { .ip-rm[data-cols="4"] { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1600px) { .ip-rm[data-cols="5"] { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1900px) { .ip-rm[data-cols="6"] { grid-template-columns: minmax(0, 1fr); } }
.ip-rm-page.is-stacked .ip-rm { grid-template-columns: minmax(0, 1fr); }
/* Sprungleiste: Spaltennamen füllen die Breite; passen sie nicht, wird gewischt */
.ip-rm-jump {
    position: sticky; top: var(--ip-sticky-top); z-index: 8; gap: 8px; margin: 0 calc(-1 * var(--ip-rm-pad)) 16px;
    padding: 8px var(--ip-rm-pad); overflow-x: auto; scrollbar-width: none;
    background: color-mix(in srgb, var(--ip-bg) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ip-border);
}
.ip-rm-jump::-webkit-scrollbar { display: none; }
.ip .ip-rm-jump a { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 10px;
    border-radius: var(--ip-radius-pill); border: 1px solid var(--ip-border); background: var(--ip-surface); color: var(--ip-ink);
    font-size: .84rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.ip-rm-jump .ip-rm-count { height: 20px; min-width: 22px; padding: 0 6px; font-size: .72rem; }
.ip-rm-page.is-stacked .ip-rm-jump { display: flex; }
.ip-rm-page.is-stacked .ip-rm-col { scroll-margin-top: calc(var(--ip-sticky-top) + 64px); }
.ip-rm-page.is-stacked .ip-rm-head { top: calc(var(--ip-sticky-top) + 57px); }
@media (max-width: 1000px) {
    .ip-rm-jump { display: flex; }
    .ip-rm-col { scroll-margin-top: calc(var(--ip-sticky-top) + 64px); }
    .ip-rm-head { top: calc(var(--ip-sticky-top) + 57px); }
}
@media (max-width: 420px) { .ip-rm-jump .ip-dot { display: none; } }

/* ---------- Meldung unten (fetch-Fehler) ---------- */
.ip-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px;
    border-radius: var(--ip-radius); background: var(--ip-ink); color: var(--ip-bg); box-shadow: var(--ip-shadow-lg); font-size: .92rem;
    transform: translate(-50%, 12px); opacity: 0; transition: opacity .2s, transform .2s; }
.ip-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================================================================
 * Changelog (Plan Task 8): Liste mit Karten (Kategorie, Datum, Titel, Auszug, erstes Bild), Abo-Formular, Detail mit Inhalt
 * (.ideas-content aus content.css), „Umgesetzte Wünsche“, Link zum Teilen und Nachbarn.
 * ===================================================================================================================== */
.ip-cl-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ip-cl-hero-actions .ip-search { flex: 1 1 360px; }
.ip-cl-subscribe-link { min-height: 54px; gap: 8px; background: var(--ip-surface); }
.ip-cl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 64px; }
@media (min-width: 1000px) { .ip-cl { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-top: 40px; } }
.ip-cl-results { min-width: 0; max-width: 900px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-content: start; }
.ip .ip-cl-searchhead { margin: 0; }
.ip-cl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ip-cl-card {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 26px;
    background: var(--ip-surface); border: 1px solid var(--ip-border); border-radius: var(--ip-radius); box-shadow: var(--ip-shadow-sm);
    transition: border-color .15s, box-shadow .2s, transform .2s;
}
.ip-cl-card:hover { border-color: color-mix(in srgb, var(--ip-brand) 40%, var(--ip-border)); box-shadow: var(--ip-shadow); transform: translateY(-1px); }
@media (min-width: 720px) { .ip-cl-card.has-image { grid-template-columns: minmax(0, 1fr) 220px; align-items: start; } }
.ip-cl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 10px; color: var(--ip-muted); font-size: .84rem; }
.ip .ip-cl-title { margin: 0 0 8px; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; hyphens: auto; }
.ip .ip-cl-title a { color: var(--ip-ink); text-decoration: none; }
.ip-cl-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ip .ip-cl-card:hover .ip-cl-title a { color: var(--ip-brand); }
.ip-cl-excerpt { margin: 0 0 14px; color: var(--ip-muted); font-size: .95rem; line-height: 1.65; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ip-cl-more { display: inline-flex; align-items: center; gap: 4px; color: var(--ip-brand); font-weight: 500; font-size: .92rem; }
.ip-cl-more .ip-icon { transition: transform .2s; }
.ip-cl-card:hover .ip-cl-more .ip-icon { transform: translateX(3px); }
.ip-cl-thumb { order: -1; border-radius: 10px; overflow: hidden; border: 1px solid var(--ip-border); background: var(--ip-surface-2); aspect-ratio: 16 / 10; }
@media (min-width: 720px) { .ip-cl-thumb { order: 0; } }
.ip-cl-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) { .ip-cl-card { padding: 18px; gap: 14px; } }

.ip-cl-subscribe { display: grid; gap: 16px 32px; padding: 28px; position: relative; overflow: hidden; scroll-margin-top: calc(var(--ip-sticky-top) + 24px); }
.ip-cl-subscribe::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--ip-brand), var(--ip-teal) 60%, var(--ip-amber)); }
@media (min-width: 860px) { .ip-cl-subscribe { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }
.ip .ip-cl-subscribe h2 { font-size: 1.3rem; margin-bottom: 8px; }
.ip-cl-subscribe-text p { margin: 0; color: var(--ip-muted); }
.ip-cl-subscribe-form { gap: 12px; }
.ip-cl-subscribe-cats summary { display: flex; align-items: center; min-height: 40px; cursor: pointer; color: var(--ip-brand); font-weight: 500; font-size: .9rem; }
.ip-cl-subscribe-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; padding: 12px 0 4px; }
.ip-cl-subscribe-checks .ip-check { font-weight: 400; font-size: .92rem; }
.ip-cl-subscribe-form .ip-btn { justify-self: start; }

/* Detail */
.ip-cl-detail { max-width: 880px; padding-bottom: 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ip-cl-detail .ip-back { margin: 0; }
.ip-cl-article { padding: clamp(22px, 2vw + 12px, 44px); position: relative; overflow: hidden; }
.ip-cl-article::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--ip-brand), var(--ip-teal) 60%, var(--ip-amber)); }
.ip-cl-article-head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--ip-border); }
.ip .ip-cl-article-title { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.ip-cl-body { font-size: 1.02rem; }
.ip-cl-ideas { margin-top: 32px; padding: 20px 22px; border-radius: var(--ip-radius); background: var(--ip-ok-soft); border: 1px solid color-mix(in srgb, var(--ip-ok) 25%, transparent); }
.ip .ip-cl-ideas h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1.1rem; color: var(--ip-ok); }
.ip-cl-ideas .ip-muted { font-size: .9rem; margin-bottom: 10px; }
.ip-cl-idea-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ip-cl-idea-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ip-cl-idea-list a { font-weight: 500; }
.ip-cl-share { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--ip-border); display: grid; gap: 8px; }
.ip-cl-share label { font-weight: 500; font-size: .9rem; color: var(--ip-ink); }
.ip-cl-share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ip-cl-share-row input { flex: 1 1 260px; min-width: 0; min-height: 44px; padding: 8px 14px; border: 1px solid var(--ip-border); border-radius: var(--ip-radius-pill);
    background: var(--ip-surface-2); color: var(--ip-text); font: inherit; font-size: .9rem; }
.ip-cl-neighbours { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ip .ip-cl-neighbour { display: grid; gap: 4px; padding: 16px 20px; text-decoration: none; color: var(--ip-ink); transition: border-color .15s, box-shadow .2s; }
.ip .ip-cl-neighbour:hover { border-color: var(--ip-brand); box-shadow: var(--ip-shadow); color: var(--ip-ink); }
.ip-cl-neighbour.is-older { text-align: right; }
.ip-cl-neighbour-k { font-size: .8rem; font-weight: 500; color: var(--ip-brand); text-transform: uppercase; letter-spacing: .06em; }
.ip-cl-neighbour-t { font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }

/* =====================================================================================================================
 * Bilder in Inhalten groß ansehen (portal.js öffnet ein <dialog>): Screenshots sind auf dem Handy sonst kaum lesbar.
 * ===================================================================================================================== */
.ip .ideas-content img[data-ip-zoom] { cursor: zoom-in; }
.ip-lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(2, 18, 22, .94); color: #fff; overflow: hidden; }
.ip-lightbox::backdrop { background: rgba(2, 18, 22, .6); }
.ip-lightbox-scroll { width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 56px 12px 24px; touch-action: pan-x pan-y pinch-zoom; }
.ip-lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 80px); height: auto; border-radius: 8px; background: #fff; cursor: zoom-in; }
.ip-lightbox.is-full .ip-lightbox-scroll { place-items: start; }
.ip-lightbox.is-full img { max-width: none; max-height: none; cursor: zoom-out; }
.ip-lightbox-close { position: fixed; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.ip-lightbox-close:hover { background: rgba(255, 255, 255, .26); }
.ip-lightbox-close:focus-visible { outline: 3px solid #6dcfd0; outline-offset: 2px; }

/* Suche im Hero auf schmalen Schirmen etwas kompakter, damit der Platzhalter lesbar bleibt */
@media (max-width: 420px) {
    .ip-search { gap: 4px; }
    .ip-search-icon { margin-left: 8px; }
    .ip-search .ip-btn { padding: 0 14px; }
}

/* =====================================================================================================================
 * Roadmap ruhiger: Spaltenfarben nach Position statt Statusfarbe – hellgrau, hellgrau, helles Teal (letzte Spalte = „in Arbeit“).
 * data-tone="bunt" am .ip-rm-page würde wieder die Statusfarben aus dem CRM zeigen.
 * ===================================================================================================================== */
.ip-rm-page[data-tone="dezent"] .ip-rm-col,
.ip-rm-page[data-tone="dezent"] .ip-rm-jump a { --c: #a9b8bc; }
.ip-rm-page[data-tone="dezent"] .ip-rm-col:last-child:not(:first-child),
.ip-rm-page[data-tone="dezent"] .ip-rm-jump a:last-child:not(:first-child) { --c: #5cc2b9; }
.ip-rm-page[data-tone="dezent"] .ip-rm-head { box-shadow: inset 0 2px 0 var(--c); }

/* Kategorien der Roadmap auf normalen Bildschirmen in zwei Zeilen: Filterspalte breiter, Chips etwas kompakter */
@media (min-width: 1100px) {
    /* Kategorien als eigene Zeile unter dem Text: so passen sie in der normalen Seitenbreite in zwei Zeilen */
    .ip-rm-intro { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .ip-rm-intro .ip-lead { max-width: 46em; }
    .ip-rm-filter { justify-content: flex-start; }
    .ip-rm-filter { gap: 6px; }
    .ip-rm-filter .ip-chip { padding: 4px 10px 4px 9px; font-size: .78rem; gap: 6px; }
}

/* Abo-Feld nach Klick auf „Abonnieren“ kurz aufleuchten lassen */
.ip-attn { animation: ip-attn 1.4s ease-out; }
@keyframes ip-attn {
    0%, 35% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ip-amber) 55%, transparent); border-color: var(--ip-amber); }
    100% { box-shadow: 0 0 0 4px var(--ip-focus); }
}
@media (prefers-reduced-motion: reduce) { .ip-attn { animation: none; } }
/* Punkte in Spaltenkopf und Sprungleiste übernehmen die Spaltenfarbe statt der Statusfarbe */
.ip-rm-page:not([data-tone="bunt"]) .ip-rm-head .ip-dot,
.ip-rm-page:not([data-tone="bunt"]) .ip-rm-jump .ip-dot,
.ip-rm-page:not([data-tone="bunt"]) .ip-rm-head .ip-rm-count { --c: inherit; }
@media (max-width: 420px) {
    .ip-actions .ip-btn-ghost { padding-left: 12px; padding-right: 12px; }
}

/* Roadmap-Karten feiner: schmalere Spalten, kleinere Schrift */
.ip .ip-rm-title { font-size: .98rem; }
.ip-rm-head { padding: 14px 16px 12px; }
.ip-rm-list { gap: 8px; padding: 12px; }
.ip-rm-card { gap: 6px; padding: 12px 14px; }
.ip .ip-rm-card-title { font-size: .9rem; line-height: 1.38; }
.ip-rm-card .ip-chip-cat { font-size: .7rem; padding: 2px 8px; }
.ip-rm-card-foot { font-size: .74rem; gap: 14px; }
.ip-rm-card-foot .ip-icon { width: 13px; height: 13px; }
