/* ============================================
 * Kempkes Immobilien — Base Stylesheet
 * Light Theme, Warm Swiss Design
 * ============================================ */

:root {
  /* Backgrounds */
  --color-bg:              #FAFAF8;
  --color-bg-alt:          #F3EEE4;
  --color-bg-card:         #FFFFFF;
  --color-bg-dark:         #1A1A2E;

  /* Text */
  --color-text:            #1A1A2E;
  --color-text-secondary:  #5A5A72;
  --color-text-muted:      #8A8A9A;
  --color-text-on-dark:    #F0F0F5;
  --color-text-on-dark-secondary: #A0A0B5;

  /* Accent — Stahlblau */
  --color-accent:          #4A7C9B;
  --color-accent-hover:    #3A6A87;
  --color-accent-light:    #E8F0F5;

  /* Warm — Sand */
  --color-warm:            #C4A87C;
  --color-warm-light:      #F5EFE6;

  /* Kupfer — dritte Akzentfarbe */
  --color-copper:          #B5704F;
  --color-copper-hover:    #9E6044;
  --color-copper-light:    #F5EBE4;

  /* Borders & Shadows */
  --color-border:          #E5E5E0;
  --color-border-light:    #F0F0EB;

  /* Skyline Banner */
  --color-banner-sky-top:    #0C1220;
  --color-banner-sky-mid:    #152238;
  --color-banner-horizon:    #1E3050;
  --color-banner-glow:       #3A2820;
  --color-banner-skyline-back: #1A2845;
  --color-banner-skyline-front: #0E1A2E;

  /* Typography */
  --font-display: 'Fraunces', serif;
  --font-body: 'Outfit', sans-serif;
  --font-hand: 'Caveat', cursive;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.25rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5.5rem;

  /* Border Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-med: 400ms;
  --duration-slow: 600ms;
  --duration-xslow: 800ms;

  /* Shadows — subtler */
  --shadow-card:       0 1px 2px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.03);
  --shadow-card-hover: 0 1px 3px rgba(0,0,0,0.05), 0 8px 20px rgba(0,0,0,0.04);
  --shadow-elevated:   0 2px 8px rgba(0,0,0,0.05), 0 12px 36px rgba(0,0,0,0.03);
  --shadow-nav:        0 1px 0 rgba(0,0,0,0.04);
  --shadow-nav-scroll: 0 1px 8px rgba(0,0,0,0.05);

  /* Layout */
  --max-width: 1200px;
  --content-padding: 1.25rem;
}

@media (min-width: 768px) {
  :root { --content-padding: 2.5rem; }
}

@media (min-width: 1280px) {
  :root { --content-padding: 4rem; }
}

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

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  /* Mikro-Typo: echte Ligaturen, contextual alternates, old-style numerals */
  font-feature-settings: "liga" 1, "clig" 1, "calt" 1, "onum" 1;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover {
  color: var(--color-accent-hover);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, .text-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--color-text);
  /* Keine Witwen - Browser balanciert Zeilenumbrueche */
  text-wrap: balance;
}

h2, .text-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--color-text);
  text-wrap: balance;
}

h3, .text-h3 {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--color-text);
  text-wrap: balance;
}

.text-body-lg {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.text-caption {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}


/* --- Editorial typography utilities --- */

/* Handwritten style */
.text-hand {
  font-family: var(--font-hand);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Emphasized italic (for emotional words) */
.text-emph {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* Drop cap — first letter */
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: 5em;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  margin: 0.12em 0.08em 0 -0.04em;
  color: var(--color-accent);
  font-style: italic;
}

/* Roman numeral / N° prefix */
.numero-prefix {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-right: 0.12em;
  font-size: 0.7em;
  vertical-align: 0.25em;
}

/* Caps-Label Utility (Tags, kleine Labels) - bewusst breitere Sperrung fuer Ruhe */
.text-caps {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
