/* ===== Global ===================================================================================================== */

:root {
  --nav-h: clamp(30px, 10vh, 84px);
  --footer-h: clamp(48px, 5vh, 64px);
  --card-h: clamp(280px, 50vh, 560px);
  --nav-separator: #012f50;

  /*===Fonts===*/
  --default-font: "Castle_T_Light", sans-serif;
  --font-header: "Calibri", sans-serif;

  /*==Colors==*/
  --primary: #012f50;
  --secondary: #a3d7fb;
  --text: #00243d;
  --comp01: #ffad42;
  --comp02: #ff9000;
  --comp03: #ffd6a0;

  --brand: #006bb3;
  --brand-weak: #398cbc;
  --brand-weak-2: #2d6e94;
  --back-g: #cde8ff;
  --btn: #00548f;
  --imp: #001b2d;

  --left-grid: ;
  --mid-grid: #ffffff;
  --right-grid: ;

  --white: #ffffff;
  --hero1: #ffffff;
  --hero2: #000000;

  /*==Schriftgröße==*/
  --base: clamp(0.5rem, 0.8vw + 1rem, 1.5rem);
  --p: clamp(1rem, 0.4vw + 0.8rem, 1.25rem);
  --soe: clamp(0.5rem, 0.4vw + 1rem, 1rem);
  --fs-h1: clamp(2rem, 4vw + 1rem, 5rem);
  --navbar: clamp(1rem, 1vw + 0.5rem, 3rem);
  --text-button: clamp(1rem, 0.4vw + 0.8rem, 3rem);
  --t-nav: clamp(1rem, 0.5vw + 0.9rem, 1.125rem);
  --title-h1: clamp(3rem, 12vw, 8rem);
  --text-imp: clamp(0.8rem, 0.5vw + 0.6rem, 1.5rem);
  --h1: clamp(2.2rem, 1vw + 2.5rem, 6rem);
  --h2: clamp(2rem, 1vw + 2rem, 4rem);
  --h3: clamp(1.7rem, 0.5vw + 1.5rem, 3.5rem);
  --h4: clamp(1.5rem, 0.5vw + 0.9rem, 2.7rem);
  --h5: clamp(1.2rem, 0.3vw + 0.8rem, 2.2rem);

  /*==Abstände==*/
  --banner-gap: clamp(10px, 1vw, 30px);
  --content-padd: clamp(20px, 2vw, 45px);
  --container-pad: clamp(0.75rem, 2vw, 1.25rem);

  /*==Radius==*/
  --border-radius: 8px;
}

html,
body {
  color: var(--text);
  font-family: "Castle_T_Light", sans-serif;
  height: 100%;
  scroll-behavior: smooth;
}
body {
  overflow-y: auto;
  margin: 0;
}

main {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
:where(p, li, h1, h2, h3, h4, h5, h6) {
  overflow-wrap: anywhere;
}

/*======Schrift und Text==============================================================================================*/
h2,
h3,
h4,
h5 {
  padding-top: clamp(0.5rem, 2vw, 2rem);
  padding-bottom: clamp(0.5rem, 2vw, 2rem);
  margin: 0;
}
h1 {
  margin: 0;
  padding-top: clamp(12px, 2vw, 20px);
  padding-bottom: clamp(24px, 5vw, 50px);
  font-size: var(--h1);
  line-height: 1.1;
}
.h1 {
  margin: 0;
  padding-top: clamp(12px, 2vw, 20px);
  padding-bottom: clamp(24px, 5vw, 50px);
  font-size: var(--fs-h1);
  line-height: 1.1;
  z-index: 100;
}
h2 {
  font-size: var(--h2);
}
h3 {
  font-size: var(--h3);
}
h4 {
  font-size: var(--h4);
}
h5 {
  font-size: var(--h5);
}

p {
  font-size: var(--p);
}

/*==Content-Header==*/

.dsgvo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dsgvo-header h1 {
}

/*===== Images =====*/

.header-img {
  max-width: 200px;
  height: auto;
}

/* ======== Menü (Fallback für altes .menu) ================================== */
.menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  color: #fff;
  text-decoration: none;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.25rem;
}

/* ======== Custom Scrollbar ====================================== */

::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 4px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--btn);
  border-radius: 4px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--comp02);
}

/* ======== Listen / Accordion / Panels ====================================== */
ul li.lead {
  list-style-type: square;
}

ol {
  line-height: 2rem;
  background: #b1cbdf;
  color: var(--text);
  width: 100%;
  padding: clamp(1rem, 3vw, 2rem) var(--container-pad);
  font-style: italic;
  margin: 0;
}
ol li {
  margin-left: 1rem;
}

.arrow-down {
  min-height: 48px;
  width: 48px;
}

.accordion {
  background: var(--secondary);
  color: #fff;
  cursor: pointer;
  padding: clamp(12px, 2.5vw, 20px);
  font-size: clamp(1rem, 0.6vw + 0.95rem, 1.125rem);
  width: 100%;
  border: none;
  margin-bottom: 2px;
  transition: background-color 0.2s ease;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.accordion:hover,
.accordion.active {
  background: var(--comp02);
  color: #ffffff;
}
.accordion:focus {
  outline: none;
}

.panel {
  background: var(--primary);
  overflow: hidden;
  max-height: 0;
  width: 100%;
  transition: max-height 0.3s ease;
  padding: 0 clamp(12px, 2.5vw, 18px);
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-size: var(--base);
}
.panel p {
  margin-top: 1rem;
  text-align: justify;
}
.panel[hidden] {
  display: none !important;
}

.accordion,
.panel {
  overflow-anchor: none;
}
