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

:root {
  --header-footer-BG: #ebfaff;
  --primary: #1e3a5f;
  --secondary: #6a97c9;
  --typo: #333333;
  --boxen: #e5e5e5;
  --hover: #0d6efd;
  --bg: #ffffff;
  --h1-h5: #5f221e;
  --footer-bottom: #888;
  --footer-bottom-hover: #ccc;
  --branchen-placeholder: #999;
  --branchen-list-hover: #dcdcdc;
  --branchen-list-active: #fff;
}

body {
  background-image: url(/img/Mapa.png);
  background-size: 100%;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@font-face {
  font-family: "Inter_24pt-Medium";
  src: url(../fonts/Inter/static/Inter_24pt-Medium.ttf);
}
/* 
-------------
HEADER 
-------------
*/
#header-custom {
  background-color: var(--header-footer-BG);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.phone-desktop a,
.phone-mobile a {
  text-decoration: none;
  color: var(--primary);
  font-size: 0.85rem;
}
.phone-desktop,
.phone-mobile {
  display: none;
}

/* Nummer Desktop */
@media (min-width: 1200px) {
  .phone-desktop {
    display: block;
    position: absolute;
    right: 1.2rem;
    top: 0;
  }

  .custom-navbar .container {
    position: relative;
  }
}

/* Nummer Mobile */
@media (max-width: 1199px) {
  .phone-mobile {
    display: flex;
    align-items: center;
  }
}

/* 
----------------
Navigation Style
----------------
*/
.custom-navbar {
  background-color: transparent;
  font-family: "Inter_24pt-Medium", sans-serif;
}

.navbar-brand {
  letter-spacing: 0.3px;
  color: var(--primary);
}

.navbar-nav .nav-link {
  position: relative;
  margin-left: 1rem;
  color: var(--primary);
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--hover);
}

/* Linie unter dem Link */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

/* Linie Animieren */
.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Burger Style */
.navbar-toggler {
  width: 36px;
  height: 26px;
  position: relative;
  border: none;
  background: transparent !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Burger Animation */
.navbar-toggler-icon {
  filter: brightness(0.3);
  transition: transform 0.3s ease;
  position: relative;
}

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    top 0.3s ease;
}

.burger-line:nth-child(1) {
  top: 4px;
}
.burger-line:nth-child(2) {
  top: 11px;
}
.burger-line:nth-child(3) {
  top: 18px;
}

/* X-Zustand */
.navbar-toggler[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateX(-50%) rotate(45deg);
  top: 12px;
}
.navbar-toggler[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateX(-50%) rotate(-45deg);
  top: 12px;
}

/* 
--------------
HERO
--------------
*/
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 75vh;
  background-attachment: scroll;
  margin-top: 10rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-logo {
  width: 250px;
}

.hero-video {
  object-fit: cover;
  z-index: 0;
}

.hero-profil {
  background-image: url(/img/hero_1.webp);
}

.hero-branchen {
  background-image: url(/img/Hero-Branchen.webp);
}

.hero-referenzen {
  background-image: url(/img/Hero-Referenzen.webp);
}

.hero-preise {
  background-image: url(/img/Hero-Preis.webp);
}

.hero-contact {
  background-image: url(/img/Hero-Kontakt.webp);
}
/* 
-------------
GLOBAL
-------------
*/
h2,
h3,
h5,
.card-title {
  color: var(--h1-h5);
}

.main-section {
  padding: 2rem 1rem;
  min-height: 30vh;
  position: relative;
}

/* Tablet */
@media (min-width: 768px) {
  .main-section {
    padding: 4rem 2rem;
  }
  .hero-logo {
    width: 350px;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .main-section {
    padding: 6rem 0;
    background-attachment: fixed;
  }
}

/* Cards Section */

.read-more {
  text-decoration: none;
  color: var(--secundary);
}

.read-more::after {
  content: "→";
  margin-left: 0.4rem;
  transition: margin-left 0.2s ease;
  display: inline-block;
}

.read-more:hover::after {
  margin-left: 0.8rem;
}

/* 
-------------
Branchen
-------------
*/

.branchen-inline-preview {
  background-color: var(--boxen);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
}

.branchen-inline-preview h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.branchen-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-width: 280px;
  gap: 0.9rem;
}

.branchen-list li {
  margin: 0;
}

.branchen-list li a {
  display: block;
  width: 100%;
  max-width: 500px;
  background-color: var(--boxen);
  color: var(--typo);
  text-decoration: none;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.branchen-list li a:hover {
  background-color: var(--branchen-list-hover);
  transform: translate(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.branchen-list li a::after {
  content: "→";
  float: right;
  transition: transform 0.2s ease;
}

.branchen-list li a:hover::after,
.branchen-list li a.active::after {
  transform: translateX(4px);
}

/* Branchen Split-Layout*/
.branchen-layout {
  display: flex;
  flex-direction: column;
}

.branchen-preview {
  display: none;
  background-color: var(--boxen);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  min-height: 180px;
}

.branchen-placeholder {
  color: var(--branchen-placeholder);
  font-style: italic;
}

.branchen-list li a.active {
  background-color: var(--primary);
  color: var(--branchen-list-active);
}

@media (min-width: 768px) {
  .branchen-layout {
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
  }

  .branchen-preview {
    display: flex;
    flex: 1;
    background-color: var(--boxen);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    flex-direction: column;
  }

  .branchen-list {
    width: auto;
  }
}

/* 
---------------
Footer
---------------
*/
#site-footer {
  background-color: var(--header-footer-BG);
  color: var(--typo);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}

#site-footer h5 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

#site-footer a {
  color: var(--typo);
  text-decoration: none;
  transition: color 0.2s;
}

#site-footer a:hover {
  color: var(--hover);
}

#site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#site-footer ul li + li {
  margin-top: 0.4rem;
}

#site-footer .footer-divider {
  border-color: var(--footer-bottom);
  margin: 2rem 0 1.25rem;
}

#site-footer .footer-bottom {
  font-size: 0.8rem;
  color: var(--footer-bottom);
}

#site-footer .footer-bottom a {
  color: var(--footer-bottom);
}

#site-footer .footer-bottom a:hover {
  color: #ccc;
}
