/* ══════════════════════════════════════════════
   Koster AG Holzwelten — Gemeinsames Stylesheet
   ══════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --bg-deep: #141F12;
  --bg: #1A2816;
  --bg-card: #22321C;
  --bg-elevated: #2A3B22;
  --surface: #2B3D24;
  --cream: #F2EDE4;
  --cream-muted: rgba(242, 237, 228, 0.65);
  --cream-dim: rgba(242, 237, 228, 0.35);
  --cream-faint: rgba(242, 237, 228, 0.08);
  --white: #FEFCF8;
  --accent: #C4854C;
  --accent-light: #D4A06A;
  --accent-glow: rgba(196, 133, 76, 0.15);
  --green-subtle: #5A7A42;
  --light-bg: #F5F2EB;
  --light-bg-alt: #EDE9E0;
  --light-card: #FFFFFF;
  --light-text: #1A1F16;
  --light-text-muted: #5C6354;
  --light-border: rgba(26, 31, 22, 0.08);
  --light-accent: #9B6B3A;
  --font-display: 'Raleway', 'Optima', 'Humanist 777 BT', sans-serif;
  --font-body: 'Raleway', 'Optima', 'Humanist 777 BT', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg-deep);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 14px 0;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
}
header.scrolled {
  background: rgba(20, 31, 18, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--cream-faint);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-cubes { height: 38px; width: auto; transition: opacity 0.25s; }
.logo-text { font-family: var(--font-body); font-size: 0.92rem; font-weight: 400; color: var(--cream); letter-spacing: 0.02em; transition: opacity 0.25s; line-height: 1.3; }
.logo-text strong { font-weight: 700; }
.logo:hover .logo-cubes, .logo:hover .logo-text { opacity: 0.85; }
/* Logo stays same size on scroll — no jumping */

/* ── NAV ── */
nav { display: flex; gap: 28px; align-items: center; }
nav a { font-size: 0.8rem; font-weight: 500; color: var(--cream-muted); letter-spacing: 0.02em; transition: color 0.25s; position: relative; }
nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.3s var(--ease); }
nav a:hover { color: var(--cream); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--cream); }
nav a.active::after { width: 100%; }

.nav-cta { background: var(--accent); color: var(--bg-deep) !important; padding: 8px 20px; border-radius: 100px; font-weight: 600; letter-spacing: 0.04em; transition: background 0.25s, transform 0.25s; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-light); transform: translateY(-1px); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-dropdown-trigger svg { transition: transform 0.25s; }
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); background: var(--bg-card); border: 1px solid var(--cream-faint); border-radius: 8px; padding: 8px 0; min-width: 220px; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px); transition: opacity 0.25s, visibility 0.25s, transform 0.25s; box-shadow: 0 12px 32px rgba(0,0,0,0.4); z-index: 1000; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu a { display: block; padding: 10px 20px; font-size: 0.78rem; white-space: nowrap; color: var(--cream-muted); transition: background 0.2s, color 0.2s; }
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover { background: rgba(196, 133, 76, 0.1); color: var(--accent); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.menu-toggle span { width: 24px; height: 1.5px; background: var(--cream); transition: 0.3s; }

/* ── PAGE HERO (shared by ueber-uns, team, aktuelles) ── */
.page-hero {
  position: relative;
  padding: clamp(160px, 20vh, 220px) 0 clamp(80px, 10vh, 120px);
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg) 50%, var(--bg-elevated) 100%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 300; line-height: 1.1; color: var(--white); max-width: 700px; margin-bottom: 20px; }
.page-hero h1 em { font-style: italic; color: var(--accent-light); }
.page-hero-sub { font-size: clamp(0.95rem, 1.2vw, 1.08rem); color: var(--cream-muted); line-height: 1.7; max-width: 560px; }

/* ── SECTIONS ── */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-light { background: var(--light-bg); color: var(--light-text); }

.section-tag {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 20px;
}

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; padding: 14px 28px; border-radius: 100px; font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em; cursor: pointer; transition: all 0.3s var(--ease); border: none; }
.btn-accent { background: var(--accent); color: var(--bg-deep); }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(196,133,76,0.3); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid rgba(242,237,228,0.25); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(242,237,228,0.05); }

/* ── CTA BANNER ── */
.cta-banner { text-align: center; padding: clamp(72px, 10vw, 100px) 0; background: var(--bg); position: relative; }
.cta-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--accent), transparent); opacity: 0.2; }
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 300; color: var(--cream); margin-bottom: 12px; }
.cta-banner p { font-size: 1rem; color: var(--cream-muted); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--cream-faint); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--cream); margin-bottom: 8px; }
.footer-brand-desc { font-size: 0.82rem; color: var(--cream-dim); line-height: 1.6; }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.82rem; color: var(--cream-dim); margin-bottom: 10px; transition: color 0.25s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--cream-faint); font-size: 0.72rem; color: var(--cream-dim); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--cream-dim); transition: color 0.2s; }
.footer-legal a:hover { color: var(--cream); }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible, .reveal.vis { opacity: 1; transform: none; }

/* ── RESPONSIVE (shared) ── */
@media (max-width: 768px) {
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(20, 31, 18, 0.97); padding: 24px; gap: 16px; border-bottom: 1px solid var(--cream-faint); }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
