/* ==========================================================================
   Bauer Innovation - Official Stylesheet
   DSGVO-Compliant: 100% self-hosted, 0 external trackers/fonts, 0 cookies
   ========================================================================== */

/* --------------------------------------------------------------------------
   Royalty-Free Open-Source Fonts (SIL OFL): Jost & Barlow
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-header: #000000;
  --bg-body: #000000;
  --text-main: #ffffff;
  --text-light: #ffffff;
  --text-muted: #888888;
  --accent-red: #e2001a;
  --accent-red-hover: #b80015;
  --border-divider: rgba(255, 255, 255, 0.2);
  --header-height: 70px;

  /* Royalty-Free Open-Source Fonts (SIL OFL) */
  --font-nav: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-body);
  color: var(--text-main);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-header);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.header-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.brand-logo img {
  height: 48px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.brand-logo:hover img {
  transform: scale(1.04);
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 15px;
  color: var(--text-light);
  font-family: var(--font-nav);
  font-size: 13.5px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-right: 1px solid var(--border-divider);
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-link.active {
  color: var(--accent-red);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-item:first-child .nav-link {
  border-left: 1px solid var(--border-divider);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: var(--header-height);
  left: 0;
  background-color: #000000;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  border-top: 2px solid var(--accent-red);
  display: none;
  flex-direction: column;
  list-style: none;
  z-index: 1001;
  padding: 0;
  margin: 0;
}

.nav-item.open .dropdown-menu {
  display: flex;
}

@media (hover: hover) and (min-width: 961px) {
  .nav-item:hover .dropdown-menu {
    display: flex;
  }
}

.dropdown-link {
  display: block;
  padding: 12px 20px;
  color: var(--text-light);
  font-family: var(--font-nav);
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background-color: #000000;
  border-bottom: 1px solid #1a1a1a;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dropdown-link:hover,
.dropdown-link.active {
  background-color: #141414;
  color: var(--accent-red);
  padding-left: 24px;
}

.dropdown-link.doc-badge::after {
  content: " [PDF]";
  font-size: 10px;
  opacity: 0.7;
}

/* Header Actions & Language Switcher */
.header-actions {
  display: flex;
  align-items: center;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.lang-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 2px 4px;
  transition: color 0.15s ease;
}

.lang-link:hover {
  color: var(--text-light);
}

.lang-link.active {
  color: var(--text-light);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-red);
}

.lang-divider {
  color: var(--border-divider);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 26px;
  cursor: pointer;
  padding: 5px 8px;
  line-height: 1;
}

/* ==========================================================================
   Main Content Layouts
   ========================================================================== */

main {
  flex: 1;
  margin-top: var(--header-height);
  display: flex;
  flex-direction: column;
  background-color: var(--bg-body);
}

/* Full-Bleed Page Canvas (The image is the background of the page) */
.page-canvas {
  flex: 1;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  background-color: #000000;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

/* Home Page Canvas: Full-bleed cover with black backdrop */
.home-canvas {
  background-color: #000000 !important;
  background-size: cover !important;
  background-position: center center !important;
}

/* White Content Slides (Bauer, Beratung, etc.): Seamless white background with full graphic */
.white-canvas {
  background-color: #ffffff !important;
  background-size: contain !important;
  background-position: center center !important;
}

/* Charity Page Canvas (Full graphic completely visible with contain) */
.charity-canvas {
  background-color: #000000 !important;
  background-image: url('../img/charity_bg.jpg') !important;
  background-size: contain !important;
  background-position: center center !important;
}

.charity-canvas.charity-canvas-en {
  background-image: url('../img/charity_bg_en.jpg') !important;
}

/* ==========================================================================
   Contact Page Responsive Stage & Hotspots
   ========================================================================== */
.contact-canvas {
  background-image: none !important;
  background-color: #ffffff !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  min-height: calc(100vh - var(--header-height));
}

.contact-stage-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
}

.contact-stage {
  position: relative;
  width: min(100%, calc((100vh - var(--header-height)) * (2008 / 1240)));
  aspect-ratio: 2008 / 1240;
  margin: 0 auto;
  user-select: none;
  container-type: inline-size;
}

.contact-stage-img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Clickable Hotspots overlaying email addresses */
.contact-hotspot {
  position: absolute;
  display: block;
  z-index: 10;
  cursor: pointer;
  border-radius: 3px;
  background-color: transparent;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-hotspot:hover,
.contact-hotspot:focus-visible {
  background-color: rgba(226, 0, 26, 0.08);
  box-shadow: 0 0 0 2px rgba(226, 0, 26, 0.35);
  outline: none;
}

/* Coordinates on 2008x1240 canvas */
/* Left: info@bauer-innovation.com */
.hotspot-email-left {
  left: 25.9%;
  top: 61.5%;
  width: 17%;
  height: 3%;
}

/* Right 1: info@bauer-innovation.com (Entwicklung: Jörg R. Bauer) */
.hotspot-email-joerg {
  left: 48.4%;
  top: 45.8%;
  width: 17%;
  height: 2.8%;
}

/* Right 2: k.weidner@bauer-innovation.com (Vertrieb: Katharina Weidner) */
.hotspot-email-weidner {
  left: 48.4%;
  top: 53.6%;
  width: 20.6%;
  height: 2.8%;
}

/* Right 3: k.bauer@bauer-innovation.com (Vertrieb: Konstantin Bauer) */
.hotspot-email-bauer {
  left: 48.4%;
  top: 61.5%;
  width: 19.2%;
  height: 2.8%;
}

/* Clickable textlink www.bauer-innovation.com */
.contact-web-link {
  position: absolute;
  top: 68.8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.35vw, 22px);
  font-size: 1.2cqw;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.contact-web-link:hover,
.contact-web-link:focus-visible {
  color: var(--accent-red);
  transform: translateX(-50%) scale(1.03);
  text-decoration-color: var(--accent-red);
}

/* Mobile Quick Contacts (< 768px) */
.contact-mobile-actions {
  display: none;
  width: 100%;
  padding: 24px 20px 40px;
  background-color: #0d0d0d;
  color: #ffffff;
  border-top: 2px solid var(--accent-red);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .contact-stage-container {
    padding-top: 18px;
  }

  .contact-mobile-actions {
    display: block;
  }
}

.contact-mobile-title {
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 16px;
  text-align: center;
}

.contact-mobile-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.contact-mobile-card {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background-color: #181818;
  border: 1px solid #282828;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.contact-mobile-card:hover,
.contact-mobile-card:active {
  background-color: #222222;
  border-color: var(--accent-red);
}

.contact-mobile-role {
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aaaaaa;
  margin-bottom: 3px;
}

.contact-mobile-val {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  word-break: break-all;
}

.contact-mobile-card:hover .contact-mobile-val {
  color: var(--accent-red);
}

.contact-mobile-web {
  border-left: 3px solid var(--accent-red);
}

/* Legal Content Layout (Impressum & Datenschutz) */
.legal-page {
  background-color: #000000;
  flex: 1;
  padding: 30px 15px;
}

.legal-container {
  max-width: 920px;
  width: 100%;
  margin: 20px auto;
  padding: 45px 40px;
  background: #111111;
  border: 1px solid #222222;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  color: #dddddd;
}

.legal-header {
  border-bottom: 2px solid #252525;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.legal-header h1 {
  font-family: var(--font-nav);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 8px;
}

.legal-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #81c784;
  background: rgba(46, 125, 50, 0.2);
  border: 1px solid rgba(46, 125, 50, 0.35);
  padding: 3px 10px;
  border-radius: 4px;
}

.legal-content h2 {
  font-family: var(--font-nav);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin: 28px 0 12px 0;
  border-left: 3px solid var(--accent-red);
  padding-left: 12px;
}

.legal-content h3 {
  font-size: 15px;
  font-weight: 500;
  color: #eeeeee;
  margin: 18px 0 8px 0;
}

.legal-content p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #cccccc;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 12px 0 18px 24px;
  color: #cccccc;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-info-box {
  background-color: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 18px 22px;
  margin: 20px 0;
}

.legal-info-box p {
  margin-bottom: 4px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1080px) {
  .nav-link {
    padding: 0 10px;
    font-size: 12px;
  }
}

@media (max-width: 960px) {
  .mobile-toggle {
    display: block !important;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: var(--header-height);
    background-color: #000000 !important;
  }

  .header-container {
    width: 100%;
    justify-content: space-between !important;
    gap: 0 !important;
    padding: 0 16px !important;
    position: static;
  }

  /* 100% Solid Black Full-Width Drawer */
  .main-nav {
    display: none;
    position: fixed !important;
    top: var(--header-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background: #000000 !important;
    background-color: #000000 !important;
    border-top: 1px solid #222222 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.99);
    z-index: 99999 !important;
  }

  .main-nav.active {
    display: block !important;
    background-color: #000000 !important;
  }

  .nav-list {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    align-items: stretch !important;
    background-color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .nav-item {
    width: 100% !important;
    height: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background-color: #000000 !important;
  }

  .nav-link {
    width: 100% !important;
    height: 52px !important;
    padding: 0 24px !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #1a1a1a !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border-top: none !important;
    background-color: #0c0c0c !important;
    display: none;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .nav-item.open .dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
  }

  .dropdown-link {
    width: 100% !important;
    padding: 0 24px 0 45px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #0c0c0c !important;
    border-bottom: 1px solid #181818 !important;
    color: #bbbbbb !important;
    box-sizing: border-box !important;
  }

  /* Responsive image canvas on mobile */
  .page-canvas {
    background-size: contain;
    background-position: center center;
    min-height: calc(100vw * 1240 / 2008);
    margin-top: var(--header-height);
  }

  .contact-canvas {
    min-height: auto;
    margin-top: var(--header-height);
    background-image: none !important;
  }

  .legal-container {
    padding: 30px 20px;
    margin: 20px 10px;
  }
}
