/* =========================================================
DESIGN SYSTEM & VARIABLEN
========================================================= */
:root {
    --primary-color: #5d3fbc;
    --primary-dark: #072a56;
    --accent-color: #ff9800;
    --accent-color-light: #fff3e0;
    /* für Expandible Header */
    --accent-color-dark: #4a2fa6;
    /* Textfarbe im Header */

    --text-color: #233243;
    --background-light: #f4f7f9;
    --background-card: #ffffff;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, .05);
    --shadow-md: 0 10px 35px rgba(20, 30, 50, .08);

    --status-planned-bg: #eef2ff;
    --status-planned-border: #6366f1;

    --status-finished-bg: #ecfdf5;
    --status-finished-border: #10b981;

    --status-backlog-bg: #fff7ed;
    --status-backlog-border: #f97316;

    --status-idea-bg: #fdf4ff;
    --status-idea-border: #d946ef;
}


/* =========================================================
RESET
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--background-light);
    color: var(--text-color);
    padding-top: 150px;
    padding-bottom: 80px;
}

/* Standard-Abstand zwischen allen Sections */
section {
    margin-top: 60px;
    margin-bottom: 60px;
}

/* =========================================================
TYPOGRAFIE
========================================================= */
h1 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

p {
    line-height: 1.6;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* =========================================================
LAYOUT
========================================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.main-content {
    background: var(--background-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

/* =========================================================
HEADER
========================================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1100px;
    margin: auto;
}

/* Header Top */

.header-top {
    position: relative;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Title */

.header-title h1 {
    font-size: 2rem;
    margin: 0;
}

/* Icon Row */

.header-icons {
    width: 100%;
    margin-top: 10px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-icons .header-side:first-child {
    justify-self: start;
}

.header-icons .header-side:last-child {
    justify-self: end;
}

.header-side a img {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-side a:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* Logo & QR */

.site-logo {
    height: 100px;
}

.header-qr {
    height: 44px;
    opacity: 0.85;
}

/* =========================================================
NAVIGATION
========================================================= */

.main-nav {
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    list-style: none;
    padding: 12px 0;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--primary-color);
}

.nav-links a:hover {
    color: var(--primary-dark);
}

/* =========================================================
HAMBURGER
========================================================= */

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: "";
    display: block;
    width: 24px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: .3s ease;
}

.hamburger::before {
    transform: translateY(-7px);
}

.hamburger::after {
    transform: translateY(4px);
}

.menu-toggle.open .hamburger {
    background: transparent;
}

.menu-toggle.open .hamburger::before {
    transform: rotate(45deg);
}

.menu-toggle.open .hamburger::after {
    transform: rotate(-45deg);
}

/* =========================================================
HERO
========================================================= */

.hero-layout {
    display: grid;
    gap: 40px;
}


.hero-media {
    display: flex;
    justify-content: center;
}

.hero-content ul {
    margin-top: 12px;
}

/* CTA Button */

.primary-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    border-radius: 14px;

    background: linear-gradient(135deg, var(--primary-color), #7a5cff);
    color: white;
    font-weight: 600;
    text-decoration: none;

    box-shadow: var(--shadow-md);
    transition: transform .2s ease, box-shadow .2s ease;
    align-items: center;
    gap: 8px;
}


.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

/* Trust Row */

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    font-size: .9rem;
    opacity: .85;
}

/* =========================================================
USP GRID
========================================================= */

.usp-item {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform .2s ease;
}

.usp-item:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #eef3ff 0%, #ffffff 100%);
    box-shadow: 0 12px 28px rgba(20, 30, 50, .1);
}

.usp-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* =========================================================
DOWNLOAD CTA - OPTIMIERT
========================================================= */

.highlight-download {
    background: linear-gradient(135deg, #eef3ff 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 40px auto;
    /* zentriert auf Seite */
}

.highlight-download h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.highlight-download p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

.cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.cta-box a strong {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1.1rem;
    background: var(--accent-color);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(93, 63, 188, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.cta-box a strong:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(93, 63, 188, 0.35);
}

.qr-code {
    margin-top: 0;
    max-width: 180px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}




/* =========================================================
SMARTPHONE FRAME
========================================================= */

.smartphone-frame {
    width: 260px;
    aspect-ratio: 9 / 16;
    background: linear-gradient(180deg, #111, #000);
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .35);
    position: relative;
}

.smartphone-frame iframe {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    border: none;
}

/* =========================================================
CAROUSEL
========================================================= */

.video-carousel {
    position: relative;
    max-width: 320px;
}

.carousel-viewport {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform .35s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
}

/* Buttons */

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, .9);
    font-size: 1.4rem;
    box-shadow: var(--shadow-sm);
}

.carousel-btn.prev {
    left: -22px;
}

.carousel-btn.next {
    right: -22px;
}

/* =========================================================
FOOTER - OPTIMIERT
========================================================= */

footer {
    position: fixed;
    /* optional: kannst du sticky machen, wenn du willst */
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    color: #fff;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    /* leichter Schatten oben */
    font-size: 0.875rem;
    z-index: 1000;
}

footer .container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

footer a {
    color: #a0c3ff;
    /* helles Blau passend zum Header */
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer p {
    margin: 0;
    line-height: 1.5;
}






/* =========================================================
ÜBERSICHTSSEITE
========================================================= */

/* Sections */
.main-content section,
.main-content>h2,
.main-content>h3 {
    margin-top: 60px;
    margin-bottom: 40px;
}

.main-content h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
}

.main-content h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.feature-list,
.main-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0 auto 20px auto;
    max-width: 800px;
}

.feature-list li,
.main-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 1em;
    line-height: 1.5;
}

.feature-list li::before,
.main-content ul li::before {
    content: "✔️";
    /* optional: 🎯 💡 je nach Kontext */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1em;
    line-height: 1.2;
}


/* ===============================
DIAGRAMM CONTAINER
=============================== */
.diagram-container {
    overflow-x: auto;
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 12px;
    background-color: #fefefe;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

/* ===============================
ALLGEMEINE CARD STILE
=============================== */

.card,
.method-card {
    background-color: var(--background-card);
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.method-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}


/* ===============================
METHOD CARD
=============================== */

.method-card {
    max-width: 900px;
    margin: 0 auto 15px auto;
}

/* ===============================
EXPANDABLE CONTENT
=============================== */

/* geschlossen */
.method-card .card-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    padding: 0 20px;

    background-color: #fafafa;
    border-top: 1px solid #eee;
    border-left: 4px solid var(--accent-color);

    transition:
        max-height 0.45s ease,
        opacity 0.25s ease,
        padding 0.25s ease;
}

.method-card.expanded .card-content {
    max-height: 1000px;
    opacity: 1;
    padding: 20px;
}


.method-card .card-content strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 4px;
}



/* Container Alignment Fix */

.main-content .method-card {
    margin-left: auto;
    margin-right: auto;
}

.story-content {
    background: #fcfcfc;
}
.story-text {
    flex: 1.2;
}

.story-text p {
    margin-bottom: 10px;
}



.story-video-group {
    display: grid;
    gap: 16px;
}

.story-video {
    background: white;
    padding: 10px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
        flex: 0.8;
    max-width: 360px;
}

.user-story-card .card-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.35s ease, padding 0.25s ease;
}

.user-story-card.expanded .card-content {
    max-height: 2000px;
    padding: 20px;
}


/* ===============================
DETAILS CONTAINER
=============================== */
#details_container {
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    box-shadow: var(--shadow-sm);
}



.features-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.feature-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--background-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    width: 220px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: normal;
    font-size: 2.2em;
    /* oder wie benötigt */
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}


.feature-card h4 {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--primary-dark);
}

.feature-card p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.4;
}

.faq-card {
    border: 1px solid #e3e6ec;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: none;
}

.faq-card:hover {
    transform: none;
}


.faq-card .method-header {
    all: unset; /* entfernt Button-Default */

    display: flex;
    align-items: flex-start;
    gap: 12px;

    width: 100%;
    padding: 16px 20px;

    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;

    color: var(--primary-dark);
    background-color: #f9fafc;

    cursor: pointer;
}

.faq-title {
    flex: 1;
}

.faq-card .method-header::after {
    content: "keyboard_arrow_down";
    font-family: "Material Icons";
    font-size: 20px;
    margin-left: auto;
    opacity: 0.4;
    transition: transform 0.25s ease;
}

.faq-card.expanded .method-header::after {
    transform: rotate(180deg);
}


.faq-card .card-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;

    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;

    transition:
        max-height 0.3s ease,
        padding 0.25s ease;
}



.faq-card.expanded {
    border-left: 3px solid rgba(93, 63, 188, 0.25);
}

.faq-card.expanded .card-content {
    padding: 16px 20px 20px;
    max-height: 800px;
}


/* ===============================
DOWNLOAD CARDS
=============================== */

/*.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}*/

.flags {
    flex-shrink: 0;
    white-space: nowrap;
}

.title-text {
    flex: 1;
    min-width: 0;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-wrap: nowrap;
}




.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.download-cards {
    display: flex;
    flex-direction: column;
}


/* Jede Card */
.download-card {
    background-color: var(--background-card);
    border-radius: var(--radius-lg);
    border: 1px solid #ddd;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    margin: 0 auto 15px auto;

}


/* Hover */
.download-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.download-card .method-header::after {
    content: "";
}


/* Header klickbar */
.download-card .method-header {

    display: grid;
    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 12px;

    padding: 16px 20px;

    font-weight: 600;
    font-size: 1.1em;

    background-color: var(--accent-color-light);
    color: var(--accent-color-dark);

    border-bottom: 1px solid #eee;

    cursor: pointer;

    transition: background-color 0.2s ease;

    width: 100%;
}



.download-card .method-header:hover {
    background-color: var(--accent-color);
    /* optional, schöner Hover */
    color: #fff;
}

.method-header button,
.method-header a {
    line-height: 1;
}


/* Card-Content (geschlossen) */
.download-card .card-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 20px;
    background-color: #fafafa;
    border-top: 1px solid #eee;
    border-left: 4px solid var(--accent-color);
    transition:
        max-height 0.45s ease,
        opacity 0.25s ease,
        padding 0.25s ease;
}

/* Card-Content geöffnet */
.download-card.expanded .card-content {
    max-height: 800px;
    /* genug Platz für Text + Buttons */
    opacity: 1;
    padding: 20px;
}

/* Button innerhalb der Card */
.download-card .card-content .primary-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), #7a5cff);
    color: white;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card .card-content .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* Community Cards reuse */
.community-card {
    composes: method-card;
    /* Falls du CSS Modules oder PostCSS nutzt */
    margin-bottom: 20px;
    padding: 0;
    /* Padding wird in card-content gesetzt */
}

.community-card h3 {
    composes: method-header;
    cursor: pointer;
}

/* Inhalt innerhalb der Community Card */
.community-card p,
.community-card .include-email {
    composes: card-content;
    padding: 15px 20px;
}

/* Optional: Buttons oder Links */
.community-card a,
.community-card .primary-btn {
    composes: primary-btn;
    margin-top: 8px;
}

.community-card .card-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 20px;
    transition:
        max-height 0.45s ease,
        opacity 0.25s ease,
        padding 0.25s ease;
}

.community-card.expanded .card-content {
    max-height: 1000px;
    /* groß genug für Text */
    opacity: 1;
    padding: 20px;
}

.include-email {
    display: inline-block;
    margin-top: 10px;
}

/* ===============================
Filter Bar for download
=============================== */
.filter-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0 20px;
}


/* Search */

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    border: 1px solid #ddd;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    width: 200px;
}

/* Dropdown Groups */

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
}

.filter-group select {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

/* Hover polish */

.filter-group select:hover,
.search-box:hover {
    border-color: var(--accent-color);
}


.filter-bar {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    background: var(--background-card);
    padding: 16px 20px;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    margin: 20px 0;
}

.filter-bar select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
}




/* Header klickbar */


.method-header {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px 20px;

    font-weight: 600;
    font-size: 1.05rem;

    background-color: #f8f9fb;
    color: var(--primary-dark);

    border-bottom: 1px solid #e6e6e6;

    user-select: none;
}


.quick-actions a,
.quick-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}


#details_container {
    display: none;
    padding: 20px;
    margin-top: 20px;

    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

#details_container.active {
    display: block;
}





/* ===============================
CARDS CONTAINER
=============================== */
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* ===============================
Für Anwendungsfälle
=============================== */
/* User Story Spezialoptik */

.story-title {
    flex: 1;
}

.user-story-card {
    border: 1px solid #e2e4ea;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.user-story-card:hover {
    transform: none;
}

.user-story-card .story-content {
    padding: 5px;
    background: #ffffff;
}

.method-card > .method-header::after {
    content: "";
    font-family: "Material Icons";
    font-size: 22px;
    margin-left: auto;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.method-card.expanded > .method-header::after {
    transform: rotate(180deg);
}



.user-story-card .method-header {
    all: unset; /* WICHTIG – entfernt Button-Default-Styles */

    display: flex;
    align-items: center;

    width: 100%;
    padding: 16px 20px;

    background: #f9fafc;
    border-bottom: 1px solid #e6e8ee;

    font-weight: 600;
    font-size: 1.05rem;

    cursor: pointer;
}

.user-story-card .method-header::after {
    content: "expand_more";
    font-family: "Material Icons";
    font-size: 22px;
    margin-left: auto;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.user-story-card.expanded .method-header::after {
    transform: rotate(180deg);
}




.story-flex-container {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}



.story-video iframe {
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* Hide fallback on desktop */

.planned-fallback-list {
    display: none !important;
}


/* =========================================================
Desktop
========================================================= */
/* DESKTOP: Hamburger ausblenden */

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        display: none;
    }

    /* Header in einer Reihe */
    .header-top {
        position: relative;
        flex-direction: row;
        align-items: center;
    }


    .header-title-block {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);

        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header-title-block nav {
        margin-top: 6px;
    }


    /* Icons über volle Breite verteilen */
    .header-icons {
        width: 100%;
        margin-top: 0;

        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hero-layout {
        grid-template-columns: 420px 1fr;
        align-items: center;
    }

    .story-flex-container {
        grid-template-columns: 1.2fr 1fr;
        align-items: start;
    }
}

/* =========================================================
ROADMAP LAYOUT
========================================================= */

#roadmap-container {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.roadmap-timeline-column {
    position: relative;
}

.roadmap-content-column {
    display: flex;
    flex-direction: column;
    gap: 56px;
    max-width: 900px;
}


/* =========================================================
TIMELINE CORE
========================================================= */

.timeline-rail {
    position: relative;
    width: 100px;
    min-height: 300px;
    padding-bottom: 20px;
    height: 100%;
}

/* Vertical Line */

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom,
            var(--primary-color),
            #7a5cff);
    border-radius: 3px;
    transform: translateX(-50%);
    animation: growLine 0.8s ease forwards;
}

/* Label Layer */

.timeline-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
    margin-top: 10px;
}

.timeline-label {
    position: absolute;
    left: 0;
    transform: translateY(-50%);
    background: var(--background-card);
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    opacity: 0;
    animation: fadeSlideLeft 0.4s ease forwards;
}

/* Marker Layer */

#timeline-markers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Marker Dots */

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 4px var(--background-light);
    opacity: 0;
    animation: popMarker 0.35s ease forwards;
    margin-top: 12px;

}


/* =========================================================
ROADMAP SECTIONS
========================================================= */
.roadmap-section .roadmap-card {
    max-width: 900px;
}

.roadmap-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.roadmap-section-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
}


/* =========================================================
PLANNED TIMELINE AREA
========================================================= */

.planned-section-wrapper {
    position: relative;
}

.planned-section .roadmap-card {
    border-left-color: var(--accent-color);
    background: linear-gradient(180deg,
            #ffffff,
            #fafaff);
}

.planned-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Abstand zwischen Cards */
    position: relative;
    /* optional */
}

.planned-card-abs {
    position: relative;
    /* statt absolute */
    top: auto;
    width: 100%;
}



/* Absolute positioned planned cards */

/*.planned-card-abs {
    position: relative;
    transform: none;
    width: 100%;
}*/

/* Absolute timeline cards 
.planned-card-abs {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(var(--pct));
}*/




/* =========================================================
ROADMAP CARD BASE (Design System Compatible)
========================================================= */

.roadmap-card {
    background: var(--background-card);
    border-radius: var(--radius-lg);
    border: 1px solid #e0e4ea;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /*box-shadow: var(--shadow-sm);*/

    padding: 16px 20px;
    /*border-left: 6px solid var(--primary-color);*/
    border-left-width: 4px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;

    opacity: 0;
    animation: fadeInCard 0.5s ease forwards;
    border-left: 5px solid transparent;

}

.roadmap-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.roadmap-card h4 {
    font-size: 1.05rem;
    color: var(--primary-dark);
}


/* =========================================================
CARD HEADER LAYOUT
========================================================= */

.card-header {
    display: flex;
    flex-direction: column;
}

.card-title-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 10px;
}


/* Expand Button */

.card-expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--primary-color);
    transition: transform .2s ease;
}

.card-expand-btn:hover {
    transform: rotate(180deg);
}


/* =========================================================
BADGES
========================================================= */

.card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.badge {
    background: var(--accent-color-light);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-dark);
}


/* =========================================================
VOTES
========================================================= */

.card-votes-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
}

.votes-info {
    font-weight: 700;
    font-size: 0.8rem;
}

.btn-vote {
    border: none;
    background: none;
    cursor: pointer;
    transition: transform .15s ease;
    font-size: 0.9rem;
}

.btn-vote:hover:not(:disabled) {
    transform: scale(1.2);
}

.btn-vote[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}


/* =========================================================
CARD DETAILS (EXPAND)
========================================================= */

.card-details {
    font-size: 0.85rem;
    line-height: 1.4;
    background: #fafafa;
    padding: 12px 14px;
    border-radius: 12px;
    border-left: 3px solid var(--accent-color);
    animation: fadeSlideDown .25s ease forwards;
}

.detail-item strong {
    color: var(--primary-dark);
}


/* =========================================================
STACKED SECTIONS (BACKLOG / IDEA / FINISHED)
========================================================= */


.roadmap-section>div {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* Planned */
.roadmap-planned {
    background: var(--status-planned-bg);
    border-color: var(--status-planned-border);
}

/* Published / Finished = Grün */
.roadmap-finished {
    background: var(--status-finished-bg);
    border-color: var(--status-finished-border);
}

/* Backlog */
.roadmap-backlog {
    background: var(--status-backlog-bg);
    border-color: var(--status-backlog-border);
}

/* Idea */
.roadmap-idea {
    background: var(--status-idea-bg);
    border-color: var(--status-idea-border);
}





/* =========================================================
ANIMATIONS
========================================================= */

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(-30%);
    }

    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideLeft {
    from {
        opacity: 0;
        transform: translate(-10px, -50%);
    }

    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

@keyframes popMarker {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.4);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes growLine {
    from {
        transform: translateX(-50%) scaleY(0);
    }

    to {
        transform: translateX(-50%) scaleY(1);
    }
}


/* Desktop: normale Anzeige */
.card-labels .type-text,
.card-labels .location-text {
    display: inline;
}


/* =========================================================
MOBILE
========================================================= */

/* Mobile: nur Icons */
@media (max-width: 768px) {

    .faq-card .method-header {
        font-size: 0.95rem;
        padding: 14px 16px;
    }

    .faq-card .card-content {
        font-size: 0.9rem;
    }
    .download-card .method-header {
        grid-template-columns: auto 1fr;
        row-gap: 8px;
    }

    .quick-actions {
        grid-column: 2;
        justify-self: end;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input {
        width: 100%;
    }

    .card-labels .type-text,
    .card-labels .location-text {
        display: none;
    }

    .roadmap-card {
        width: 100%;
        /* sicherstellen, dass Karte nie über Bildschirm geht */
        box-sizing: border-box;
    }

    .card-title-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .roadmap-section .roadmap-card {
        width: 100%;
        max-width: 100%;
    }

    .planned-fallback-list {
        display: grid;
    }

    #roadmap-container {
        grid-template-columns: 1fr;
        padding: 0 16px;
        /* Abstand links/rechts */
    }

    /* Timeline ausblenden */
    .roadmap-timeline-column {
        display: none;
    }

    /* Planned sichtbar lassen */
    .planned-section-wrapper {
        display: block;
        align-items: flex-start;
    }

    /* Mobile stacked cards */
    .planned-section {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .planned-card-abs {
        width: 100%;
        box-sizing: border-box;
        /* wichtig */
        left: 0;
        right: 0;
        transform: none;
        position: relative;
        top: auto;
    }


    .roadmap-content-column {
        max-width: 100%;
        width: 100%;
        gap: 24px;
    }

    footer .container {
        flex-direction: column;
        gap: 6px;
    }

    footer {
        padding: 14px 16px;
        font-size: 0.8rem;
    }

    .menu-toggle {
        display: flex;
    }

    body {
        padding-top: 160px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .site-logo {
        height: 48px;
    }

    .header-qr {
        height: 38px;
    }

    .hero-layout {
        text-align: center;
    }

    .trust-row {
        justify-content: center;
    }

    .highlight-download {
        padding: 40px 16px;
    }

    .highlight-download h2 {
        font-size: 1.6rem;
    }

    .cta-box a strong {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .qr-code {
        max-width: 150px;
    }
        .story-flex-container {
        flex-direction: column-reverse;
    }

    .story-video {
        max-width: 100%;
        margin-bottom: 16px;

    }

    .main-content h2 {
        font-size: 1.7em;
    }

    .main-content h3 {
        font-size: 1.3em;
    }

    .diagram-container {
        padding: 15px;
    }
}