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

:root {
  --color-header-bg: #2B2E34;
  --color-text-light: #FAFAFF;
  --color-text-muted: #BDC3D1;
  --color-accent: #DF9E48;
  --color-dropdown-bg: #F4B870;
  --color-body-bg: #F6F6F6;

  --header-topbar-height: 42px;
  --header-navbar-height: 90px;
  --header-total-height: calc(var(--header-topbar-height) + var(--header-navbar-height));

  --container-max-width: 1020px;
  --sidebar-width: 280px;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

b, strong {
  font-weight: 700;
}

body {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 22px;
  color: #333;
  background: var(--color-body-bg);
  overflow-x: hidden;
}


/* ===== Sticky Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}


/* ===== Top Bar (language flags) ===== */
.top-bar {
  background: var(--color-header-bg);
  height: var(--header-topbar-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 25px;
}

.lang-flag {
  display: inline-flex;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.lang-flag:hover {
  opacity: 1;
}

.lang-flag img {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Highlight the flag of the currently active language */
html[lang="de"] .lang-flag[href="/de/"],
html[lang="en"] .lang-flag[href="/en/"] {
  opacity: 1;
}

html[lang="de"] .lang-flag[href="/de/"] img,
html[lang="en"] .lang-flag[href="/en/"] img {
  border-color: var(--color-accent);
}


/* ===== Navbar ===== */
.navbar {
  background: var(--color-header-bg);
  height: var(--header-navbar-height);
  border-top: 1px solid #F6F6F6;
  border-bottom: 3px solid var(--color-header-bg);
}

.navbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  margin: 0 auto;
  padding: 0 25px;
  position: relative;
}


/* ===== Logo ===== */
.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo .logo-desktop {
  height: 75px;
  width: 150px;
  display: block;
}

.nav-logo .logo-mobile {
  display: none;
  position: relative;
  top: 2px;
}


/* ===== Desktop Nav Menus ===== */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0;
}

.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 18px;
  font-weight: 300;
  line-height: 35px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-menu > li.has-dropdown > a {
  padding: 0 25px 0 10px;
  position: relative;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.nav-active {
  color: var(--color-accent);
}

.chevron {
  position: absolute;
  right: 8px;
  top: 50%;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  font-size: 0;
}

/* Menu alignment around centered logo */
.nav-left {
  justify-self: end;
  margin-right: 15px;
}

.nav-right {
  justify-self: start;
  margin-left: 15px;
}


/* ===== Dropdown Menus ===== */
.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background: var(--color-dropdown-bg);
  list-style: none;
  padding: 15px;
  z-index: 1010;
}

.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 5px 0 5px 10px;
  color: var(--color-header-bg);
  text-decoration: none;
  font-size: 15px;
  line-height: 22px;
  transition: color 0.2s;
}

.dropdown li a:hover {
  color: var(--color-text-light);
}


/* ===== Hamburger Button (mobile) ===== */
.hamburger {
  display: none;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-light);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger animation when open */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ===== Mobile Sidebar ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-header-bg);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: var(--header-total-height) 0 30px 0;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-heading {
  padding: 20px 24px 8px;
  color: var(--color-text-light);
  font-size: 15px;
  font-weight: 500;
}

.sidebar-link {
  display: block;
  padding: 10px 24px 10px 36px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-group {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 8px;
}


/* ===== Main Content offset for sticky header ===== */
.content {
  padding-top: var(--header-total-height);
}


/* ===== Hero / Landing Section ===== */

.hero {
  box-sizing: border-box;
  height: calc(100vh - var(--header-total-height));
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: url('../img/graphite.jpg') 50% 50% / cover no-repeat #F6F6F6;
}

.hero-content {
  display: table;
  height: 100%;
  width: 100%;
}

.hero-content > .hero-panel {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.hero-title {
  font-size: 56px;
  font-weight: 300;
  line-height: 69px;
  color: #373A43;
  margin: 0;
}

.hero-divider {
  display: block;
  width: 120px;
  height: 0;
  padding-top: 13px;
  border-bottom: 2px solid #DF9E48;
  margin: 0 auto 13px;
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 400;
  color: #6A6F7A;
  margin: 0 0 8px;
}

/* Icon circles */
.hero-icons {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.hero-icons > li {
  display: inline-block;
}

.hero-icons > li > a {
  display: inline-block;
  box-sizing: content-box;
  border: 2px solid #2B2E34;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  line-height: 85px;
  margin: 15px 15px 0;
  padding: 20px;
  font-size: 64px;
  transition: 0.1s ease-in-out;
  transform: translate3d(0, 0, 0);
  color: #373A43;
  text-decoration: none;
}

.hero-icons > li > a:hover {
  border-color: #DF9E48;
  background-color: transparent;
  color: #DF9E48;
  text-decoration: none;
  transform: scale(1.1);
}

/* Scroll down indicator */
.hero-scroll-down {
  margin: 30px 0 0 -23px;
  padding: 0;
  list-style: none;
  display: inline-block;
  position: absolute;
  bottom: 55px;
  left: 50%;
}

.hero-scroll-down > a {
  display: inline-block;
  box-sizing: content-box;
  border: 1px solid #DF9E48;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 22px;
  margin: 0;
  padding: 12px;
  font-size: 16px;
  transition: 0.1s ease-in-out;
  transform: translate3d(0, 0, 0);
  color: #DF9E48;
  text-decoration: none;
}

.hero-scroll-down > a:hover {
  border-color: #DF9E48;
  background-color: transparent;
  color: #DF9E48;
  text-decoration: none;
  transform: scale(1.3);
  transition-duration: 1s;
}

.hero-scroll-down > a:hover,
.hero-scroll-down > a:active,
.hero-scroll-down > a:focus {
  outline: 0;
}

/* ===== Entry Animations ===== */
@keyframes hero-scale-up {
  0% { opacity: 0; transform: scale(0.2); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes hero-slide-top {
  0% { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes hero-slide-bottom {
  0% { opacity: 0; transform: translateY(100%); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-title {
  animation: hero-scale-up 0.5s ease-out both;
  animation-delay: 0.1s;
}

.hero-divider {
  animation: hero-scale-up 0.5s ease-out both;
  animation-delay: 0.25s;
}

.hero-subtitle {
  animation: hero-slide-top 0.5s ease-out both;
  animation-delay: 0s;
}

.hero-icons > li:nth-child(1) { animation: hero-slide-bottom 0.5s ease-out both; animation-delay: 0.2s; }
.hero-icons > li:nth-child(2) { animation: hero-slide-bottom 0.5s ease-out both; animation-delay: 0.15s; }
.hero-icons > li:nth-child(3) { animation: hero-slide-bottom 0.5s ease-out both; animation-delay: 0.15s; }
.hero-icons > li:nth-child(4) { animation: hero-slide-bottom 0.5s ease-out both; animation-delay: 0.2s; }

.hero-scroll-down {
  animation: hero-slide-top 0.5s ease-out both;
  animation-delay: 2s;
}


/* ===== Generic Section Layout ===== */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 25px;
}

.section {
  padding: 60px 0;
}

.section-nopad-top {
  padding-top: 0;
}

.section-light {
  background: var(--color-body-bg);
  color: #2B2E34;
}

.section-dark {
  background: var(--color-header-bg);
  color: var(--color-text-light);
}

.section-title {
  font-size: 36px;
  font-weight: 300;
  line-height: 42px;
  color: var(--color-accent);
  margin: 0 0 36px;
  text-align: center;
}

.section-title-light {
  color: var(--color-accent);
}

.section-lead {
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
  color: #2B2E34;
  margin: 0 0 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 24px;
  color: #2B2E34;
  margin: 0 0 12px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


/* ===== Scroll Reveal Animation ===== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ===== Map Section ===== */

.map-header {
  text-align: center;
  margin-bottom: 20px;
}

.map-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 26px;
  color: #2B2E34;
  margin: 0 0 5px;
}

.map-subtitle {
  font-size: 14px;
  font-weight: 400;
  line-height: 23px;
  color: #6A6F7A;
  margin: 0;
}

.map-container {
  width: 100%;
  height: 500px;
}

/* Leaflet map tile styling */
.map-container .leaflet-tile-pane {
  filter: saturate(0.3) brightness(1.05) contrast(0.95);
}


/* ===== Kompetenz Cards ===== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 10px;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 40px 25px 30px;
  text-align: center;
  transition: background 0.3s, transform 0.3s;
}

.card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 42px;
  color: var(--color-accent);
  margin-bottom: 20px;
  line-height: 1;
}

.card-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-light);
  margin: 0 0 14px;
}

.card-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
  color: var(--color-text-muted);
  margin: 0;
}


/* ===== Contact Section ===== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-card {
  text-align: center;
  padding: 30px 20px;
}

.contact-icon {
  font-size: 36px;
  color: var(--color-accent);
  margin-bottom: 16px;
  line-height: 1;
}

.contact-label {
  font-size: 18px;
  font-weight: 400;
  color: #2B2E34;
  margin: 0 0 14px;
}

.contact-card p {
  font-size: 15px;
  font-weight: 300;
  line-height: 24px;
  color: #555;
  margin: 0;
}

.contact-card p .fa {
  color: #999;
  width: 18px;
}

/* Shielded text — rendered via CSS, not in DOM textContent */
.shd {
  user-select: none;
  -webkit-user-select: none;
}

.shd::after {
  content: var(--t);
}

.shd-bold::after {
  font-weight: 700;
}

.eml-link {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.eml-link:hover {
  color: var(--color-accent);
}


/* ===== Footer ===== */

.site-footer {
  background: var(--color-header-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  position: relative;
  padding: 24px 0;
  text-align: center;
}

.footer-legal {
  margin: 0 0 8px;
}

.footer-legal a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #F4B870;
}

.footer-sep {
  color: #555;
  margin: 0 10px;
  font-size: 10px;
}

.footer-copyright {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-muted);
  margin: 0;
}

.tm-totop-scroller {
  display: block;
  position: absolute;
  top: 24px;
  right: 0;
  z-index: 1000;
  width: 20px;
  height: 20px;
  line-height: 20px;
  font-size: 14px;
  color: #A7ACB8;
  text-align: center;
  transition: 0.05s linear;
  text-decoration: none !important;
}

.tm-totop-scroller::after {
  content: '\f077';
  font-family: FontAwesome;
}

.tm-totop-scroller:hover,
.tm-totop-scroller:focus {
  color: #DF9E48;
  font-size: 16px;
  outline: none;
}

.tm-totop-scroller:active {
  color: #F4B870;
  font-size: 11px;
}


/* ===== Legal Page ===== */

.legal-nav-section {
  padding: 40px 0 30px;
}

.legal-nav {
  text-align: center;
}

.legal-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s;
}

.legal-nav a:hover {
  color: var(--color-accent);
}

.legal-nav-sep {
  color: #555;
  margin: 0 12px;
  font-size: 10px;
}

.legal-block {
  max-width: 800px;
  margin: 0 auto;
}

.legal-block h3 {
  font-size: 22px;
  font-weight: 400;
  color: var(--color-accent);
  margin: 40px 0 20px;
}

.legal-block h4 {
  margin-top: 0;
}

.legal-block p {
  font-size: 15px;
  font-weight: 300;
  line-height: 24px;
  color: #2B2E34;
  margin: 0 0 10px;
}

.legal-heading {
  font-size: 16px;
  font-weight: 500;
  color: #2B2E34;
  margin: 28px 0 10px;
}

.legal-center {
  text-align: center;
}

.legal-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
}

.legal-q {
  color: #777 !important;
  font-weight: 400 !important;
  margin-top: 18px !important;
}

.legal-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.legal-list {
  list-style: disc;
  padding-left: 28px;
  margin: 8px 0 16px;
}

.legal-list li {
  font-size: 15px;
  font-weight: 300;
  line-height: 24px;
  color: #2B2E34;
  padding: 2px 0;
}

.legal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.legal-col p {
  font-size: 15px;
  line-height: 24px;
  margin: 0 0 4px;
}


/* ===== Responsive ===== */
@media (max-width: 767px) {
  :root {
    --header-navbar-height: 75px;
  }

  .navbar-inner {
    display: flex;
    justify-content: center;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-logo .logo-desktop {
    display: none;
  }

  .nav-logo .logo-mobile {
    display: block;
  }

  /* Hero icons mobile */
  .hero-icons > li > a {
    width: 36px;
    height: 36px;
    line-height: 39px;
    margin: 10px 10px 50px;
    padding: 9px;
    font-size: 31px;
  }

  /* Hide scroll-down on mobile */
  .hero-scroll-down {
    display: none;
  }

  /* Sections */
  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 28px;
    line-height: 34px;
  }

  /* Cards stack */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Map */
  .map-container {
    height: 350px;
  }

  /* Legal */
  .legal-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 322px) {
  .hero-icons > li > a {
    width: 36px;
    height: 36px;
    line-height: 39px;
    margin: 0 30px 30px;
    padding: 9px;
    font-size: 31px;
  }
}

@media (max-height: 500px) {
  .hero-scroll-down {
    display: none;
  }
}
