/* =====================================================
   DESIGN-VARIANTE – HIER UMSCHALTEN
   ===================================================== */

:root {
  --page-bg: orange;
  --container-bg: #FAF3E8;

  --card-bg: #ffffff;
  --text-color: #000000;
  --muted-text: #555555;

  --border-color: #000000;
  --soft-border: #cccccc;

  --shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  --accent: #000000;
}

/* =====================================================
   LOKALE SCHRIFT – INTER (WOFF2)
   ===================================================== */

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

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

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =====================================================
   RESET & BASIS
   ===================================================== */

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-color);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* =====================================================
   PAGE CONTAINER
   ===================================================== */

.page-container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 20px 0 20px;
  background: var(--container-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

/* =====================================================
   SEKTION-HÖHEN (OPTIONAL)
   ===================================================== */

.navigation {
  min-height: 80px;
}

.header-image {
  height: 400px;
}

.image-text {
  min-height: 420px;
}

.contact {
  min-height: 350px;
}

.footer {
  min-height: 200px;
}

/* =====================================================
   HEADER BILD
   ===================================================== */

.section.header-image {
  position: relative;
  padding: 0;
  overflow: hidden;
  transform: translateY(-2px);
}

.header-img {
  width: 100%;
  height: var(--section-min-height, 400px);
  object-fit: cover;
  display: block;
}

/* Overlay */
.header-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 1;
}

.header-headline {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  text-align: center;
  z-index: 2;
}

.header-h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
}

.header-h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  display: block;
}

/* =====================================================
   CONTAINER / SECTION
   ===================================================== */

.section {
  position: relative;
  margin-bottom: 50px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: var(--container-bg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  padding: 20px;
  min-height: var(--section-min-height, auto);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.section:hover {
  background-color: #FAFAFA;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.section.navigation:hover {
  transform: none;
}

.section.copyright {
  margin-bottom: 0;
}

.section.copyright p {
  margin-bottom: 0;
}

/* =====================================================
   ROLLEN-BUTTONS (PILLS)
   ===================================================== */

.role-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
  align-items: center;
}

.role-pill {
  width: min(444px, 100%);
  padding: 15px 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.10);
  user-select: none;
}

.role-pill--blue {
  background: #2F80C6;
}

.role-pill--orange {
  background: #F08A24;
}

.role-pill--teal {
  background: #3AA8B4;
}

.role-pill--green {
  background: #3BAE87;
}

.role-pill--yellow {
  background: #F2C21B;
  color: #000;
}

@media (max-width: 420px) {
  .role-pill {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
}

/* =====================================================
   STICKY NAVIGATION
   ===================================================== */

.section.navigation {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--container-bg);
}

/* =====================================================
   GLOBAL LAYOUT
   ===================================================== */

.container {
  width: 100%;
  margin: 0 auto;
}

/* =====================================================
   TYPOGRAFIE
   ===================================================== */

h1,
h2,
h3,
h4 {
  font-weight: 500;
  line-height: 1.3;
  margin-top: 0;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.35),
    0 0 10px rgba(0, 0, 0, 0.20);
}

h1 {
  font-size: 2.0rem;
}

h2 {
  font-size: 1.7rem;
}

h3 {
  font-size: 1.3rem;
}

h4 {
  font-size: 1.1rem;
}

p,
li {
  max-width: 70ch;
  margin-bottom: 0.8em;
}

ul {
  padding-left: 1.2em;
}

strong {
  font-weight: 600;
}

.muted {
  color: var(--muted-text);
}

/* =====================================================
   LINKS
   ===================================================== */

a {
  color: var(--text-color);
  text-decoration: none ;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  text-decoration-thickness: 2px;
}

/* =====================================================
   2-SPALTEN-LAYOUT
   .split-right = Text links | Bild rechts
   .split-left  = Bild links | Text rechts
   ===================================================== */

.split-right,
.split-left,
.split-single {
  display: grid;
  gap: 32px;
  align-items: center;
}

.split-right {
  grid-template-columns: 1.2fr 0.8fr;
}

.split-left {
  grid-template-columns: 0.8fr 1.2fr;
}

.split-single {
  grid-template-columns: 1fr;
}

.split-single .intro-text {
  width: 100%;
  max-width: none;
  text-align: left;
}

.split-single p,
.split-single li,
.split-single ul {
  max-width: none;
}

.split-right .intro-media img,
.split-left .intro-media img {
  width: 98%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.33);
}

.split-right .intro-text,
.split-left .intro-text,
.split-single .intro-text {
  text-align: left;
}

/* =====================================================
   GRID SYSTEM
   ===================================================== */

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

.grid-3b {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid-3 img {
  width: 300px;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-3b img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  display: block;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */

.site-header {
  padding: 12px 0;
  background: var(--container-bg);
  border-bottom: 1px solid var(--soft-border);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-grid {
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  display: block;
  max-height: 90px;
  width: auto;
  max-width: 100%;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 500;
}

/* =====================================================
   CARDS
   ===================================================== */

.card {
  background: var(--card-bg);
  border: 1px solid var(--soft-border);
  border-radius: 8px;
  padding: 16px;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  background: orange;
}

/* =====================================================
   FORMULARE
   ===================================================== */

label {
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  border: 1px solid var(--soft-border);
  border-radius: 4px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* =====================================================
   DISCLAIMER
   ===================================================== */

.disclaimer,
small {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted-text);
  border-left: 3px solid var(--soft-border);
  padding-left: 10px;
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
  padding: 24px 0;
  font-size: 13px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {
  .split-right,
  .split-left,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* =====================================================
   KONTAKTFORMULAR
   ===================================================== */

.contact-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input:not([type="checkbox"]):not([type="hidden"]),
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d0c7;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  box-sizing: border-box;
}

.contact-form input:not([type="checkbox"]):not([type="hidden"]):focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #E67E22;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.checkbox-group {
  margin-top: 4px;
}

.checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  font-weight: 400 !important;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  appearance: auto;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  margin: 3px 0 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 0 0 18px;
}

.checkbox-label span {
  display: block;
}

.form-status {
  margin: 4px 0 0;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.form-status.is-error {
  color: #b42318;
}

.form-status.is-success {
  color: #17663a;
}

.input-error {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12) !important;
}

.hp-field {
  display: none !important;
}

/* =====================================================
   LOGO ANIMATION
   ===================================================== */

.logo {
  width: min(70vw, 420px);
  max-width: 420px;
  min-width: 180px;
  height: auto;
  transform: scale(0.35);
  opacity: 0;
  animation: zoomInLogo 2.8s ease forwards;
}

@keyframes zoomInLogo {
  0% {
    transform: scale(0.35);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* =====================================================
   ACCORDION
   ===================================================== */

.accordion {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 5px;
  overflow: hidden;
}

.accordion input {
  display: none;
}

.accordion-label {
  display: block;
  background: #f0f0f0;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 700;
  position: relative;
}

.accordion-label::before {
  content: '+ ';
  font-size: 18px;
  color: #333;
}

.accordion input:checked + .accordion-label::before {
  content: '- ';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fff;
  padding: 0 10px;

  /* Fix gegen abgeschnittene lange Wörter/URLs */
  overflow-wrap: anywhere;
  word-break: break-word;
}

.accordion-content p,
.accordion-content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.accordion input:checked ~ .accordion-content {
  max-height: 200rem;
  padding: 5px 10px;
}

#cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: auto;
  max-width: calc(100% - 40px);
  display: none;
  z-index: 9999;
  background: transparent;
  padding: 0;
}

.cookie-banner__box {
  width: 420px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  color: #111;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.cookie-banner__box h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.cookie-banner__options {
  margin: 12px 0;
  display: grid;
  gap: 10px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner__actions button {
  cursor: pointer;
  padding: 10px 10px;
  border: 0;
  border-radius: 5px;
}