/* ============================================
   Klari - Dein kluger Lernfreund
   Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors matched to Klari app (Theme.swift) - warmer & more vibrant */
    --color-primary: #5B7EC2;
    --color-primary-dark: #4A6AAF;
    --color-primary-light: #E8EEFF;
    --color-secondary: #4CAF6A;
    --color-secondary-light: #E6F5EC;
    --color-accent: #E8A635;
    --color-accent-light: #FFF8EB;
    --color-text: #3E2C1C;
    --color-text-light: #4A3D30;
    --color-text-lighter: #A89888;
    --color-bg: #FFFBF7;
    --color-bg-gray: #FFF0E0;
    --color-bg-card: #FFFFFF;
    --color-border: #F0E4D8;
    --color-white: #FFFFFF;
    --color-pink: #FF6B8A;
    --color-purple: #9268A8;
    --color-teal: #3BA8B8;
    --color-green: #5EA650;
    --color-error: #D45B4F;
    --color-subject-math: #5B7EC2;
    --color-subject-deutsch: #D45B4F;
    --color-subject-nmg: #5EA650;
    --color-subject-english: #9268A8;
    --color-subject-french: #E8A635;
    --shadow-sm: 0 1px 3px rgba(62, 44, 28, 0.06);
    --shadow-md: 0 4px 12px rgba(62, 44, 28, 0.08);
    --shadow-lg: 0 8px 30px rgba(62, 44, 28, 0.10);
    --shadow-xl: 0 16px 48px rgba(62, 44, 28, 0.12);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'Helvetica Neue', Arial, sans-serif;
    --container-width: 1140px;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul { list-style: none; }

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--white {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.btn--white:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn--large {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: var(--radius-md);
}

.btn--small {
    padding: 8px 20px;
    font-size: 14px;
}

.btn--block {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 246, 241, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.nav--scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
}

.nav__logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
}

.nav__logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav__logo-text {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__links a {
    color: var(--color-text-light);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition);
}

.nav__links a:hover {
    color: var(--color-text);
}

.nav__links .btn--primary {
    color: var(--color-white);
}

.nav__links .btn--primary:hover {
    color: var(--color-white);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Sections --- */
.section {
    padding: 96px 0;
}

.section--gray {
    background: var(--color-bg-gray);
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section__sticker {
    display: block;
    margin: 0 auto -5px;
    position: relative;
    z-index: 1;
}

.section__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
    position: relative;
}

.section--gray .section__label {
    color: var(--color-green);
    background: var(--color-secondary-light);
}

#privacy .section__label {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

#how-it-works .section__label {
    color: var(--color-purple);
    background: #F3EEFF;
}

#pricing .section__label {
    color: var(--color-accent);
    background: var(--color-accent-light);
}

#faq .section__label {
    color: var(--color-teal);
    background: #E6F7F9;
}

.section__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 16px;
}

.section__desc {
    font-size: 20px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Hero --- */
.hero {
    padding: 140px 0 80px;
    overflow: visible;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFE8CC, #FFD6A5);
    color: #C67600;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 20px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 8px;
    max-width: 520px;
}

.hero__tagline {
    font-size: 15px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text-light);
}

.hero__trust-dot {
    width: 4px;
    height: 4px;
    background: var(--color-text-lighter);
    border-radius: 50%;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.hero__tablet {
    width: 420px;
    height: 320px;
    background: var(--color-text);
    border-radius: 20px;
    padding: 10px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.hero__tablet::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: #2a1d10;
    border-radius: 4px;
    z-index: 2;
}

.hero__tablet-screen {
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#klariCanvas {
    width: 180%;
    height: 700px;
    display: block;
    margin: -120px -40% -100px 0;
    max-width: none;
}

/* --- Problem Cards --- */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.problem-card {
    background: var(--color-white);
    padding: 24px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.problem-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.problem-card__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
}

.problem-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.problem-card:nth-child(1) .problem-card__icon { color: #E8A635; }
.problem-card:nth-child(2) .problem-card__icon { color: #5B7EC2; }
.problem-card:nth-child(3) .problem-card__icon { color: #D45B4F; }
.problem-card:nth-child(4) .problem-card__icon { color: #9268A8; }

.problem-card__text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.problem-card__text p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Solution List --- */
.solution-list {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.solution-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text-light);
}

.solution-item__check {
    flex-shrink: 0;
    color: var(--color-secondary);
    margin-top: 3px;
}

.solution-item strong {
    color: var(--color-text);
}

.solution-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.solution-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-white);
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-align: center;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.feature-card:nth-child(1) .feature-card__icon { background: #E8EEFF; color: #5B7EC2; }
.feature-card:nth-child(2) .feature-card__icon { background: #FFE8E5; color: #D45B4F; }
.feature-card:nth-child(3) .feature-card__icon { background: #FFF3E0; color: #E8A635; }
.feature-card:nth-child(4) .feature-card__icon { background: #E6F5EC; color: #4CAF6A; }

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Steps --- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}


.step {
    text-align: center;
}

.step__connector {
    display: none;
}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.step:nth-child(1) .step__number { background: #5B7EC2; }
.step:nth-child(2) .step__number { background: #E8A635; }
.step:nth-child(3) .step__number { background: #4CAF6A; }

.step__visual {
    margin-bottom: 24px;
}

.step__tablet {
    width: 200px;
    height: 150px;
    background: var(--color-text);
    border-radius: 14px;
    padding: 6px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.step__tablet-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--color-text-lighter);
    font-weight: 500;
}

.step__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step__desc {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.55;
}

/* --- Privacy --- */
.section--privacy {
    background: #1a1f2e;
    color: var(--color-white);
}

.section--privacy .section__label {
    background: rgba(76, 175, 106, 0.15);
    color: #6ee09a;
    border: 1px solid rgba(76, 175, 106, 0.3);
}

.section--privacy .section__title {
    color: var(--color-white);
}

.privacy-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: center;
}

.privacy-text p {
    color: rgba(255,255,255,0.75);
    font-size: 17px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.privacy-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.privacy-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255,255,255,0.04);
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

.privacy-list li svg {
    flex-shrink: 0;
    color: #6ee09a;
    margin-top: 2px;
}

.privacy-list li strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
    color: #ffffff;
}

.privacy-list li p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
    line-height: 1.6;
}

.section--privacy .btn--outline {
    color: #6ee09a;
    border-color: rgba(110, 224, 154, 0.4);
}

.section--privacy .btn--outline:hover {
    background: #6ee09a;
    color: #1a1f2e;
    border-color: #6ee09a;
}

.privacy-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-shield {
    width: 160px;
    height: 160px;
    background: rgba(110, 224, 154, 0.08);
    border: 2px solid rgba(110, 224, 154, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6ee09a;
}

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 760px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    position: relative;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card__action {
    margin-top: auto;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.pricing-card__popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-card__header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-card__header p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.pricing-card__badge {
    display: inline-block;
    background: var(--color-accent-light);
    color: #B8860B;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.pricing-card__amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.pricing-card__currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-light);
}

.pricing-card__value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.pricing-card__period {
    font-size: 16px;
    color: var(--color-text-light);
}

.pricing-card__regular {
    font-size: 14px;
    color: var(--color-text-lighter);
    margin-bottom: 4px;
}

.pricing-card__until {
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.pricing-card__savings {
    font-size: 14px;
    color: var(--color-secondary);
    font-weight: 600;
}

.pricing-card__features {
    text-align: left;
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-card__features li {
    font-size: 15px;
    color: var(--color-text-light);
    padding-left: 28px;
    position: relative;
}

.pricing-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--color-secondary-light);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%2334C68A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-note {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-lighter);
    margin-top: 24px;
}

/* --- Why Klari --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.why-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.why-card__icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Screenshots --- */
.screenshots-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshots-slider::-webkit-scrollbar {
    display: none;
}

.screenshot {
    flex-shrink: 0;
    scroll-snap-align: center;
}

.screenshot__tablet {
    width: 320px;
    height: 240px;
    background: var(--color-text);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow-md);
}

.screenshot__placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-text-lighter);
    font-size: 14px;
}

.screenshot__placeholder span {
    font-weight: 600;
}

.screenshot__placeholder p {
    font-size: 12px;
}

/* --- iPad Slider --- */
.ipad-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.ipad-frame {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

.ipad-bezel {
    background: #1d1d1f;
    border-radius: 24px;
    padding: 20px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255,255,255,0.05);
}

.ipad-camera {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #2a2a2e;
    border-radius: 50%;
    border: 1px solid #3a3a3e;
}

.ipad-screen {
    background: var(--color-bg);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
}

.ipad-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.ipad-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ipad-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ipad-slide__placeholder {
    color: var(--color-text-lighter);
    font-size: 16px;
    font-weight: 500;
}

.ipad-slider__controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ipad-slider__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.ipad-slider__btn:hover {
    color: var(--color-primary);
}

/* Play/Pause button */
.ipad-slider__playpause .icon-pause { display: none; }
.ipad-slider__playpause.playing .icon-play { display: none; }
.ipad-slider__playpause.playing .icon-pause { display: block; }

/* Dots */
.ipad-slider__dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ipad-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--color-border);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
    overflow: hidden;
    position: relative;
}

.ipad-slider__dot-fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
}

.ipad-slider__dot.active {
    width: 32px;
    background: var(--color-border);
}

.ipad-slider__dot.active .ipad-slider__dot-fill {
    animation: dotProgress 5s linear forwards;
    animation-play-state: paused;
}

.ipad-slider__dot.active.running .ipad-slider__dot-fill {
    animation-play-state: running;
}

.ipad-slider__dot.visited {
    background: var(--color-primary);
}

@keyframes dotProgress {
    from { width: 0; }
    to { width: 100%; }
}

@media (max-width: 768px) {
    .ipad-bezel {
        border-radius: 16px;
        padding: 12px;
    }

    .ipad-camera {
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
    }
}

/* --- FAQ --- */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    gap: 16px;
}

.faq-item__question svg {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--color-text-lighter);
}

.faq-item__question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item__answer p {
    padding: 0 24px 20px;
    font-size: 17px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- CTA --- */
.section--cta {
    background: linear-gradient(135deg, #5B7EC2, #4A6AAF, #3D5A99);
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-content p {
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    margin-bottom: 32px;
}

.cta-note {
    font-size: 13px !important;
    color: rgba(255,255,255,0.6) !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

/* --- Lehrplan 21 --- */
.lehrplan-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.lehrplan-text p {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.lehrplan-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.lehrplan-highlight {
    display: flex;
    gap: 16px;
    background: var(--color-primary-light);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin-top: 8px;
}

.lehrplan-highlight__icon {
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 2px;
}

.lehrplan-highlight strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--color-text);
}

.lehrplan-highlight p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 0;
    line-height: 1.55;
}

.lehrplan-subjects h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.lehrplan-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lehrplan-tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    background: color-mix(in srgb, var(--tag-color) 12%, transparent);
    color: var(--tag-color);
    border: 1px solid color-mix(in srgb, var(--tag-color) 25%, transparent);
}

@media (max-width: 768px) {
    .lehrplan-content {
        grid-template-columns: 1fr;
    }
}

/* --- Lehrplan Intro --- */
.lehrplan-intro {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.lehrplan-intro p {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.lehrplan-intro a {
    color: var(--color-primary);
    text-decoration: underline;
}

.lehrplan-subtitle {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.lehrplan-kanton-hint {
    text-align: center;
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

/* --- Kanton Grid --- */
.kanton-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.kanton-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-gray);
    text-align: center;
    opacity: 0.45;
    transition: all var(--transition);
}

.kanton-item--active {
    opacity: 1;
    background: var(--color-primary-light);
    box-shadow: var(--shadow-sm);
}

.kanton-wappen-img {
    width: 44px;
    height: auto;
    object-fit: contain;
}

.kanton-item span:not(.kanton-badge) {
    font-size: 11px;
    color: var(--color-text-light);
    line-height: 1.3;
}

.kanton-item--active span:not(.kanton-badge) {
    color: var(--color-text);
    font-weight: 500;
}

.kanton-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    background: var(--color-primary);
    color: var(--color-white);
}

.kanton-badge--soon {
    background: var(--color-accent);
    color: #fff;
}

@media (max-width: 768px) {
    .kanton-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .kanton-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- App Store Badge --- */
.app-store-badge {
    display: inline-block;
    transition: opacity var(--transition);
}

.app-store-badge:hover {
    opacity: 0.85;
}

.app-store-img {
    height: auto;
    width: 200px;
}

/* --- Footer --- */
.footer {
    background: #0C0E1A;
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer .nav__logo-text {
    color: var(--color-white);
}

.footer__desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
}

.footer__col h4 {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: color var(--transition);
}

.footer__col a:hover {
    color: var(--color-white);
}

.footer__partner {
    margin-bottom: 12px;
}

.footer__swiss-logo {
    width: 100%;
    height: auto;
    opacity: 0.9;
}

.footer__partner-text {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    transition: color var(--transition);
}

.footer__legal a:hover {
    color: var(--color-white);
}

.footer__copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

.footer__alpio img {
    opacity: 0.6;
    filter: brightness(0) invert(1);
    transition: opacity var(--transition);
}

.footer__alpio img:hover {
    opacity: 1;
}

/* --- Page-specific --- */
.page-header {
    padding: 140px 0 48px;
    background: var(--color-bg-gray);
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--color-text-light);
    margin-top: 8px;
}

.page-content {
    padding: 64px 0 96px;
}

.page-content .container {
    max-width: 760px;
}

.page-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
}

.page-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

.page-content p {
    margin-bottom: 16px;
    color: var(--color-text-light);
    line-height: 1.75;
}

.page-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-content ul li {
    list-style: disc;
    color: var(--color-text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

.page-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 520px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color var(--transition);
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-message {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    display: none;
}

.form-message--success {
    background: var(--color-secondary-light);
    color: #1a7a4a;
    display: block;
}

.form-message--error {
    background: #fef2f2;
    color: #b91c1c;
    display: block;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }

    .nav__links.active {
        display: flex;
    }

    .nav__toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .hero__visual {
        order: -1;
    }

    .hero__title {
        font-size: 34px;
    }

    .hero__subtitle {
        max-width: 100%;
    }

    .hero__actions {
        justify-content: center;
        align-items: center;
    }

    .hero__actions img {
        display: block;
        margin: 0 auto;
    }

    .hero__trust {
        justify-content: center;
    }

    .hero__inner {
        gap: 16px;
    }

    .hero__visual {
        margin-top: -60px;
        margin-bottom: -35px;
    }

    #klariCanvas {
        width: 100%;
        height: 250px;
        margin: -40px auto -35px;
    }

    .section {
        padding: 72px 0;
    }

    .section__title {
        font-size: 28px;
    }

    .problems-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 400px;
    }

    .steps::before,
    .steps::after {
        display: none;
    }

    .privacy-content {
        grid-template-columns: 1fr;
    }

    .privacy-visual {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer__swiss-logo {
        max-width: 200px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .section--cta h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero__title {
        font-size: 28px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__trust {
        flex-wrap: wrap;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer__top {
        grid-template-columns: 1fr;
    }

    .footer__swiss-logo {
        max-width: 160px;
    }

    .btn--large {
        padding: 14px 28px;
        font-size: 16px;
    }

    .pricing-card {
        padding: 28px;
    }
}

/* The hidden attribute must win over component display rules (flex, grid),
   so sections and menu entries can be switched off in the HTML. */
[hidden] {
    display: none !important;
}

/* Honeypot field of the contact form (Web3Forms botcheck): never shown to people */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
