/* Greycliff CF – commercial webfont, served locally from public/fonts/ */
@font-face {
    font-family: "Greycliff CF";
    src: url("../fonts/GreycliffCF-ExtraLight.woff2") format('woff2'),
        url("../fonts/GreycliffCF-ExtraLight.woff") format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Greycliff CF";
    src: url("../fonts/GreycliffCF-Regular.woff2") format('woff2'),
        url("../fonts/GreycliffCF-Regular.woff") format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Greycliff CF";
    src: url("../fonts/GreycliffCF-Medium.woff2") format('woff2'),
        url("../fonts/GreycliffCF-Medium.woff") format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Greycliff CF";
    src: url("../fonts/GreycliffCF-DemiBold.woff2") format('woff2'),
        url("../fonts/GreycliffCF-DemiBold.woff") format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Greycliff CF";
    src: url("../fonts/GreycliffCF-Bold.woff2") format('woff2'),
        url("../fonts/GreycliffCF-Bold.woff") format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Landing/marketing theme with Light/Dark via CSS variables */
:root {
    /* Brand primary (highlight / primary buttons) */
    --color-primary: #7A8F84;

    /* Accent brown for heading decoration */
    --text-accent: #8c8072;

    /* Color tones for "Why" section */
    --highlight-tone-1: #8c8072;
    --highlight-tone-2: #9a9089;
    --highlight-tone-3: #a9a09e;
    --highlight-tone-4: #b0a89e;
    --highlight-tone-5: #b8b0ae;

    /* Light theme base colors (paper-like) */
    --bg: #FFFFFF;
    /* white tone requested */
    --bg-muted: #F5F1E8;
    --text: #161616;
    /* black tone requested */
    --text-muted: rgba(22, 22, 22, 0.65);

    /* Surfaces and borders should use requested gray */
    --surface: #F5F1E8;
    --surface-border: #FAF9F6;

    /* Section background tokens */
    --section-base-bg: #FFFFFF;
    --section-cream-bg: #F5F1E8;

    --ink: #161616;
}

.theme-dark {
    /* Dark variant: invert using provided tones */
    --bg: #161616;
    /* black tone */
    --bg-muted: #161616;
    --text: #F5F1E8;
    /* light paper tone */
    --text-muted: rgba(245, 241, 232, 0.85);
    --surface: rgba(245, 241, 232, 0.04);
    --surface-border: rgba(245, 241, 232, 0.08);
    --text-accent: #c3b7a8;
    --highlight-tone-1: #d0c5b8;
    --highlight-tone-2: #c9bdaf;
    --highlight-tone-3: #c2b6a8;
    --highlight-tone-4: #bbaf9f;
    --highlight-tone-5: #b4a896;

    /* Dark mode section hierarchy */
    --section-base-bg: #141414;
    --section-cream-bg: #1a1713;
}

.theme-light {
    --bg: #FFFFFF;
    --bg-muted: #FFFFFF;
    --text: #161616;
    --text-muted: rgba(22, 22, 22, 0.70);
    --surface: #D9D7D2;
    --surface-border: #D9D7D2;
}

/* Page background; clean white with warm tones */
.landing {
    color: var(--text);
    background-color: var(--bg);
    font-family: "Greycliff CF", "Helvetica Neue", "Arial", sans-serif;
}

.landing-page-body {
    background-color: var(--bg);
    color: var(--text);
}

.landing-page-body nav[data-controller="theme"] {
    background-color: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid var(--surface-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.theme-dark .landing-page-body nav[data-controller="theme"] {
    background-color: color-mix(in srgb, #000 78%, transparent);
    border-bottom-color: rgba(245, 241, 232, 0.08);
}

/* Headline display font utility – ExtraLight weight with accent colour */
.font-display {
    font-family: "Greycliff CF", "Helvetica Neue", "Arial", sans-serif;
    letter-spacing: 0.01em;
    font-weight: 200;
    color: var(--text-accent);
}

/* Accent text utility for warm brown tone in headings */
.text-accent {
    color: var(--text-accent);
}

/* Brand name styling in body text */
.brand-name {
    color: var(--text-accent);
    font-weight: 500;
}

.scribble-underline {
    position: relative;
    display: inline-block;
}

.scribble-underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.2em;
    height: 8px;
    background: radial-gradient(closest-side, rgba(34, 197, 194, 0.8), rgba(34, 197, 194, 0.0)),
        linear-gradient(90deg, rgba(16, 185, 129, 0.4) 0%, rgba(45, 212, 191, 0.7) 60%, rgba(13, 148, 136, 0.9) 100%);
    filter: blur(0.3px);
    border-radius: 9999px;
    opacity: .85;
}

/* Card styling on dark */
.card-dark {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(2px);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--color-primary) 85%, black);
}

.btn-ghost {
    border: 2px solid color-mix(in srgb, var(--text) 80%, transparent);
    color: var(--text);
    background: transparent;
}

.btn-ghost:hover {
    background: color-mix(in srgb, var(--text) 8%, transparent);
}

/* Pastel brand highlight for active nav items */
.bg-pastel-brand {
    /* soft petrol tint against dark menu and light theme */
    background: color-mix(in srgb, var(--color-primary) 18%, white);
    color: var(--ink);
}

.theme-dark .bg-pastel-brand {
    background: color-mix(in srgb, var(--color-primary) 26%, black);
    color: white;
}

/* Strap Badge (teal rectangle) — used as background for icon/label badges */
.badge-strap {
    --badge-bg: var(--color-primary);
    --badge-border: color-mix(in srgb, var(--text) 15%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    /* slightly taller like screenshot */
    padding: 0 1.25rem;
    border-radius: 0.5rem;
    background: var(--badge-bg);
    color: #fff;
    /* icons/text on strap are white */
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid var(--badge-border);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

/* Small square variant when space is tight */
.badge-strap--sm {
    height: 2rem;
    padding: 0 0.75rem;
    border-radius: 0.4rem;
    font-weight: 700;
}

/* Ensure icons on strap are white via currentColor */
.badge-strap svg {
    color: inherit;
}

/* Mobile dropdown panel (hamburger menu) */
.dropdown-panel {
    /* 20% transparency + blur across themes */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Light theme keeps existing light look with 20% opacity */
.theme-light .dropdown-panel {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
}

/* Dark theme: darker base with 20% opacity to increase contrast */
.theme-dark .dropdown-panel {
    background: color-mix(in srgb, #0b0f13 80%, transparent);
}

/* Light-theme compatibility overrides for legacy Tailwind classes used in content */
/* Exception: Keep white text on elements with dark backgrounds (buttons, badges, status indicators, etc.) */
.theme-light .text-white:not([class*="bg-blue-"]):not([class*="bg-red-"]):not([class*="bg-orange-"]):not([class*="bg-green-"]):not([class*="bg-teal-"]):not([class*="bg-purple-"]):not([class*="bg-indigo-"]):not([class*="bg-gray-6"]):not([class*="bg-gray-7"]):not([class*="bg-gray-8"]):not([class*="bg-gray-9"]) {
    color: var(--text) !important;
}

.theme-light .hover\:text-white:hover:not(button):not(a):not([class*="bg-"]) {
    color: var(--text) !important;
}

.theme-light .text-white\/90 {
    color: var(--text) !important;
}

.theme-light .text-white\/80 {
    color: var(--text-muted) !important;
}

.theme-light .text-white\/70 {
    color: var(--text-muted) !important;
}

.theme-light .text-white\/60 {
    color: var(--text-muted) !important;
}

.theme-light .text-white\/40 {
    color: color-mix(in srgb, var(--text) 50%, transparent) !important;
}

.theme-light .text-white\/20 {
    color: color-mix(in srgb, var(--text) 40%, transparent) !important;
}

.theme-light .border-white\/10 {
    border-color: var(--surface-border) !important;
}

/* Theme-aware logos */
/* Logo display: reserve space and toggle visibility based on theme */
.logo-light {
    display: block;
    visibility: hidden;
    position: absolute;
}

.logo-dark {
    display: block;
    visibility: visible;
}

.theme-light .logo-light {
    display: block;
    visibility: visible;
    position: static;
}

.theme-light .logo-dark {
    display: block;
    visibility: hidden;
    position: absolute;
}

/* -------------------------------------------------- */
/* Form field styling (theme-aware)                   */
/* -------------------------------------------------- */
.form-field {
    background: color-mix(in srgb, var(--bg) 92%, var(--surface));
    border: 1px solid var(--surface-border);
    color: var(--text);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.theme-dark .form-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    color: var(--text);
}

.form-field::placeholder {
    color: color-mix(in srgb, var(--text) 55%, transparent);
}

.theme-dark .form-field::placeholder {
    color: color-mix(in srgb, var(--text) 40%, transparent);
}

.form-field:focus {
    outline: none;
}

/* -------------------------------------------------- */
/* Development hint panel (theme-aware)               */
/* -------------------------------------------------- */
.dev-hint {
    border: 1px solid color-mix(in srgb, #facc15 55%, transparent);
    /* amber 400 base */
    background: color-mix(in srgb, #facc15 14%, transparent);
    color: #facc15;
    border-radius: 0.75rem;
}

.theme-light .dev-hint {
    border-color: #d97706;
    /* amber 600 */
    background: #fef3c7;
    /* amber 100 */
    color: #92400e;
    /* amber 700 */
}

.dev-hint code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0 0.25rem;
    border-radius: 0.25rem;
}

.theme-light .dev-hint code {
    background: rgba(0, 0, 0, 0.08);
}

.theme-dark .logo-light {
    display: block;
    visibility: hidden;
    position: absolute;
}

.theme-dark .logo-dark {
    display: block;
    visibility: visible;
    position: static;
}

/* Ensure both theme logos share identical sizing and baseline behavior */
.logo-img {
    height: 2rem;
    /* matches h-8 */
    width: auto;
    display: block;
    /* avoid baseline/descender gaps */
    object-fit: contain;
}

.logo-wrap {
    display: grid;
    place-items: center;
    height: 2rem;
    line-height: 0;
    /* remove inline baseline artifacts */
}

/* -------------------------------------------------- */
/* Landing page specific styles                       */
/* -------------------------------------------------- */

/* Hero section – background image runs edge to edge */
.landing-hero {
    background-color: transparent;
}

/* Alternating sections with cream/beige background (Vorlage band shape 3.png) */
.landing-section-alt {
    background-color: var(--section-cream-bg);
    background-image: url("../images/landing/bg_band_cream.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.theme-dark .landing-section-alt {
    background-color: var(--section-cream-bg);
    background-image: none;
}

/* Team section */
.landing-section-team {
    background-color: var(--section-base-bg);
    overflow: visible;
}

.landing-team-visual {
    position: relative;
    aspect-ratio: 3 / 2;
    width: 100%;
}

.landing-team-visual-bg {
    position: absolute;
    top: 0;
    left: 28%;
    right: 0;
    bottom: 4rem;
    background-color: var(--section-cream-bg);
    border-radius: 0.75rem;
    z-index: 0;
}

.landing-team-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
    z-index: 10;
}

.team-text-box {
    background-color: transparent;
    text-align: center;
}

/* Cards (feature, audience and pricing sections) */
.landing-feature-card,
.landing-card {
    background: #FFFFFF;
    border: 1px solid var(--surface-border);
    transition: box-shadow 0.2s ease;
}

.landing-feature-card:hover,
.landing-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.theme-dark .landing-feature-card,
.theme-dark .landing-card {
    background: var(--surface);
}

/* Landing page link style (sage green with arrow) */
.landing-link {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.landing-link:hover {
    color: var(--color-primary);
}

/* Section with white background (Wie funktioniert) */
.landing-section-accent {
    background-color: var(--section-base-bg);
}

.landing-how-copy {
    max-width: 38rem;
}

.landing-how-copy p {
    max-width: 32rem;
}

.landing-how-list {
    margin-top: 2.5rem;
}

.landing-how-check {
    color: var(--text-accent);
    font-size: 2rem;
    line-height: 1;
    margin-top: -0.35rem;
    width: 1.75rem;
    text-align: center;
    flex-shrink: 0;
}

.landing-how-visual {
    position: relative;
    width: min(100%, 32rem);
    aspect-ratio: 4 / 5;
    margin-left: auto;
}

.landing-how-visual-bg {
    position: absolute;
    top: 0.25rem;
    left: 0;
    width: 80%;
    height: 88%;
    background-color: var(--section-cream-bg);
    border-radius: 0.75rem;
}

.landing-how-image {
    position: absolute;
    right: 0;
    top: 1.75rem;
    width: 86%;
    height: calc(100% - 1.75rem);
    object-fit: cover;
}

@media (max-width: 1023px) {
    .landing-how-copy {
        max-width: 100%;
    }

    .landing-how-copy p {
        max-width: 100%;
    }

    .landing-how-visual {
        width: min(100%, 26rem);
        aspect-ratio: 4 / 5;
        margin-top: 0.5rem;
    }

    .landing-how-visual-bg {
        width: 82%;
        height: 88%;
    }

    .landing-how-image {
        width: 88%;
        top: 1.35rem;
        height: calc(100% - 1.35rem);
    }
}

.landing-footer {
    background-color: var(--section-cream-bg);
}

.landing-footer h3 {
    background-color: transparent;
}

.landing-copyright-bar {
    background-color: color-mix(in srgb, var(--surface) 92%, #d9d7d2);
    color: var(--text-muted);
}

.theme-dark .landing-copyright-bar {
    background-color: color-mix(in srgb, var(--bg) 86%, white);
}

.landing section,
.landing footer {
    color: var(--text);
}

/* Newsletter input field */
.landing-newsletter-input {
    border: 1px solid var(--surface-border);
    background: var(--bg);
    color: var(--text);
    outline: none;
}

.landing-newsletter-input::placeholder {
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.landing-newsletter-input:focus {
    border-color: var(--color-primary);
}

/* Why section with centered layout and heading divider */
.landing-why-section {
    text-align: center;
}

.landing-why-section h2 {
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.landing-why-section h2::after {
    content: "";
    display: block;
    width: 13rem;
    max-width: 60%;
    height: 1px;
    margin: 1.25rem auto 0;
    background-color: color-mix(in srgb, var(--text-accent) 55%, white);
}

.landing-why-list {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.landing-why-item h3 {
    line-height: 1.25;
}

.landing-why-item p {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.landing-why-item:nth-child(1) h3 {
    color: var(--highlight-tone-1);
}

.landing-why-item:nth-child(2) h3 {
    color: var(--highlight-tone-2);
}

.landing-why-item:nth-child(3) h3 {
    color: var(--highlight-tone-3);
}

.landing-why-item:nth-child(4) h3 {
    color: var(--highlight-tone-4);
}

.landing-why-item:nth-child(5) h3 {
    color: var(--highlight-tone-5);
}