/* colors_and_type.css */
/* ============================================================
   Lokalportal · "Sunset" Design System
   colors_and_type.css — color + typography foundations
   ------------------------------------------------------------
   The single source of truth for tokens. Load this first, then
   components.css. Fonts come from Google Fonts (see README).

     <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
     <link rel="stylesheet" href="colors_and_type.css">
   ============================================================ */

:root {
  /* ── Sunset palette (the three houses) ────────────────── */
  --orange-light:    #FFC371;  /* left / small house  · tints */
  --orange-primary:  #FF7A1A;  /* centre / big house  · brand */
  --orange-deep:     #C8410B;  /* right / small house · accents on tint */
  --orange-soft:     #FFE8D1;  /* tinted backgrounds, focus rings */
  --orange-50:       #FFF4E8;  /* faintest wash */

  /* ── Neutrals (warm-grey, never pure cool grey) ───────── */
  --ink:         #0A0A0A;  /* near-black — wordmark, text */
  --ink-soft:    #2A2624;  /* secondary text on light */
  --muted:       #6B6660;  /* captions, meta */
  --muted-light: #A19B92;  /* placeholders, disabled */
  --border:      #E6DFD2;  /* hairlines on cream/white */
  --border-soft: #F1ECDF;  /* faint dividers */
  --cream:       #F6F3EE;  /* default page background */
  --cream-deep:  #EFE9DC;  /* alternating section bg */
  --white:       #FFFFFF;

  /* ── Semantic foreground / background ─────────────────── */
  --fg1: var(--ink);        /* primary text */
  --fg2: var(--ink-soft);   /* secondary text */
  --fg3: var(--muted);      /* tertiary / meta */
  --fg4: var(--muted-light);/* faint / disabled */
  --bg1: var(--cream);      /* page */
  --bg2: var(--white);      /* surface / card */
  --bg3: var(--cream-deep); /* sunk section */

  --color-bg:        var(--cream);
  --color-surface:   var(--white);
  --color-fg:        var(--ink);
  --color-fg-soft:   var(--ink-soft);
  --color-fg-muted:  var(--muted);
  --color-accent:    var(--orange-primary);
  --color-accent-fg: var(--white);
  --color-border:    var(--border);

  /* ── Status (warm, characterful — tuned to the Sunset family) ─ */
  --success: #2FB179;  /* Frischgrün — confident, herby */
  --warning: #F5A623;  /* Bernstein — amber, sits beside orange-light */
  --danger:  #F0492E;  /* Koralle — hot coral, echoes orange-deep */
  --info:    #1C9AA8;  /* Petrol — warm teal, the one cool accent */
  /* soft tints for status backgrounds */
  --success-soft: #E4F6EC;
  --warning-soft: #FDF0D7;
  --danger-soft:  #FDE7E2;
  --info-soft:    #DEF3F5;

  /* ── Type families ────────────────────────────────────── */
  --font-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ── Type scale (px) ──────────────────────────────────── */
  --text-xs:      12px;
  --text-sm:      14px;
  --text-base:    16px;
  --text-lg:      18px;
  --text-xl:      22px;
  --text-2xl:     28px;
  --text-3xl:     36px;
  --text-4xl:     48px;
  --text-5xl:     64px;
  --text-display: 88px;

  /* ── Weights — the system lives at 400 / 500 ──────────── */
  --weight-regular:  400;
  --weight-medium:   500;  /* headings, buttons, wordmark */
  --weight-semibold: 600;
  --weight-bold:     700;

  /* ── Line heights ─────────────────────────────────────── */
  --leading-tight: 1.1;
  --leading-snug:  1.25;
  --leading-base:  1.5;
  --leading-loose: 1.7;

  /* ── Letter spacing ───────────────────────────────────── */
  --tracking-display: -2px;
  --tracking-tight:   -1px;
  --tracking-normal:  0;
  --tracking-eyebrow: 1.5px;  /* mono uppercase eyebrows */

  /* ── Spacing (4px base) ───────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* ── Radii ────────────────────────────────────────────── */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* ── Shadows (warm-tinted, soft) ──────────────────────── */
  --shadow-sm: 0 1px 2px rgba(10,10,10,.05);
  --shadow-md: 0 4px 14px rgba(10,10,10,.06);
  --shadow-lg: 0 16px 40px rgba(10,10,10,.10);
  --shadow-xl: 0 32px 80px rgba(10,10,10,.14);

  /* ── Containers ───────────────────────────────────────── */
  --container-sm:  640px;
  --container-md:  860px;
  --container-lg: 1100px;
  --container-xl: 1320px;

  /* ── Motion ───────────────────────────────────────────── */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: .15s;
  --dur-base: .2s;
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
   Semantic type — apply the scale via class OR via these
   element defaults. Headings are Medium (500), never bold.
   ============================================================ */
.display { font-size: var(--text-display); font-weight: 500; line-height: var(--leading-tight); letter-spacing: -2px; }
.h1 { font-size: var(--text-5xl); font-weight: 500; line-height: 1.05; letter-spacing: -1.5px; }
.h2 { font-size: var(--text-4xl); font-weight: 500; line-height: var(--leading-tight); letter-spacing: -1px; }
.h3 { font-size: var(--text-3xl); font-weight: 500; line-height: var(--leading-snug); letter-spacing: -0.5px; }
.h4 { font-size: var(--text-2xl); font-weight: 500; line-height: var(--leading-snug); letter-spacing: -0.3px; }
.h5 { font-size: var(--text-xl);  font-weight: 500; line-height: var(--leading-snug); letter-spacing: -0.2px; }

.lead { font-size: var(--text-xl); line-height: var(--leading-snug); color: var(--color-fg-soft); }
.body { font-size: var(--text-base); line-height: var(--leading-base); }
.small { font-size: var(--text-sm); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-fg-muted);
  font-weight: 400;
}

.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }
.text-muted { color: var(--color-fg-muted); }
.text-accent { color: var(--color-accent); }


/* components.css */
/* ============================================================
   Lokalportal · "Sunset" Design System
   components.css — buttons, cards, badges, forms, surfaces
   ------------------------------------------------------------
   Load AFTER colors_and_type.css. All values reference tokens.
   ============================================================ */

/* ── Buttons ──────────────────────────────────────────────
   Pill-ish radius (10px), Medium weight, 1px transparent border
   so primary/secondary share a footprint. Hover on primary
   lightens + lifts 1px; secondary inverts to ink. */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: inherit; font-weight: 500; font-size: var(--text-base);
  line-height: 1; padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease),
              transform var(--dur-fast) var(--ease), border-color var(--dur-base) var(--ease);
}
.btn-primary   { background: var(--orange-primary); color: white; }
.btn-primary:hover   { background: #FF8C3F; transform: translateY(-1px); }
.btn-primary:active  { transform: translateY(0); }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: white; }
.btn-ghost     { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(10,10,10,0.04); }
.btn-inverse   { background: var(--white); color: var(--ink); }
.btn-inverse:hover { background: var(--cream); }

.btn-sm { padding: 10px 16px; font-size: var(--text-sm); }
.btn-lg { padding: 18px 32px; font-size: var(--text-lg); }

/* ── Cards ────────────────────────────────────────────────
   White surface, 1px warm border, 16px radius, no shadow at
   rest. Shadow + lift is a hover affordance only. */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.card-flat   { background: transparent; border-color: var(--border-soft); }
.card-tinted { background: var(--orange-50); border-color: transparent; }
.card-dark   { background: var(--ink); color: white; border-color: transparent; }
.card-dark .text-muted { color: rgba(255,255,255,0.65); }
.card-hover  { transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Badges & Chips ───────────────────────────────────────
   Badge = status pill (soft orange on deep-orange text).
   Chip  = interactive filter; active state inverts to ink. */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.3px;
}
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-primary); display: inline-block; }
.badge-neutral { background: rgba(10,10,10,0.06); color: var(--ink); }
.badge-dark    { background: var(--ink); color: white; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
}
.chip:hover  { border-color: var(--ink); }
.chip-active { background: var(--ink); color: white; border-color: var(--ink); }

/* ── Forms ────────────────────────────────────────────────
   Focus ring = 4px soft-orange halo + primary border. */
.input {
  font-family: inherit; font-size: var(--text-base);
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.input::placeholder { color: var(--muted-light); }
.input:focus { border-color: var(--orange-primary); box-shadow: 0 0 0 4px var(--orange-soft); }

/* ── Layout helpers ───────────────────────────────────────── */
.container    { max-width: var(--container-lg); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 24px; }
.container-md { max-width: var(--container-md); margin: 0 auto; padding: 0 24px; }
.container-xl { max-width: var(--container-xl); margin: 0 auto; padding: 0 24px; }

.stack-1 > * + * { margin-top: var(--space-1); }
.stack-2 > * + * { margin-top: var(--space-2); }
.stack-3 > * + * { margin-top: var(--space-3); }
.stack-4 > * + * { margin-top: var(--space-4); }
.stack-5 > * + * { margin-top: var(--space-5); }
.stack-6 > * + * { margin-top: var(--space-6); }
.stack-7 > * + * { margin-top: var(--space-7); }

/* ── Brand lockup ─────────────────────────────────────────
   Mark + "Lokalportal" wordmark, baseline-centred. */
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; }
.brand-lockup img.mark { height: 36px; width: auto; }
.brand-lockup .wordmark { font-weight: 500; font-size: 22px; letter-spacing: -0.4px; color: var(--ink); }

/* Faint repeating mark watermark on a section */
.brand-pattern { position: relative; overflow: hidden; }
.brand-pattern::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('assets/mark-sunset.png');
  background-repeat: repeat; background-size: 240px;
  opacity: 0.04; pointer-events: none;
}

/* ── Surfaces ─────────────────────────────────────────────
   Two background colours max per layout: cream + one accent. */
.surface-cream  { background: var(--cream); color: var(--ink); }
.surface-white  { background: var(--white); color: var(--ink); }
.surface-deep   { background: var(--cream-deep); color: var(--ink); }
.surface-orange { background: var(--orange-primary); color: white; }
.surface-dark   { background: var(--ink); color: white; }
.surface-dark .text-muted, .surface-orange .text-muted { color: rgba(255,255,255,0.72); }
.surface-dark .card, .surface-orange .card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: white; }


/* inline (index.html) */
.container { max-width: 1100px; }
  html { scroll-behavior: smooth; }
  html, body { overflow-x: hidden; }
  img { max-width: 100%; }
  .grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-split > *, .page-grid > * { min-width: 0; }
  .card { overflow-wrap: break-word; }

  /* ── Hero: Text und Grafik strikt getrennt (Grid) ───────── */
  .hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 560px) 1fr; align-items: end; gap: 40px; padding-top: clamp(44px, 5.5vw, 68px); padding-bottom: clamp(108px, 11vw, 172px); }
  .hero-copy .lead { max-width: 520px; }
  .hero-kicker { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 7px 14px 7px 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--ink); box-shadow: 0 2px 6px rgba(10,10,10,.05); }
  .hero-trust { margin-top: 30px; display: flex; gap: 22px; flex-wrap: nowrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: .4px; color: var(--muted); }
  .hero-trust > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
  .trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
  .hero-sunzone { position: relative; }
  .hero-sun { position: absolute; z-index: 1; right: 4%; bottom: clamp(44px, 7vw, 104px); width: min(340px, 36vw); aspect-ratio: 1; pointer-events: none; }
  @media (prefers-reduced-motion: no-preference) {
    .hero-sun { animation: sun-breathe 7s ease-in-out infinite; transform-origin: 50% 60%; }
    /* äußere Aura flackert leicht schneller für den Flimmer-Effekt */
    .hero-sun > div:first-child { animation: sun-glow 3.4s ease-in-out infinite; }
    .hero-sun > div:nth-child(2) { animation: sun-glow 2.6s ease-in-out infinite reverse; }
  }
  @keyframes sun-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.035); }
  }
  @keyframes sun-glow {
    0%, 100% { opacity: var(--sun-glow-lo, .6); }
    35% { opacity: var(--sun-glow-hi, .9); }
    62% { opacity: var(--sun-glow-mid, .72); }
  }

  /* ── Responsive grid columns (base = desktop) ───────────── */
  .grid-3      { grid-template-columns: repeat(3, 1fr); }
  .grid-4      { grid-template-columns: repeat(4, 1fr); }
  .grid-split  { grid-template-columns: 1fr 1.05fr; }
  .partner-grid{ grid-template-columns: 300px 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .cta-box     { grid-template-columns: 1.2fr 1fr; padding: 64px 56px; }
  .hdr-mobile a { text-decoration: none; }
  @media (min-width: 901px) { .hdr-mobile { display: none !important; } }

  @media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-sunzone { display: none; }
    .hero-sun { display: none; }
  }

  /* ── Tablet ─────────────────────────────────────────────── */
  @media (max-width: 1080px) {
    .showcase-corner { display: none; }
  }
  @media (max-width: 900px) {
    .grid-3       { grid-template-columns: 1fr 1fr; }
    .grid-split   { grid-template-columns: 1fr; }
    .partner-grid { grid-template-columns: 1fr; }
    .cta-box      { grid-template-columns: 1fr; }
    .footer-grid  { grid-template-columns: 1fr 1fr; }
    .hdr-nav      { gap: 18px !important; }
    .nl-box       { grid-template-columns: 1fr !important; gap: 28px !important; }
  }

  /* ── Phone ──────────────────────────────────────────────── */
  @media (max-width: 600px) {
    .grid-3      { grid-template-columns: 1fr; }
    .grid-4      { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-box     { padding: 36px 24px !important; border-radius: 24px !important; }
    .hdr-bar     { flex-wrap: wrap; gap: 10px 16px !important; padding: 11px 16px !important; }
    .hdr-nav     { order: 3; width: 100%; gap: 16px !important; flex-wrap: wrap; }
    .kpick-header{ min-width: 0 !important; padding: 9px 12px !important; }
    .nl-box      { padding: 32px 24px !important; }
    .footer-cta  { flex-direction: column; align-items: flex-start; gap: 22px !important; }
    .btn-lg      { width: 100%; justify-content: center; }
    .kpick-hero  { min-width: 0 !important; width: 100% !important; }
    #top         { min-height: 520px !important; }
    .visit-combo { display: block !important; width: 100%; }
    .visit-combo .vc-row { width: 100%; }
    .visit-combo .vc-row a { flex: 1 1 auto; white-space: normal !important; }

    /* typography scales down */
    .h1 { font-size: 36px !important; letter-spacing: -1px !important; }
    .h2 { font-size: 28px !important; letter-spacing: -.5px !important; }
    .lead { font-size: 17px !important; }
    .quote-text { font-size: 23px !important; }

    /* compress section rhythm */
    .sec { padding-top: 56px !important; padding-bottom: 56px !important; }

    /* Hero: einspaltig, Sonne aus, Text bleibt über der Silhouette */
    .hero-grid { grid-template-columns: 1fr !important; padding-bottom: clamp(120px, 30vw, 180px) !important; }
    .hero-trust { flex-wrap: wrap !important; gap: 12px 20px !important; }
    .trust-strip { grid-template-columns: 1fr 1fr !important; gap: 16px 0 !important; }
    .trust-strip-item { border-left: none !important; padding: 6px 16px !important; }
    .hero-sunzone { display: none !important; }
    .hero-sun { display: none !important; }
  }

  @media (max-width: 760px) {
    .actors-card { display: none !important; }
    .actors-mobile { display: flex !important; }
  }

  @media (max-width: 400px) {
    .hdr-bar .wordmark { display: none !important; }
  }

