/* =========================================================
   brand.css — Fernweh Deutschland Design System
   Palette: Rhine Forest Blue / Black Forest / Golden Field
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties ───────────────────────────── */
:root {
  /* Core Palette */
  --c-primary:        #1F3A45;
  --c-secondary:      #2E4A3E;
  --c-accent:         #C9A24A;
  --c-accent-hover:   #CFAC5C;
  --c-accent-2:       #8C3F3A;
  --c-bg:             #E1E8EA;
  --c-bg-mid:         #D2DBDE;
  --c-bg-dark:        #2B3436;
  --c-text:           #1E2324;
  --c-text-light:     #3A4A4C;
  --c-text-muted:     #6B7A7C;
  --c-white:          #FFFFFF;
  --c-border:         rgba(31,58,69,0.13);
  --c-border-light:   rgba(255,255,255,0.18);

  /* Gradients */
  --grad-hero:        linear-gradient(140deg, #1F3A45 0%, #2E4A3E 55%, #2B3436 100%);
  --grad-light:       linear-gradient(180deg, #E1E8EA 0%, #D2DBDE 100%);
  --grad-accent:      linear-gradient(135deg, #C9A24A 0%, #D9B96E 100%);
  --grad-accent-h:    linear-gradient(135deg, #CFAC5C 0%, #D9B96E 100%);
  --grad-nature:      linear-gradient(135deg, #2E4A3E 0%, #5F776B 100%);
  --grad-warm:        linear-gradient(135deg, #8C3F3A 0%, #A65750 100%);
  --grad-overlay:     rgba(31,58,69,0.42);
  --grad-overlay-d:   rgba(31,58,69,0.68);

  /* Typography */
  --font:             'Inter', 'IBM Plex Sans', -apple-system, sans-serif;
  --font-display:     'IBM Plex Sans', 'Inter', sans-serif;
  --font-mono:        'IBM Plex Mono', 'Courier New', monospace;

  /* Type Scale */
  --t-xs:   clamp(0.68rem, 1.4vw, 0.74rem);
  --t-sm:   clamp(0.8rem,  1.8vw, 0.875rem);
  --t-base: clamp(0.9rem,  2vw,   1rem);
  --t-md:   clamp(1rem,    2.2vw, 1.125rem);
  --t-lg:   clamp(1.1rem,  2.5vw, 1.25rem);
  --t-xl:   clamp(1.2rem,  3vw,   1.5rem);
  --t-2xl:  clamp(1.4rem,  3.5vw, 1.875rem);
  --t-3xl:  clamp(1.7rem,  4vw,   2.25rem);
  --t-4xl:  clamp(2rem,    5vw,   3rem);
  --t-5xl:  clamp(2.5rem,  6vw,   4rem);
  --t-hero: clamp(2.8rem,  7.5vw, 5.8rem);

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2rem;
  --sp-xl:  3rem;
  --sp-2xl: 4rem;
  --sp-3xl: 6rem;
  --sp-sec: clamp(4.5rem, 9vw, 7.5rem);

  /* Border Radius */
  --r-sm:   4px;
  --r-md:   10px;
  --r-lg:   18px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm:  0 1px 5px  rgba(31,58,69,0.09);
  --sh-md:  0 4px 18px rgba(31,58,69,0.13);
  --sh-lg:  0 8px 36px rgba(31,58,69,0.17);
  --sh-xl:  0 16px 52px rgba(31,58,69,0.21);
  --sh-acc: 0 4px 22px rgba(201,162,74,0.32);

  /* Transitions */
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --tr-f:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-b:   0.38s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-s:   0.65s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --cw:     1260px;
  --cw-n:   880px;
  --cw-w:   1440px;
  --hh:     78px;

  /* Z-index */
  --z1: 1; --z2: 10; --z3: 100; --z4: 200; --z5: 300;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.72;
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--c-text);
  letter-spacing: -0.022em;
}
h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-4xl); }
h3 { font-size: var(--t-2xl); }
h4 { font-size: var(--t-xl); }
h5 { font-size: var(--t-lg); }
h6 { font-size: var(--t-md); }

p { font-size: var(--t-base); line-height: 1.78; color: var(--c-text-light); }
a { color: inherit; text-decoration: none; transition: var(--tr-f); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Section Label System ────────────────────────────── */
.s-label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.s-label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: var(--c-accent);
  flex-shrink: 0;
}
.s-label--light { color: rgba(201,162,74,0.85); }
.s-label--light::before { background: rgba(201,162,74,0.85); }

.s-title {
  font-size: var(--t-4xl);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.026em;
  color: var(--c-primary);
  margin-bottom: 1.1rem;
}
.s-title--light { color: var(--c-white); }
.s-title--sm { font-size: var(--t-3xl); }

.s-sub {
  font-size: var(--t-md);
  color: var(--c-text-muted);
  line-height: 1.72;
  max-width: 54ch;
}
.s-sub--light { color: rgba(255,255,255,0.68); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 2.1rem;
  border-radius: var(--r-full);
  font-family: var(--font);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: var(--tr-b);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.btn svg { flex-shrink: 0; transition: transform var(--tr-f); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--grad-accent);
  color: var(--c-bg-dark);
  box-shadow: var(--sh-acc);
}
.btn--primary:hover {
  background: var(--grad-accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,162,74,0.42);
}
.btn--outline {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.58);
  transform: translateY(-2px);
}
.btn--dark {
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: var(--sh-md);
}
.btn--dark:hover {
  background: #162D38;
  transform: translateY(-2px);
  box-shadow: var(--sh-lg);
}
.btn--ghost {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-border);
}
.btn--ghost:hover {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}
.btn--sm { padding: 0.6rem 1.5rem; font-size: var(--t-xs); }
.btn--lg { padding: 1.05rem 2.6rem; font-size: var(--t-base); }

/* ── Form Elements ───────────────────────────────────── */
.f-group { display: flex; flex-direction: column; gap: 0.55rem; }
.f-label { font-size: var(--t-sm); font-weight: 500; color: var(--c-text); }
.f-label--light { color: rgba(255,255,255,0.82); }

.f-input, .f-textarea {
  width: 100%;
  padding: 0.88rem 1.3rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--t-base);
  color: var(--c-text);
  background: var(--c-white);
  transition: var(--tr-f);
  outline: none;
}
.f-input:focus, .f-textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(31,58,69,0.1);
}
.f-textarea { min-height: 145px; resize: vertical; line-height: 1.65; }
.f-input::placeholder, .f-textarea::placeholder { color: var(--c-text-muted); }

/* Dark form */
.f-input--d, .f-textarea--d {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: var(--c-white);
}
.f-input--d::placeholder, .f-textarea--d::placeholder { color: rgba(255,255,255,0.42); }
.f-input--d:focus, .f-textarea--d:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(201,162,74,0.16);
}

/* ── Trust Badge ─────────────────────────────────────── */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 1rem;
  border-radius: var(--r-full);
  background: rgba(201,162,74,0.13);
  border: 1px solid rgba(201,162,74,0.28);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--c-accent);
  letter-spacing: 0.07em;
}
.trust-badge svg { width: 13px; height: 13px; }

/* ── Tag ─────────────────────────────────────────────── */
.tag {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-white);
  background: var(--c-accent-2);
  padding: 0.22rem 0.7rem;
  border-radius: var(--r-sm);
  display: inline-block;
}

/* ── Animated Underline Link ─────────────────────────── */
.ul-link {
  position: relative;
  display: inline-block;
}
.ul-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c-accent);
  transition: width var(--tr-b);
}
.ul-link:hover::after { width: 100%; }
.ul-link--w::after { background: rgba(255,255,255,0.7); }

/* ── Scroll Reveal ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
}
.reveal.active { opacity: 1; transform: none; }

.reveal-l {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
}
.reveal-l.active { opacity: 1; transform: none; }

.reveal-r {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
}
.reveal-r.active { opacity: 1; transform: none; }

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.28s; }
.d4 { transition-delay: 0.38s; }
.d5 { transition-delay: 0.48s; }
.d6 { transition-delay: 0.58s; }

/* ── Divider ─────────────────────────────────────────── */
.div-line { width: 100%; height: 1px; background: var(--c-border); }
.div-acc { width: 44px; height: 2px; background: var(--grad-accent); border-radius: 2px; }

/* ── Image Overlay Card ──────────────────────────────── */
.img-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-s);
  display: block;
}
.img-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-overlay);
  pointer-events: none;
  transition: background var(--tr-b);
}
.img-card:hover img { transform: scale(1.05); }
.img-card:hover::after { background: rgba(31,58,69,0.35); }

/* ── Utility ─────────────────────────────────────────── */
.text-acc    { color: var(--c-accent); }
.text-white  { color: var(--c-white); }
.text-muted  { color: var(--c-text-muted); }
.text-center { text-align: center; }
.text-upper  { text-transform: uppercase; }
.fw-medium   { font-weight: 500; }
.fw-semi     { font-weight: 600; }
.fw-bold     { font-weight: 700; }
.font-mono   { font-family: var(--font-mono); }
