/* ====================================
   SightSnap — Styleguide v01 (2026-04)
   ==================================== */

:root {
    /* Farbwelt (lt. Styleguide) */
    --color-primary: #00275e;       /* Dunkelblau, Primärfarbe */
    --color-secondary: #00b8e8;     /* Mittelblau */
    --color-accent: #7ff5ff;        /* Hellcyan, Akzent */
    --color-bg: #daf2ff;            /* Hintergrund Hellblau */
    --color-white: #ffffff;
    --color-text: #00275e;
    --color-text-muted: rgba(0, 39, 94, 0.7);

    /* Typografie — Hubot Sans */
    --font-display: 'Hubot Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Hubot Sans', system-ui, -apple-system, sans-serif;

    /* Sizing — Verhältnis 5:3 (Headline:Fließtext) */
    --fs-hero: clamp(2.5rem, 6vw, 4.5rem);
    --fs-h1: clamp(2rem, 4.5vw, 3.25rem);
    --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
    --fs-h3: 1.25rem;
    --fs-body: clamp(1rem, 1.5vw, 1.125rem);
    --fs-small: 0.875rem;

    /* Layout */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2.5rem);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ====================================
   Hubot Sans (Google Fonts)
   ==================================== */
@import url('https://fonts.googleapis.com/css2?family=Hubot+Sans:ital,wght@0,200..900;1,200..900&display=swap');

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    min-height: 100vh;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ====================================
   Utilities
   ==================================== */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ====================================
   Header
   ==================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    background: rgba(218, 242, 255, 0.85);
    border-bottom: 1px solid rgba(0, 39, 94, 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    color: var(--color-primary);
}

.site-header__logo img,
.site-header__logo svg {
    height: 32px;
    width: auto;
}

.site-header__nav {
    display: flex;
    gap: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.site-header__nav a {
    transition: opacity 0.2s var(--ease);
}

.site-header__nav a:hover { opacity: 0.6; }

@media (max-width: 700px) {
    .site-header__nav { display: none; }
}

/* ====================================
   Hero
   ==================================== */
.hero {
    background: var(--color-accent);
    padding: clamp(4rem, 10vw, 8rem) 0 clamp(5rem, 12vw, 10rem);
    position: relative;
    overflow: hidden;
}

.hero::before {
    /* Subtiles Pattern aus Markern */
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 39, 94, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: var(--color-accent);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero__badge::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-hero);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: var(--fs-body);
    font-weight: 400;
    max-width: 28rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .hero__subtitle { margin-inline: auto; }
}

.hero__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 900px) {
    .hero__cta-row { justify-content: center; }
}

.hero__phone {
    position: relative;
    display: flex;
    justify-content: center;
}

/* iPhone Frame Mockup */
.phone-frame {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 19.5;
    background: var(--color-primary);
    border-radius: 44px;
    padding: 12px;
    box-shadow:
        0 30px 60px -20px rgba(0, 39, 94, 0.4),
        0 18px 36px -18px rgba(0, 39, 94, 0.3);
    position: relative;
    transition: transform 0.6s var(--ease);
}

.phone-frame:hover {
    transform: translateY(-8px) rotate(-1deg);
}

.phone-frame__screen {
    width: 100%; height: 100%;
    background: var(--color-accent);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-frame__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.phone-frame--screenshot .phone-frame__screen {
    background: #00275e; /* Falls Screenshot lädt, ist es eh überdeckt */
}

.phone-frame__caption {
    margin-top: 1rem;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-accent);
    letter-spacing: 0.02em;
}

.phone-frame__notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 28px;
    background: var(--color-primary);
    border-radius: 999px;
    z-index: 2;
}

/* ====================================
   Buttons
   ==================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
    line-height: 1;
}

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

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(0, 39, 94, 0.4);
}

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

.btn--ghost:hover {
    background: var(--color-primary);
    color: var(--color-accent);
}

.btn--store {
    background: var(--color-primary);
    color: var(--color-accent);
    padding: 0.875rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    line-height: 1.1;
    border-radius: 14px;
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.btn--store small {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.85;
}

.btn--store strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.btn--store::after {
    content: 'Coming Soon';
    position: absolute;
    top: -8px; right: -8px;
    background: var(--color-secondary);
    color: var(--color-primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

/* ====================================
   Sections
   ==================================== */
section { padding-block: clamp(4rem, 9vw, 7rem); }

.section-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-h1);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    max-width: 30ch;
}

.section-subtitle {
    color: var(--color-text-muted);
    max-width: 60ch;
    margin-bottom: 3.5rem;
}

/* ====================================
   Features
   ==================================== */
.features {
    background: var(--color-white);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    transition: all 0.35s var(--ease);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-secondary);
    background: var(--color-white);
    box-shadow: 0 20px 40px -20px rgba(0, 39, 94, 0.2);
}

.feature-card__icon {
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    background: var(--color-primary);
    color: var(--color-accent);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}

.feature-card__icon svg {
    width: 28px; height: 28px;
}

.feature-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-h3);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-card__desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* ====================================
   How it works
   ==================================== */
.how {
    background: var(--color-bg);
}

.how__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    counter-reset: step;
}

.how-step {
    position: relative;
    padding-top: 3.5rem;
    counter-increment: step;
}

.how-step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 0; left: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--color-secondary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.how-step h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.how-step p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ====================================
   Screenshots Showcase
   ==================================== */
.showcase {
    background: var(--color-primary);
    color: var(--color-accent);
    overflow: hidden;
}

.showcase .section-eyebrow { color: var(--color-accent); }
.showcase .section-title { color: var(--color-white); }
.showcase .section-subtitle { color: rgba(255, 255, 255, 0.7); }

.showcase__grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-block: 1rem 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
}

.showcase__grid::-webkit-scrollbar { display: none; }

.showcase .phone-frame {
    flex-shrink: 0;
    scroll-snap-align: center;
    width: 240px;
}

.showcase figure.phone-frame {
    /* figure-Element braucht auto-height für caption */
    height: auto;
}

/* ====================================
   FAQ
   ==================================== */
.faq {
    background: var(--color-white);
}

.faq__list {
    max-width: 800px;
    margin-inline: auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 39, 94, 0.12);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.5rem 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.2s var(--ease);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-secondary);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover { color: var(--color-secondary); }

.faq-item__content {
    padding-bottom: 1.5rem;
    color: var(--color-text-muted);
    max-width: 65ch;
}

/* ====================================
   CTA
   ==================================== */
.cta-section {
    background: var(--color-accent);
    text-align: center;
}

.cta-section .section-title { margin-inline: auto; }
.cta-section__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ====================================
   Footer
   ==================================== */
.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding-block: 3rem 2rem;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 700px) {
    .site-footer__inner { grid-template-columns: 1fr; }
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--color-white);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.site-footer__brand svg,
.site-footer__brand img {
    height: 28px;
    width: auto;
}

.site-footer__claim {
    font-size: 0.9rem;
    max-width: 28ch;
}

.site-footer__col h4 {
    color: var(--color-white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.site-footer__col ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.site-footer__col a {
    transition: color 0.2s var(--ease);
}

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

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

/* ====================================
   Subpages (Impressum, Datenschutz, AGB)
   ==================================== */
.legal-page {
    background: var(--color-white);
    min-height: calc(100vh - 200px);
    padding-block: 4rem 5rem;
}

.legal-page__container {
    max-width: 760px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.legal-page h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-h1);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 2.5rem;
}

.legal-page h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-h2);
    letter-spacing: -0.01em;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.legal-page h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.legal-page p,
.legal-page li {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(0, 39, 94, 0.85);
    margin-bottom: 1rem;
}

.legal-page ul, .legal-page ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page ul li, .legal-page ol li {
    list-style: disc;
    margin-bottom: 0.4rem;
}

.legal-page ol li { list-style: decimal; }

.legal-page a {
    color: var(--color-secondary);
    border-bottom: 1px solid currentColor;
    transition: opacity 0.2s var(--ease);
}

.legal-page a:hover { opacity: 0.7; }

.legal-page__last-updated {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 39, 94, 0.1);
}

/* ====================================
   GPS Highlight Section
   ==================================== */
.highlight {
    background: var(--color-primary);
    color: var(--color-accent);
    position: relative;
    overflow: hidden;
}

.highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(127, 245, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 184, 232, 0.12) 0%, transparent 45%);
    pointer-events: none;
}

.highlight__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 700px) {
    .highlight__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.highlight__icon {
    width: clamp(80px, 12vw, 120px);
    height: clamp(80px, 12vw, 120px);
    color: var(--color-accent);
    flex-shrink: 0;
    background: rgba(127, 245, 255, 0.1);
    border: 2px solid rgba(127, 245, 255, 0.3);
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    animation: pulseGlow 3s ease-in-out infinite;
}

@media (max-width: 700px) {
    .highlight__icon { margin-inline: auto; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(127, 245, 255, 0.4); }
    50% { box-shadow: 0 0 0 16px rgba(127, 245, 255, 0); }
}

.highlight__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-h1);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-block: 1rem 1.25rem;
}

.highlight__text {
    font-size: var(--fs-body);
    color: rgba(255, 255, 255, 0.8);
    max-width: 60ch;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .highlight__text { margin-inline: auto; }
}

.highlight .section-eyebrow {
    color: var(--color-accent);
}

/* ====================================
   Animations on scroll (lightweight)
   ==================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    }
    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   Cookie-Banner
   ==================================== */
.cookie-banner {
    position: fixed;
    bottom: 1rem; left: 1rem; right: 1rem;
    max-width: 560px;
    margin-inline: auto;
    background: var(--color-white);
    border: 1px solid rgba(0, 39, 94, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 30px 60px -20px rgba(0, 39, 94, 0.4);
    z-index: 100;
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
}
.cookie-banner__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}
.cookie-banner__text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.cookie-banner__text a { color: var(--color-secondary); border-bottom: 1px solid currentColor; }
.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.cookie-banner__actions .btn { flex: 1; min-width: 120px; }
