/* =====================================================================
   Kastner GmbH — Zentrales Stylesheet
   ===================================================================== */

/* ── FF Zwo Pro (Kastner Hausschrift) ─────────────────────────────── */
@font-face {
  font-family: 'FF Zwo Pro';
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/FFZwoPro-ExtraLight.woff2') format('woff2');
}
@font-face {
  font-family: 'FF Zwo Pro';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/FFZwoPro-SemiLight.woff2') format('woff2');
}
@font-face {
  font-family: 'FF Zwo Pro';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/FFZwoPro-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'FF Zwo Pro';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/FFZwoPro-Semibold.woff2') format('woff2');
}
@font-face {
  font-family: 'FF Zwo Pro';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/FFZwoPro-Bold.woff2') format('woff2');
}

/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'FF Zwo Pro', Arial, sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Brand Variables ───────────────────────────────────────────────── */
:root {
  --blue:       #006EF2;
  --dark-blue:  #003A80;
  --mid-blue:   #0057BF;
  --light-blue: #4997F4;
  --black:      #000000;
  --white:      #FFFFFF;
  --off-white:  #F7F7F7;
  --gray:       #666666;
  --light-gray: #CCCCCC;
  --nav-h:      72px;
}

/* ── Logo ──────────────────────────────────────────────────────────── */
.kastner-logo { display: inline-flex; flex-direction: column; gap: 0; }
.kastner-logo .logo-name {
  font-size: 22px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; line-height: 1; color: #000;
}
.kastner-logo .logo-name sup {
  font-size: 10px; font-weight: 400; letter-spacing: 1px;
  vertical-align: super; margin-left: 2px;
}
.kastner-logo .logo-lines {
  display: flex; flex-direction: column; gap: 3px; margin-top: 5px;
}
.kastner-logo .logo-lines span { display: block; height: 2px; background: var(--blue); }
.logo-white .logo-name { color: #fff; }
.logo-white .logo-lines span { background: #fff; }

/* ── Navigation ────────────────────────────────────────────────────── */
nav#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid #e8e8e8;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.nav-inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { flex-shrink: 0; }
.nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 8px 14px; font-size: 14px; font-weight: 600;
  color: #000; letter-spacing: .3px; transition: color .2s, background .2s;
}
.nav-links > li > a:hover,
.nav-links > li.active > a { color: #000; font-weight: 700; }
.nav-links .has-drop.open .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-links .has-drop { position: relative; }
.nav-links .has-drop > a::after {
  content: ''; position: absolute; left: 0; bottom: -8px; width: 100%; height: 8px;
}
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px; padding-top: 8px;
  background: transparent; border: none;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .2s, transform .2s;
}
.dropdown-inner {
  background: #fff; border: 1px solid #e8e8e8;
  box-shadow: 0 8px 32px rgba(0,0,0,.12); padding: 8px 0;
}
.dropdown a { display: block; padding: 10px 20px; font-size: 14px; color: #333; transition: background .15s; }
.dropdown a:hover { background: var(--off-white); color: #000; font-weight: 600; }
.dropdown .divider { height: 1px; background: #e8e8e8; margin: 4px 0; }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-lang a {
  font-size: 13px; font-weight: 600; padding: 5px 10px;
  border: 1.5px solid var(--light-gray); color: var(--gray); transition: border-color .2s, color .2s;
}
.nav-lang a:hover, .nav-lang a.active { border-color: #000; color: #000; }
.btn-nav {
  background: var(--blue); color: #fff !important; padding: 9px 20px;
  font-size: 14px; font-weight: 700; letter-spacing: .3px; transition: background .2s;
}
.btn-nav:hover { background: var(--dark-blue); }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; background: none; border: none;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #000; transition: all .3s; }
.mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 999; overflow-y: auto; padding: 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 14px 0; font-size: 18px; font-weight: 600;
  border-bottom: 1px solid #f0f0f0; color: #000;
}
.mobile-nav a:hover { color: #000; font-weight: 700; }
.mobile-nav .mobile-cta {
  margin-top: 24px; background: var(--blue); color: #fff;
  text-align: center; padding: 16px; font-size: 18px;
}
.mobile-nav .mobile-lang { margin-top: 16px; display: flex; gap: 12px; }
.mobile-nav .mobile-lang a {
  border: 1.5px solid var(--light-gray); padding: 8px 16px;
  font-size: 14px; font-weight: 600; color: var(--gray); text-align: center;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block; background: var(--blue); color: #fff;
  padding: 14px 32px; font-size: 16px; font-weight: 700;
  letter-spacing: .3px; transition: background .2s, transform .15s;
  border: 2px solid var(--blue);
}
.btn-primary:hover { background: var(--dark-blue); border-color: var(--dark-blue); }
.btn-outline {
  display: inline-block; border: 2px solid #000; color: #000;
  padding: 12px 30px; font-size: 16px; font-weight: 700;
  letter-spacing: .3px; transition: all .2s;
}
.btn-outline:hover { background: #000; color: #fff; }
.btn-white {
  display: inline-block; background: #fff; color: #000;
  padding: 14px 32px; font-size: 16px; font-weight: 700;
  letter-spacing: .3px; transition: all .2s; border: 2px solid #fff;
}
.btn-white:hover { background: transparent; color: #fff; }
.btn-outline-white {
  display: inline-block; border: 2px solid rgba(255,255,255,.7); color: #fff;
  padding: 12px 30px; font-size: 16px; font-weight: 700; transition: all .2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ── Footer ────────────────────────────────────────────────────────── */
footer { background: #000; color: rgba(255,255,255,.7); padding: 60px 40px 30px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.5); margin-top: 16px; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a,
.footer-col p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.8; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.4); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,.5); }
.footer-legal a:hover { color: #fff; }

/* ── Cookie Banner ─────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: #fff; border-top: 3px solid var(--blue);
  box-shadow: 0 -8px 40px rgba(0,0,0,.15); padding: 24px 40px;
}
.cookie-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 280px; }
.cookie-text h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.cookie-text p { font-size: 13px; color: var(--gray); }
.cookie-text a { color: #333; text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btn { padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer; border: 2px solid transparent; font-family: inherit; }
.cookie-btn-accept { background: var(--blue); color: #fff; }
.cookie-btn-decline { background: transparent; border-color: var(--light-gray); color: var(--gray); }

/* ── Responsive (Mobile Nav) ───────────────────────────────────────── */
@media (max-width: 768px) {
  nav#main-nav { padding: 0 20px; }
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }
  footer { padding: 48px 20px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  #cookie-banner { padding: 20px; }
}
