/* Gemeinsames Design der App-Landingpages (fundfach/, quiravel/).
   Basis: Farben und Formen von neulandwerkstatt.de.
   Jede Seite setzt vor diesem Stylesheet ihre App-Farbe: --accent, --on-accent, --link, --link-dark. */

@font-face {
    font-family: 'Werkstatt Sans';
    src: url('fonts/werkstatt-sans.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #0056b3;
    --dark-blue: #2c3e50;
    --brass: #c99c5b;
    --bg: #ffffff;
    --fg: #2d3436;
    --heading: #1a252f;
    --muted: #5b6472;
    --card: #ffffff;
    --card-line: #e6ebf2;
    --card-shadow: rgba(0, 86, 179, 0.1);
    --header-bg: rgba(255, 255, 255, 0.95);
    --line: #eeeeee;
    --alt-bg: #f5f7fb;
    --panel: var(--dark-blue);
    --font: 'Werkstatt Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #101319;
        --fg: #e8ecf2;
        --heading: #f4f6fa;
        --muted: #a8b0bd;
        --card: #1a1f29;
        --card-line: #2a303c;
        --card-shadow: rgba(0, 0, 0, 0.4);
        --header-bg: rgba(16, 19, 25, 0.95);
        --line: #2a303c;
        --alt-bg: #141821;
        --panel: #1a2530;
    }
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font);
    font-weight: 300;
    line-height: 1.8;
    color: var(--fg);
    background: var(--bg);
    padding-top: 78px;
}

a { color: var(--link); }
@media (prefers-color-scheme: dark) { a { color: var(--link-dark); } }

b, strong { font-weight: 700; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- Kopfzeile wie auf neulandwerkstatt.de --- */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 10;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 0.8rem 5%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.logo-wrapper { display: flex; flex-direction: column; text-decoration: none; }
.logo { font-size: 1.8rem; font-weight: 700; letter-spacing: -1px; line-height: 1.2; }
.logo .neuland { color: var(--primary); }
.logo .werkstatt { color: #888; }
@media (prefers-color-scheme: dark) { .logo .neuland { color: #6aa8ff; } }
.slogan { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

.site-header nav ul { list-style: none; display: flex; gap: 25px; }
.site-header nav a {
    position: relative; display: inline-block; padding: 8px 0;
    color: var(--fg); font-weight: 500; text-decoration: none;
}
.site-header nav a::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--brass));
    transition: width 0.3s ease;
}
.site-header nav a:hover::before, .site-header nav a:focus-visible::before { width: 100%; }

@media (max-width: 640px) {
    body { padding-top: 70px; }
    .slogan { display: none; }
    .site-header nav ul { gap: 14px; }
    .site-header nav a { font-size: 0.9rem; }
    .logo { font-size: 1.5rem; }
}

/* --- Überschriften --- */
h1, h2, h3 { font-weight: 700; color: var(--heading); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); letter-spacing: -2px; margin: 1.2rem 0 0.8rem; }
h1 span {
    display: inline-block; transform: rotate(-1deg);
    text-decoration: underline wavy var(--brass) 2px;
    text-underline-offset: 8px;
}
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--heading); }
p { margin-bottom: 1.2rem; font-size: 1.1rem; }

.badge {
    display: inline-block; padding: 8px 20px; border-radius: 30px;
    background: var(--dark-blue); color: #fff; transform: rotate(-1deg);
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
}

/* --- Hero --- */
.hero { padding: 3.5rem 0 3rem; text-align: center; background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--hero-glow, rgba(0, 86, 179, 0.12)), transparent 70%); }
.hero .wordmark { display: block; margin: 1.6rem auto 0; width: min(24rem, 86%); height: auto; }
.hero h1.visually { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero .icon { display: block; margin: 1.5rem auto 0; width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22); }
.tagline { max-width: 38rem; margin: 0 auto 1.8rem; font-size: 1.25rem; color: var(--muted); }
.buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.button {
    display: inline-block; padding: 14px 32px; border-radius: 50px;
    background: var(--accent); color: var(--on-accent);
    font-family: inherit; font-size: 1rem; font-weight: 500; text-decoration: none;
    box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
a.button:hover, a.button:focus-visible { transform: translateY(-2px) scale(1.03); }
.button.secondary { background: transparent; color: var(--fg); border: 2px solid var(--accent); box-shadow: none; }
/* TEMP: Platzhalter bis zur Veröffentlichung im Play Store */
.button.soon { background: transparent; color: var(--muted); border: 2px dashed var(--muted); box-shadow: none; cursor: default; }
.feature { display: block; width: 100%; max-width: 52rem; height: auto; margin: 2.5rem auto 0; border-radius: 16px; box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3); }

/* --- Abschnitte --- */
section { padding: 4.5rem 0; }
section.hero { padding: 3.5rem 0 3rem; }
section.alt { background: var(--alt-bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.card {
    position: relative; overflow: hidden; padding: 1.8rem;
    background: var(--card); border: 1px solid var(--card-line); border-radius: 12px;
    box-shadow: 0 15px 30px -10px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--brass));
    transform: translateX(-100%); transition: transform 0.4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 25px 40px -10px var(--card-shadow); }
.card:hover::before { transform: translateX(0); }
.card p { margin: 0; font-size: 1rem; color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; max-width: 56rem; margin: 0 auto; }
.shots img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.35); }

/* dunkles Feld wie .panel-dark der Hauptseite */
.panel-dark { background: var(--panel); color: #ecf0f1; }
.panel-dark h2 { color: #fff; }
.panel-dark p { color: #bdc3c7; }
.panel-dark a { color: #fff; }
.facts { list-style: none; max-width: 44rem; margin: 0 auto 2rem; display: grid; gap: 0.8rem; }
.facts li { padding-left: 2rem; position: relative; font-size: 1.05rem; color: #ecf0f1; }
.facts li::before { content: '✓'; position: absolute; left: 0; color: var(--brass); font-weight: 700; }
.panel-dark p.note { max-width: 44rem; margin: 0 auto; text-align: center; }

.english { text-align: center; }
.english p { max-width: 44rem; margin: 0 auto; color: var(--muted); }
.english h2 { margin-bottom: 1.5rem; }

/* --- Fußzeile wie auf neulandwerkstatt.de --- */
footer { background: var(--dark-blue); color: #ecf0f1; padding: 4rem 10% 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 3rem; max-width: 1100px; margin: 0 auto; }
footer .logo { color: #fff; font-size: 1.5rem; margin-bottom: 0.8rem; }
footer .logo .werkstatt { color: #888; }
footer p { font-size: 0.95rem; color: #f1f1f1; margin-bottom: 0.8rem; }
footer h4 { margin-bottom: 1rem; color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; }
footer ul { list-style: none; }
footer li { margin-bottom: 0.4rem; }
footer a { color: #ecf0f1; text-decoration: none; border-bottom: 1px dashed var(--brass); }
footer a:hover, footer a:focus-visible { color: #fff; border-bottom-style: solid; }
.footer-bottom { max-width: 1100px; margin: 3rem auto 0; padding-top: 1.8rem; border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: center; font-size: 0.8rem; color: #bdc3c7; }
.footer-bottom p { font-size: 0.8rem; color: #bdc3c7; margin: 0 0 0.4rem; }

a:focus-visible, .button:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* --- Ergänzungen: Ablauf, Gerätebilder, Hinweise --- */
.lead { max-width: 44rem; margin: -1.5rem auto 3rem; text-align: center; color: var(--muted); font-size: 1.15rem; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: step; position: relative; padding: 1.8rem 1.6rem 1.6rem; background: var(--card); border: 1px solid var(--card-line); border-radius: 12px; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; margin-bottom: 1rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { margin: 0; font-size: 1rem; color: var(--muted); }

.phones { display: flex; gap: 1.6rem; overflow-x: auto; padding: 0.5rem 1.2rem 1.4rem; scroll-snap-type: x proximity; justify-content: safe center; }
.phone { flex: 0 0 auto; width: 12rem; margin: 0; scroll-snap-align: center; text-align: center; }
.phone img { display: block; width: 100%; height: auto; border: 7px solid #15181e; border-radius: 28px; background: #15181e; box-shadow: 0 22px 36px -16px rgba(0, 0, 0, 0.45); }
.phone figcaption { margin-top: 0.9rem; font-size: 0.95rem; line-height: 1.4; color: var(--muted); }

.feature-wide { display: block; width: 100%; max-width: 52rem; height: auto; margin: 2.5rem auto 0; border-radius: 16px; box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3); }

.price { max-width: 44rem; margin: 0 auto; padding: 1.6rem 1.8rem; background: var(--card); border: 1px solid var(--card-line); border-left: 5px solid var(--accent); border-radius: 12px; }
.price h3 { margin-bottom: 0.4rem; }
.price p { margin: 0; font-size: 1rem; color: var(--muted); }

.fineprint { max-width: 44rem; margin: 1.6rem auto 0; font-size: 0.85rem; line-height: 1.6; color: var(--muted); text-align: center; }
.fineprint a { color: inherit; }
.panel-dark .fineprint { color: #bdc3c7; }
