/* KIAB Shared Styles - kiab.css */
:root {
  --black:     #0a0a0a;
  --dark:      #111111;
  --dark2:     #161616;
  --orange:    #E8922A;
  --orange-lt: #f0a84d;
  --orange-dk: #b86e18;
  --red:       #C0271A;
  --white:     #f5f0e8;
  --grey:      #888880;
  --grey-lt:   #aaa89f;
  --border:    rgba(232,146,42,0.2);
  --border-s:  rgba(232,146,42,0.5);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: 'Barlow', sans-serif; font-weight: 300; line-height: 1.75; overflow-x: hidden; top: 0 !important; }
h1,h2,h3,h4 { font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; }
.orange { color: var(--orange); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

/* ── NAV ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1002; background: rgba(10,10,10,.99); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.nav-logo { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.nav-logo img { height: 48px; width: 48px; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text .n1 { font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--orange); letter-spacing: .1em; text-transform: uppercase; }
.nav-logo-text .n2 { font-size: .62rem; color: var(--grey); letter-spacing: .06em; text-transform: uppercase; }
.nav-links { display: none; list-style: none; flex-shrink: 1; min-width: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a { display: block; padding: .5rem .85rem; font-family: 'Oswald', sans-serif; font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-lt); text-decoration: none; transition: color .2s; white-space: nowrap; }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--orange); }
.dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--dark2); border: 1px solid var(--border); border-top: 2px solid var(--orange); list-style: none; z-index: 200; }
.nav-links li:hover .dropdown { display: block; }
.dropdown li a { display: block; padding: .6rem 1.2rem; font-family: 'Barlow', sans-serif; font-size: .85rem; color: var(--grey-lt); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.04); transition: color .2s, background .2s; }
.dropdown li a:hover, .dropdown li a.active { color: var(--orange); background: rgba(232,146,42,.06); }
.nav-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

/* Google Translate – versteckt, eigenes Dropdown steuert */
#google_translate_element { display: none !important; }
.goog-te-banner-frame { display: none !important; }
.goog-te-gadget { display: none !important; }

/* Eigenes Sprach-Dropdown */
.kiab-lang-select { appearance: none; -webkit-appearance: none; background: var(--dark2); color: var(--grey-lt); border: 1px solid var(--border); padding: .3rem .9rem .3rem .6rem; font-size: .72rem; font-family: 'Barlow', sans-serif; font-weight: 400; letter-spacing: .06em; cursor: pointer; outline: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888880'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .5rem center; padding-right: 1.4rem; transition: border-color .2s, color .2s; }
.kiab-lang-select:hover { border-color: var(--orange); color: var(--white); }
.kiab-lang-select:focus { border-color: var(--orange); }
.kiab-lang-select option { background: var(--dark2); color: var(--grey-lt); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; flex-shrink: 0; z-index: 1003; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--orange); transition: all .3s ease; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── DESKTOP NAV ── */
@media (min-width: 901px) {
  .nav-links { display: flex; align-items: center; }
  .hamburger { display: none; }
}

/* ── PAGE HERO ── */
.page-hero { padding: 8rem 0 4rem; background: var(--dark); position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(192,39,26,.08) 0%, transparent 70%); }
.page-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(232,146,42,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(232,146,42,.025) 1px, transparent 1px); background-size: 60px 60px; }
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--grey); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--orange); }
.page-title { font-size: clamp(2.2rem, 5vw, 4rem); color: var(--white); margin-bottom: .75rem; }
.page-subtitle { font-family: 'Crimson Pro', serif; font-style: italic; font-size: 1.2rem; color: var(--grey-lt); max-width: 600px; }

/* ── SECTION ── */
section { padding: 5rem 0; }
.s-label { display: inline-flex; align-items: center; gap: .75rem; font-size: .68rem; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: var(--orange); margin-bottom: .9rem; }
.s-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--orange); }
.s-title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); color: var(--white); margin-bottom: .9rem; }
.s-sub { font-family: 'Crimson Pro', serif; font-style: italic; font-size: 1.08rem; color: var(--grey-lt); max-width: 640px; }
.divider { width: 56px; height: 2px; background: linear-gradient(90deg, var(--orange), var(--red)); margin: 1.25rem 0; }
.prose { font-size: .93rem; color: var(--grey-lt); line-height: 1.9; max-width: 780px; }
.prose p { margin-bottom: 1.2rem; }
.prose p:last-child { margin-bottom: 0; }

/* ── BUTTONS ── */
.btn-primary { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 2rem; background: var(--orange); color: var(--black); font-family: 'Oswald', sans-serif; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn-primary:hover { background: var(--orange-lt); transform: translateY(-1px); }
.btn-outline { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 2rem; background: transparent; color: var(--white); font-family: 'Oswald', sans-serif; font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--border-s); cursor: pointer; transition: border-color .2s, color .2s; }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ── FOOTER ── */
footer { background: #080808; border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.f-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; text-decoration: none; }
.f-logo img { height: 42px; width: 42px; object-fit: contain; }
.f-logo-text { font-family: 'Oswald', sans-serif; font-size: .92rem; font-weight: 700; color: var(--orange); letter-spacing: .08em; text-transform: uppercase; }
.f-desc { font-size: .83rem; color: var(--grey); line-height: 1.7; max-width: 270px; }
.f-col-title { font-family: 'Oswald', sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-bottom: 1.2rem; }
.f-links { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.f-links a { font-size: .83rem; color: var(--grey); text-decoration: none; transition: color .2s; }
.f-links a:hover { color: var(--white); }
.f-bottom { border-top: 1px solid var(--border); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.f-copy { font-size: .76rem; color: var(--grey); }
.f-legal { display: flex; gap: 1.5rem; }
.f-legal a { font-size: .76rem; color: var(--grey); text-decoration: none; transition: color .2s; }
.f-legal a:hover { color: var(--orange); }

/* ── SCROLL TOP ── */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 42px; height: 42px; background: var(--orange); color: var(--black); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 999; }
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--orange-lt); }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE: DESKTOP ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── RESPONSIVE: MOBILE NAV ── */
@media (max-width: 900px) {
  /* Navbar kompakter */
  .nav-inner { height: 60px; padding: 0 1rem; }
  .nav-logo img { height: 38px; width: 38px; }
  .nav-logo-text .n2 { display: none; }
  .nav-right { gap: .5rem; }
  .kiab-lang-select { display: none; }
  /* Hamburger sichtbar */
  .hamburger { display: flex; }
  /* Nav versteckt */
  .nav-links {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    background: rgba(8,8,8,.99);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow-y: auto;
    z-index: 1003;
    border-top: 2px solid var(--orange);
    list-style: none;
  }
  .nav-links.open { display: flex; }
  /* Nav Hauptlinks */
  .nav-links > li { border-bottom: 1px solid rgba(232,146,42,.08); }
  .nav-links > li > a { padding: 1rem 1.5rem; font-size: .95rem; white-space: normal; color: var(--grey-lt); }
  .nav-links > li > a:hover { color: var(--orange); }
  /* Desktop hover deaktivieren */
  .nav-links li:hover .dropdown { display: none; }
  /* Dropdown Mobile */
  .dropdown { position: static !important; display: none; background: rgba(232,146,42,.04); border: none; border-top: 1px solid rgba(232,146,42,.08); min-width: unset; list-style: none; }
  .nav-links li.open-sub > .dropdown { display: block; }
  .dropdown li a { padding: .75rem 2.5rem; font-size: .88rem; }
}

/* ── RESPONSIVE: SMALL MOBILE ── */
@media (max-width: 768px) {
  .btn-primary, .btn-outline { padding: .9rem 1.5rem; font-size: .82rem; }
  section { padding: 3.5rem 0; }
  .page-hero { padding: 5.5rem 0 2.5rem; }
  .page-title { font-size: clamp(1.8rem, 7vw, 3rem); }
  .container { padding: 0 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

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

/* ── iOS SAFE AREA ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
  #installBanner { bottom: calc(1rem + env(safe-area-inset-bottom)); }
}

/* ── TOUCH ── */
* { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
