/* rocketEM Landing — design tokens + component styles taken from the app
   (resources/css/app.css, resources/js/colors.js, admin-one components) */

:root {
    /* Primary color — identical to the app */
    --color-primary-h: 212;
    --color-primary-s: 100%;
    --color-primary-l: 52%;
    --primary: hsl(var(--color-primary-h), var(--color-primary-s), var(--color-primary-l));
    --primary-hover: hsl(var(--color-primary-h), var(--color-primary-s), calc(var(--color-primary-l) - 10%));
    --primary-light: hsl(var(--color-primary-h), calc(var(--color-primary-s) - 20%), 95%);
    --primary-ring: hsla(var(--color-primary-h), var(--color-primary-s), var(--color-primary-l), 0.3);

    /* App palette (Tailwind tones used by colors.js / stat icons) */
    --slate-900: #1d2430; /* Brand-Dunkel RGB 29/36/48 */
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-300: #6ee7b7;
    --emerald-100: #d1fae5;
    --purple-600: #9333ea;
    --purple-100: #f3e8ff;
    --amber-600: #d97706;
    --amber-100: #fef3c7;
    --sky-600: #0284c7;
    --sky-100: #e0f2fe;
    --rose-600: #e11d48;
    --rose-100: #ffe4e6;
    --blue-100: #dbeafe;
    --pink-600: #db2777;
    --green-600: #16a34a;
    --green-100: #dcfce7;
    --orange-600: #ea580c;
    --orange-100: #ffedd5;
    --indigo-600: #4f46e5;
    --indigo-100: #e0e7ff;
    --lime-600: #65a30d;
    --lime-100: #ecfccb;

    /* Logo gradient stops (rocketem-cloud-animated.svg) */
    --grad-violet: #9A7FD5;
    --grad-pink: #D580C5;
    --grad-orange: #F58020;
    --grad-amber: #F7C948;
    --brand-gradient: linear-gradient(92deg, var(--grad-violet), var(--grad-pink) 35%, var(--grad-orange) 70%, var(--grad-amber));

    --foreground: hsl(222, 47%, 11%);
    --muted: hsl(215, 16%, 47%);
    --border: hsl(214, 32%, 91%);
    --surface: #ffffff;
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-pop: 0 12px 40px rgba(15, 23, 42, 0.14);
    --max-w: 80rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--foreground);
    font-size: 1.1875rem; /* 19px Fliesstext */
    /* App content background: white + panel pattern (app.css .content-bg) */
    background-color: #fff;
    background-image: url('/assets/images/panel_bg.png');
    background-repeat: repeat;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header: dark floating bar like the app sidebar ---------- */
.site-header {
    position: sticky; top: 0.75rem; z-index: 50;
    padding: 0 1.25rem;
}
/* App-like frosted strip above the floating header: content scrolling
   underneath the top gap gets blurred instead of showing sharply */
.header-inner { position: relative; }
.header-inner::before {
    content: '';
    position: absolute; top: -0.75rem; left: 0; right: 0; height: 0.75rem;
    border-radius: var(--radius) var(--radius) 0 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}
.header-inner {
    display: flex; align-items: center; gap: 1.75rem; height: 4rem;
    max-width: var(--max-w); margin: 0 auto;
    background: var(--slate-900);
    border-radius: var(--radius);
    box-shadow: var(--shadow-pop);
    padding: 0 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: #fff; }
.brand img { width: 2rem; height: 2rem; }
.brand-name { font-size: 1.125rem; }
.brand-name .light { font-weight: 500; }
.brand-name .bold { font-weight: 700; }

.main-nav { display: flex; gap: 1.375rem; margin-left: auto; }
.main-nav a { color: var(--slate-300); text-decoration: none; font-size: 0.9375rem; transition: color 0.15s; }
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; text-shadow: 0 0 0.4px currentColor; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-switch { display: flex; align-items: center; gap: 0.125rem; border: 1px solid var(--slate-700); border-radius: 999px; padding: 0.125rem; }
.lang-switch a {
    padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.75rem;
    text-decoration: none; color: var(--slate-300); text-transform: uppercase;
    transition: background-color 0.15s, color 0.15s;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { background: var(--grad-violet); color: #fff; }

/* ---------- Buttons: app system (colors.js) — outline fills on hover ---------- */
/* BaseButton.vue: inline-flex justify-center items-center whitespace-nowrap
   focus:ring transition-colors duration-150 border rounded py-2 px-3 (+label px-2),
   normal font weight; roundedFull variant = rounded-full px-6 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    white-space: nowrap;
    padding: 0.5rem 1.25rem; border-radius: 0.25rem;
    font-size: 1rem; font-weight: 400; text-decoration: none;
    border: 1px solid transparent; cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
}
.btn:focus { outline: none; }
.btn-pill { border-radius: 999px; padding: 0.5rem 1.5rem; }
.btn-lg { padding: 0.625rem 1.75rem; font-size: 1.0625rem; }

/* solid primary: dark like the header/sidebar (landing accent choice) */
.btn-primary { background: var(--slate-900); color: #fff; border-color: var(--slate-900); }
.btn-primary:hover { background: var(--slate-700); border-color: var(--slate-700); }
.btn-primary:focus { box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.25); }

/* CTA — app effect .btn-primary-hover-animated (app.css), permanently active:
   white button with rotating conic-gradient border in the cloud-logo colors */
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.btn-cta {
    position: relative; z-index: 0;
    background: transparent; color: #1d2430;
    border: 2px solid transparent;
    --border-angle: 0deg;
}
.btn-cta::before {
    content: ''; position: absolute; inset: -2px;
    background: conic-gradient(
        from var(--border-angle),
        #4BBDC8, #5AADE5, #7EC882, #C8D94A, #F7C948, #F58020, #D580C5, #9A7FD5, #4BBDC8
    );
    border-radius: inherit; z-index: -2;
    animation: rotate-border 2s linear infinite;
    transition: opacity 0.2s ease;
}
.btn-cta::after {
    content: ''; position: absolute; inset: 0;
    background: #fff; border-radius: inherit; z-index: -1;
    transition: opacity 0.2s ease;
}
/* hover: solid app blue, gradient ring disappears */
.btn-cta:hover { color: #fff; background: var(--primary); }
.btn-cta:hover::before { opacity: 0; }
.btn-cta:hover::after { opacity: 0; }
.btn-cta i { font-size: 1.2em; }
@keyframes rotate-border {
    to { --border-angle: 360deg; }
}

/* outline info — border+text colored, hover fills (colors.js outlineHover) */
.btn-outline-primary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-outline-primary:focus { box-shadow: 0 0 0 3px var(--primary-ring); }

/* violet accent — filled by default, empties on hover (inverse of app outline) */
.btn-outline-violet { background: var(--grad-violet); color: #fff; border-color: var(--grad-violet); }
.btn-outline-violet:hover { background: transparent; color: #1d2430; }
.btn-outline-violet:focus { box-shadow: 0 0 0 3px rgba(154, 127, 213, 0.35); }

/* outline success */
.btn-outline-success { background: transparent; color: var(--emerald-600); border-color: var(--emerald-600); }
.btn-outline-success:hover { background: var(--emerald-600); color: #fff; border-color: var(--emerald-600); }
.btn-outline-success:focus { box-shadow: 0 0 0 3px var(--emerald-300); }

/* outline light — for the dark header (Login) */
.btn-outline-light { background: transparent; color: #fff; border-color: var(--slate-500); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--slate-300); }
.btn-outline-light:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }

.nav-mobile-extra { display: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
    display: block; width: 1.375rem; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 3.5rem; text-align: center; }
.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    line-height: 1.12; font-weight: 800; letter-spacing: -0.03em;
    max-width: 56rem; margin: 0 auto 1.25rem;
}
.hero h1 em {
    font-style: normal;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.rotator { display: inline-block; white-space: nowrap; transition: opacity 0.25s, transform 0.25s; }
.rotator.swap { opacity: 0; transform: translateY(0.4em); }
.hero .sub {
    font-size: clamp(1.25rem, 2vw, 1.375rem); color: var(--muted);
    max-width: 44rem; margin: 0 auto 2rem;
}
.hero-ctas { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-shot { max-width: 70rem; margin: 0 auto; }
.hero-shot img {
    width: 100%; height: auto; border-radius: var(--radius);
    border: 1px solid var(--border); background: #fff;
    box-shadow: var(--shadow-shot);
}

/* ---------- Reference logos (shared design with rocketem.io) ---------- */
/* 3.5rem top compensates #e-mail-marketing's reduced 1rem bottom padding (fotone.css)
   so the gap above the card matches rocketem.io's 4.5rem */
.refs { padding: 3.5rem 0 4.5rem; }
.refs-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-card);
    padding: 2.75rem 2rem 3rem;
}
/* Heading reuses .quotes-h3 (fotone.css) for the same size/weight as the quotes title */
.refs .quotes-h3 { text-align: center; margin-bottom: 0.5rem; }
.refs-sub { text-align: center; font-size: 1.125rem; color: var(--muted); margin-bottom: 1.75rem; }
.refs-row { display: flex; flex-wrap: wrap; gap: 2rem 2.75rem; justify-content: center; align-items: center; }
.ref-logo { display: inline-flex; align-items: center; justify-content: center; }
.ref-logo img { max-height: 3.5rem; max-width: 11rem; width: auto; height: auto; display: block; }

/* Mobile: fixed 2-column grid, an odd last logo centered across both columns */
@media (max-width: 640px) {
    .refs-card { padding: 2rem 1.25rem; }
    .refs-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; justify-items: center; }
    .ref-logo:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .ref-logo img { max-height: 2.5rem; max-width: 100%; }
}

/* ---------- Sections (content floats as cards on the app pattern) ---------- */
.section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 54rem; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(2.375rem, 4.5vw, 3.5rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.section-head h2 em {
    font-style: normal;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-head p { color: var(--muted); font-size: 1.375rem; }

/* Benefits grid — colored pastel icons like the app stat cards */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.benefit {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow-card);
    transition: transform 0.15s, box-shadow 0.15s;
}
.benefit:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.benefit .icon {
    width: 2.75rem; height: 2.75rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.benefit .icon i { font-size: 1.5rem; }
.icon-emerald { background: var(--emerald-100); color: var(--emerald-600); }
.icon-blue { background: var(--blue-100); color: var(--primary); }
.icon-pink { background: var(--rose-100); color: #db2777; }
.icon-violet { background: var(--purple-100); color: var(--purple-600); }
.icon-sky { background: var(--sky-100); color: var(--sky-600); }
.icon-rose { background: var(--rose-100); color: var(--rose-600); }

/* Bare glyph colors (no chip) — rocketEM app topic palette, one class per
   Themenbereich. Used by the fotone.net step icons and the extras grid. */
.glyph-green { color: var(--green-600); }
.glyph-pink { color: var(--pink-600); }
.glyph-violet { color: var(--purple-600); }
.glyph-orange { color: var(--orange-600); }
.glyph-indigo { color: var(--indigo-600); }
.glyph-lime { color: var(--lime-600); }
.glyph-amber { color: var(--amber-600); }
.glyph-emerald { color: var(--emerald-600); }
.glyph-sky { color: var(--sky-600); }
.benefit h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.375rem; }
.benefit p { color: var(--muted); font-size: 1.1875rem; }

/* Feature rows — check bullets in section accent colors */
.feature-row {
    display: grid; grid-template-columns: 4.5fr 7.5fr; gap: 4.5rem;
    align-items: center; padding: 2.5rem 0;
}
.feature-row.flip { grid-template-columns: 7.5fr 4.5fr; }
.feature-row .text h3 { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.875rem; }
.feature-row .text p { color: var(--muted); margin-bottom: 1rem; }
.feature-row .text ul { list-style: none; }
.feature-row .text li { padding-left: 1.75rem; position: relative; margin-bottom: 0.5rem; color: var(--foreground); font-size: 1.1875rem; }
.feature-row .text li::before {
    content: ''; position: absolute; left: 0; top: 0.3rem;
    width: 1.125rem; height: 1.125rem; border-radius: 50%;
    background-color: var(--blue-100);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%230b84fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 0.75rem; background-position: center; background-repeat: no-repeat;
}
.feature-row:nth-of-type(2) .text li::before {
    background-color: var(--emerald-100);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.feature-row:nth-of-type(3) .text li::before {
    background-color: var(--purple-100);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%239333ea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.feature-row .media img {
    border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: var(--shadow-shot); width: 100%; height: auto; background: #fff;
}
.feature-row.flip .media { order: -1; }

/* Extras grid */
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.extra {
    display: flex; gap: 0.875rem; align-items: flex-start;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.125rem 1.25rem; box-shadow: var(--shadow-card);
}
/* color per function via glyph-* classes (app topic palette) */
.extra > i { font-size: 1.375rem; margin-top: 0.125rem; }
.extra h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.125rem; }
.extra p { font-size: 0.8125rem; color: var(--muted); line-height: 1.45; }

/* Custom solutions band (dark highlight) */
.custom-band {
    background: var(--slate-900); border-radius: var(--radius);
    padding: 3rem; display: grid; grid-template-columns: 6fr 5fr; gap: 3rem;
    align-items: center; box-shadow: var(--shadow-pop);
}
.custom-intro h2 { color: #fff; font-size: clamp(1.875rem, 3.5vw, 2.625rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; }
.custom-intro h2 em {
    font-style: normal;
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.custom-intro p { color: var(--slate-300); margin-bottom: 1.75rem; }
.custom-examples { display: flex; flex-direction: column; gap: 1rem; }
.custom-examples-title {
    font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.25rem;
    color: #fff;
}
.custom-examples-title .grad {
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.custom-ex {
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius); padding: 1.5rem 1.75rem;
}
.custom-ex h3 { color: #fff; font-size: 1.125rem; font-weight: 700; margin-bottom: 0.375rem; }
.custom-ex p { color: var(--slate-300); font-size: 1.0625rem; line-height: 1.5; }

/* Testimonials */
.quote-slider { max-width: 50rem; margin: 0 auto; }
.quote-viewport { overflow: hidden; transition: height 0.45s ease; }
.quote-track { display: flex; align-items: flex-start; transition: transform 0.45s ease; }
.quote-track .quote { flex: 0 0 100%; visibility: hidden; transition: visibility 0s linear 0.5s; }
.quote-track .quote.active { visibility: visible; transition-delay: 0s; }
.quote-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.quote-arrow {
    width: 2.5rem; height: 2.5rem; border-radius: 50%; cursor: pointer;
    background: #fff; border: 1px solid var(--border); color: var(--slate-700);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.125rem;
    transition: border-color 0.15s, color 0.15s;
}
.quote-arrow:hover { border-color: var(--grad-violet); color: var(--grad-violet); }
.quote-dots { display: flex; gap: 0.5rem; }
.quote-dots button {
    width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer; padding: 0;
    border: 0.6875rem solid transparent; background: var(--border);
    background-clip: padding-box; transition: background 0.15s;
}
/* background-color longhand, NOT the shorthand — the shorthand resets
   background-clip to border-box and the dot fills the whole 2rem button.
   0.5rem border = 16px visible dot vs 10px inactive. */
.quote-dots button.active { background-color: var(--grad-violet); border-width: 0.5rem; }
.quote {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2.25rem 2.25rem 2rem; box-shadow: var(--shadow-card);
    display: flex; flex-direction: column;
}
.quote .quote-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 1rem;
}
.quote .quote-mark {
    font-size: 2.75rem; line-height: 1;
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quote blockquote { font-size: 1.0625rem; font-weight: 500; line-height: 1.65; margin-bottom: 1.25rem; flex: 1; }
.quote blockquote p { margin: 0 0 0.65em; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote blockquote p:first-child::before { content: '\201E'; }
.quote blockquote p:last-child::after { content: '\201C'; }
/* Testimonial-Clamp: einheitliche Hoehe bis zum Ausklappen (JS setzt .clamp) */
.quote blockquote.clamp { position: relative; flex: none; max-height: 10.5rem; overflow: hidden; }
.quote blockquote.clamp::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3.25rem;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none;
}
.quote blockquote.expanded { max-height: none; }
.quote-more {
    align-self: flex-start; margin: 0 0 0.9rem; padding: 0.4rem 0;
    background: none; border: 0; cursor: pointer;
    font: inherit; font-weight: 600; color: var(--grad-violet);
}
.quote-more:hover { text-decoration: underline; }
.quote .who { display: flex; align-items: center; gap: 0.875rem; }
.quote .who-logo-link { display: inline-flex; align-items: center; }
.quote .who-logo-link img { max-height: 2.75rem; max-width: 11rem; width: auto; height: auto; }
.quote .who-text { display: flex; flex-direction: column; line-height: 1.35; }
.quote .who-text strong { font-size: 1.0625rem; color: var(--foreground); }
.quote .who-text span { font-size: 0.9375rem; color: var(--muted); }
.quote .who-text a { font-size: 0.9375rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.quote .who-text a:hover { color: var(--primary); }
.quote.placeholder { border-style: dashed; }
.quote.placeholder .who-logo { border-style: dashed; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem; display: flex; flex-direction: column; box-shadow: var(--shadow-card);
    transition: transform 0.15s, box-shadow 0.15s;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.plan.featured { border-color: var(--grad-violet); border-width: 2px; position: relative; box-shadow: 0 8px 30px rgba(154, 127, 213, 0.3); }
.plan .flag {
    position: absolute; top: -0.8125rem; left: 50%; transform: translateX(-50%);
    background: var(--brand-gradient); color: #fff; font-size: 0.75rem; font-weight: 700;
    padding: 0.1875rem 0.875rem; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 0.9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.75rem; }
.plan .price { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }
.plan .price small { font-size: 0.9375rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; margin: 1.25rem 0 1.75rem; flex: 1; }
.plan li { padding-left: 1.75rem; position: relative; margin-bottom: 0.5rem; font-size: 0.9375rem; }
.plan li::before {
    content: ''; position: absolute; left: 0; top: 0.3rem;
    width: 1.125rem; height: 1.125rem; border-radius: 50%;
    background-color: var(--emerald-100);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 0.75rem; background-position: center; background-repeat: no-repeat;
}
.pricing-note { text-align: center; color: var(--muted); font-size: 0.8125rem; margin-top: 1.75rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 3.5rem; align-items: start; }
.contact-aside h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.875rem; }
.contact-aside p { color: var(--muted); margin-bottom: 1.5rem; }
.contact-points { list-style: none; }
.contact-points li { padding-left: 1.75rem; position: relative; margin-bottom: 0.625rem; font-size: 1.1875rem; }
.contact-points li::before {
    content: ''; position: absolute; left: 0; top: 0.3rem;
    width: 1.125rem; height: 1.125rem; border-radius: 50%;
    background-color: var(--emerald-100);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 0.75rem; background-position: center; background-repeat: no-repeat;
}

.contact-form {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.875rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
    /* min 16px: below that, iOS Safari auto-zooms on focus */
    font-family: inherit; font-size: 1rem; color: var(--foreground);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 0.625rem 0.875rem; background: #fff; width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring);
}
.form-field textarea { min-height: 7.5rem; resize: vertical; }
.form-footer { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0.875rem; }
.form-footer .hint { font-size: 0.8125rem; color: var(--muted); }
.form-footer .hint a { color: var(--primary); }

/* honeypot — visually removed, still submittable by naive bots */
.hp-wrap { position: absolute; left: -6000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius-sm); padding: 0.875rem 1.125rem; font-size: 0.9375rem; margin-bottom: 1.25rem; }
.alert.ok { background: var(--emerald-100); color: var(--emerald-700); border: 1px solid var(--emerald-300); }
.alert.err { background: var(--rose-100); color: var(--rose-600); border: 1px solid #fecdd3; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.875rem; color: var(--muted); }
.footer-inner a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.footer-inner a:hover { color: var(--foreground); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.caret { font-size: 0.9em; position: relative; top: -0.45em; display: inline-block; transform: scaleX(1.5); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .benefits { grid-template-columns: repeat(2, 1fr); }
    .extras { grid-template-columns: repeat(2, 1fr); }
    .plans { grid-template-columns: 1fr; max-width: 26rem; margin: 0 auto; }
    .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .contact-aside, .contact-form { min-width: 0; }
    .custom-band { grid-template-columns: 1fr; padding: 2rem; gap: 2rem; }
    .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 1.5rem; }
    .feature-row.flip .media { order: 0; }
}
/* Schmales Desktop-Band (bis Burger): Abstaende verdichten, damit laengere
   Labels (z. B. FR "Fonctionnalités") die Kopfzeile nicht sprengen. */
@media (max-width: 1200px) {
    .header-inner { gap: 1rem; }
    .main-nav { gap: 1rem; }
    .main-nav a { font-size: 0.875rem; }
}
@media (max-width: 1080px) {
    .site-header { top: 0.5rem; padding: 0 0.75rem; }
    .header-inner { gap: 0.75rem; padding: 0 1rem; }
    /* bar keeps only brand + burger; everything else moves into the dropdown */
    .header-actions .lang-switch,
    .header-actions .btn-outline-light,
    .header-actions .btn-primary,
    .header-actions .btn-cta { display: none; }
    .main-nav {
        display: none; position: absolute; top: 4.5rem; left: 0.75rem; right: 0.75rem;
        background: var(--slate-900); border-radius: var(--radius);
        flex-direction: column; align-items: flex-start;
        padding: 1rem 1.25rem; gap: 0.875rem;
        box-shadow: var(--shadow-pop);
    }
    .main-nav.open { display: flex; }
    .main-nav a { font-size: 1.0625rem; }
    .nav-mobile-extra {
        display: flex; flex-direction: column; align-items: stretch; gap: 1rem;
        padding-top: 1rem; border-top: 1px solid var(--slate-700);
        margin-top: 0.375rem; width: 100%;
    }
    .nav-mobile-extra .btn-cta { justify-content: center; }
    .nav-mobile-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
    .nav-mobile-extra .btn { font-size: 0.9375rem; }
    /* .main-nav a wuerde die Button-Textfarben ueberschreiben (Spezifitaet) */
    .main-nav a.btn-cta { color: #1d2430; }
    .main-nav a.btn-cta:hover { color: #fff; }
    .main-nav a.btn-outline-light { color: #fff; }
    .header-actions { margin-left: auto; }
    .nav-toggle { display: block; }
    .benefits { grid-template-columns: 1fr; }
    .extras { grid-template-columns: 1fr; }
    .hero { padding-top: 3rem; }
}


/* ---------- Lightbox ---------- */
.feature-row .media img, .hero-shot img { cursor: zoom-in; }
.lightbox {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(15, 23, 42, 0.88);
    display: none; align-items: center; justify-content: center;
    padding: 2rem; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 95vw; max-height: 92vh; width: auto; height: auto;
    border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    background: #fff;
}
.lightbox-close {
    position: absolute; top: 1.25rem; right: 1.5rem;
    background: none; border: none; color: #fff; font-size: 2.25rem;
    line-height: 1; cursor: pointer; opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

/* Tall portrait shots (automation flow): show complete but smaller, lightbox has the detail */
.feature-row .media.media-tall img {
    max-height: 40rem;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* Anchor targets: clear the sticky header when jumping via nav */
section[id], #kontakt, #vorteile, #features, #preise {
    scroll-margin-top: 2.5rem;
}

/* Single wide testimonial: full statement, readable line length */


/* Browser frame around feature shots: natural image ratio, no hero sizing */


:root { --shadow-shot: 0 24px 55px -16px rgba(29, 36, 48, 0.30), 0 4px 14px rgba(29, 36, 48, 0.08); }

.cf-turnstile { margin-bottom: 1rem; }

/* Generic gradient word (headings) */
.grad {
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Narrow screens: the longest rotator words must still fit their own line */
@media (max-width: 480px) {
    /* Exactly two headline lines ("E‑Mail‑Marketing," / "das begeistert und
       wirkt.") — sized so the longer one fits; the "Für <phrase>." line is
       smaller, as one non-wrapping unit so swaps cannot move anything */
    .hero h1 { font-size: clamp(1.375rem, 6.9vw, 2.0625rem); }
    .hero h1 .hl1, .hero h1 .hl2 { display: block; white-space: nowrap; }
    .hero h1 br { display: none; } /* blocks break the lines; the br would add an empty one */
    .hero h1 .hero-for { display: block; font-size: 0.82em; white-space: nowrap; margin-top: 0.2em; }
    /* Heading hierarchy: h1 (6.9vw) must stay the largest on phones */
    .section-head h2 { font-size: clamp(1.3125rem, 6.6vw, 1.9375rem); }
    .custom-intro h2 { font-size: clamp(1.3125rem, 6.6vw, 1.9375rem); }
    .custom-examples-title { font-size: clamp(1.0625rem, 5.9vw, 1.375rem); }
    .custom-band { padding: 1.5rem; }
    .contact-aside h2 { font-size: clamp(1.3125rem, 6.6vw, 1.9375rem); }
    .feature-row .text h3 { font-size: clamp(1.125rem, 5.9vw, 1.375rem); }
}



/* Caption under SVG mockups (EN/FR): honest "illustration" hint */
.shot-caption {
    font-size: 0.8125rem; color: var(--muted); text-align: center;
    margin-top: 0.625rem;
}

/* FR: hero phrase is long — own non-wrapping line at all widths keeps the h1 stable */
html[lang="fr"] .hero h1 .hero-for { display: block; font-size: 0.72em; white-space: nowrap; margin-top: 0.2em; }

.lang-switch .lang-globe { color: #9aa5b4; font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; margin-left: 0.375rem; margin-right: 0.125rem; }

/* Scroll-to-top */
.to-top {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
    width: 2.75rem; height: 2.75rem; border-radius: 50%; border: none; cursor: pointer;
    background: #1d2430; color: #fff; font-size: 1.125rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(29, 36, 48, 0.35);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background-color 0.15s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
@media (hover: hover) {
    .to-top:hover { background: var(--primary); }
}
.to-top:active { background: var(--primary); }

@media (max-width: 355px) {
    .cf-turnstile { transform: scale(0.88); transform-origin: left center; }
}

.contact-form { scroll-margin-top: 5rem; }

/* Agency link: brand gradient + external hint */
.main-nav a.nav-agency { display: inline-flex; align-items: center; gap: 0.3rem; }
.main-nav a.nav-agency .ph { font-size: 0.85em; color: var(--grad-amber); }
.main-nav a.nav-agency:hover .grad { filter: brightness(1.15); }

/* Mobile: form inputs stack in one column (two columns break below ~640px) */
@media (max-width: 640px) {
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .form-field, .form-footer { min-width: 0; }
}

/* Turnstile iframe is a fixed 300px box — cap it at the iframe itself,
   otherwise its min-content widens the grid column on narrow phones */
.cf-turnstile { max-width: 100%; overflow: hidden; }
.cf-turnstile iframe { max-width: 100%; }
