:root {
  --theim-black: #1A1A18;
  --theim-red: #FF6978;
  --theim-grey: #494949;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --focus-color: var(--theim-red);
  --focus-width: 2px;
  --focus-offset: 3px;
}

@font-face {
  font-family: 'Roobert';
  src: url('../fonts/Roobert-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roobert';
  src: url('../fonts/Roobert-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
.safe-top-cover {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--safe-top); /* exakt die Notch-/Statusleistenhöhe */
    background: var(--theim-black); /* passt optisch zu .header-bg */
    pointer-events: none; /* blockiert nichts */
    z-index: 10000; /* liegt über allem, aber dünn */
}
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Roobert', sans-serif;
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: auto;
}
body:not(.vertical-ready) {
  overflow-y: hidden;
}
*, *::before, *::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
/* Tastatur-Nutzung → alle fokussierten UI-Elemente bekommen eine Outline */
body.using-keyboard
:where( a[href], button, input, textarea, select, summary, [role="button"], [role="link"], [tabindex] ):focus {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

/* Optional: Maus-/Touch-Nutzung → kein Fokusstil nötig */
body:not(.using-keyboard)
:where( a[href], button, input, textarea, select, summary, [role="button"], [role="link"], [tabindex] ):focus {
  outline: none;
}

/* Deutlicher Fokus-Stil für fokussierte Überschriften (z. B. nach Skip-Link) */
body.using-keyboard h1:focus {
  outline: 3px solid var(--theim-red);
  outline-offset: 6px;
}

.background {
  background: url("../pictures/shared/theim_hg.png") no-repeat center center;
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}
.logo-link {
  position: fixed;
  top: 50px;
  left: 50px;
  width: 250px;
  z-index: 100;
  display: inline-block;
  mix-blend-mode: difference;
  filter: grayscale(100%);
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

.header-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 130px; /* oder z. B. 100px je nach Bedarf */
  background-color: var(--theim-black);
  z-index: 99;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

  /* Variante für Tastaturfokus */
  .visually-hidden.focusable:focus {
    left: 1rem; /* im sichtbaren Bereich */
    width: auto;
    height: auto;
    margin: 0; /* kein Layout-Schub mehr */
    padding: 0.5rem 1rem;
    background-color: var(--theim-black);
    color: #fff;
    font-weight: bold;
    z-index: 1000;
    overflow: visible;
    text-decoration: none;
    border-radius: 4px;
  }

h1,
.h2-xl {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: white;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: white;
}

h4 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: white;
}
.headline-xxl {
    font-size: clamp(3rem, 5vw, 8rem);
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 1rem;
}
.flush-top {
  margin-top: 0;
}
p {
  font-family: 'Roobert', sans-serif;
  font-weight: normal;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.3;
  color: white;
  margin-bottom: 1.5rem;
}
.text-dark {
  color: var(--theim-black);
}
.text-red {
    color: var(--theim-red);
}
:is(.content, .overlay__content) ul,
:is(.content, .overlay__content) ol {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

:is(.content, .overlay__content) ul {
  list-style: disc;
}

    /* LI: Typo & Abstand zwischen Punkten */
  :is(.content, .overlay__content) ul li,
  :is(.content, .overlay__content) ol li {
    font-family: 'Roobert', sans-serif;
    font-weight: normal;
    font-size: clamp(1rem, 1.1vw, 1.2rem);
    line-height: 1.5;
    color: white; /* Overlay ist dunkel → weißer Text */
    margin-bottom: 1rem;
  }

.link-style {
  color: white;
  text-decoration: none;
  margin-bottom: 0.3rem;
  display: block;
  transition: color 0.3s ease;
}

.link-style:hover {
  color: var(--theim-red);
  text-decoration: underline;
}
.swipe-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--theim-red);
    padding: 5rem 1.2rem;
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    animation: fade-in-out 1.2s ease-in-out infinite;
    z-index: 800;
    pointer-events: none;
    white-space: nowrap;
}

.full-bleed{
  width: 100svw;
  margin-left: calc(50% - 50svw);
  margin-right: calc(50% - 50svw);
  padding-inline: 0; /* Container-Padding neutralisieren */
}

#wrapper {
  width: 100vw;
  min-height: 100vh;
  overflow: visible;
}

.content {
  max-width: clamp(320px, 90vw, 720px);
  margin: 5rem auto 0 auto;
  padding: 2rem 1rem;
  overflow: visible;
}

.footer {
  padding: 2rem 2rem;
  width: 100%;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  font-size: 1.1rem;
  min-height: 200px;
  margin-top: 0;
}

.footer-left {
  margin-left: 1.5rem;
}

  .footer-left a {
    margin-right: 1rem;
    display: inline-block;
  }

  .footer-left img {
    width: 42px;
    height: 42px;
    transition: transform 0.2s ease;
  }

    .footer-left img:hover {
      transform: scale(1.1);
    }

/* Rechter Block --------------------------------------------------- */

.footer-right {
  /* Block sitzt rechts im Footer, aber mit Abstand zur Contact-Bubble */
  margin-right: 10rem;
  text-align: left;
}

  /* Links + Button im Footer optisch gleich behandeln */
  .footer-right a,
  .footer-right button.link-style {
    color: white;
    text-decoration: none;
    font-size: clamp(1rem, 1.1vw, 1.2rem);
    margin-bottom: 0.3rem;
    display: block;
    transition: color 0.3s ease;
    /* Button-Chrome entfernen */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
  }

    /* Hover-Zustand für beide */
    .footer-right a:hover,
    .footer-right button.link-style:hover {
      color: var(--theim-red);
      text-decoration: underline;
    }

/* Container für Rechts-Navigation (Impressum, AGB, Datenschutz + Cookie-Settings) */
.footer-legal {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

/* Erste Zeile: Impressum | AGB | Datenschutz */
.footer-legal__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-start;
}

.footer-legal a {
  white-space: nowrap;
}

.footer-sep {
  pointer-events: none;
}

/* Copyright-Zeile – mit Abstand zum Kontakt-Button rechts */
.footer-right p {
  margin: 0.8rem 0 0.3rem 0;
  text-align: left;
}


/* Breakpoint 1: grosse Desktops */
@media (max-width: 1400px) {
  .footer {
    min-height: 160px;
  }
    .swipe-hint {
        font-size: 2.5rem;
        padding-bottom: 4rem;
    }
}

/* Breakpoint 2: kleinere Desktops / große Tablets (≤1200px) */
@media (max-width: 1200px) {
  .logo-link {
    width: 230px;
  }
  .footer-right {
    margin-right: 8rem;
  }
}

/* Breakpoint 3: Tablets quer (≤992px) */
@media (max-width: 992px) {
  .logo-link {
    top: 40px;
    left: 40px;
    width: 200px;
  }
  .footer {
    min-height: 140px;
  }
  .footer-right {
    margin-right: 6rem;
  }
    .swipe-hint {
        font-size: 2.2rem;
        padding-bottom: 10rem;
    }
}

/* Breakpoint 4: Tablets hoch / große Smartphones (≤768px) */
@media (max-width: 768px) {
  .logo-link {
    top: 35px;
    left: 35px;
    width: 180px;
  }
  .header-bg {
    opacity: 1;
  }
  .content {
    max-width: 620px;
    padding: 0 2rem;
  }
  .footer {
    min-height: 120px;
  }
  .footer-right {
    margin-right: 5rem;
  }
    .swipe-hint {
        padding-bottom: 7rem;
    }
}

/* Breakpoint 5: Smartphones (≤576px) */
@media (max-width: 576px) {
  .logo-link {
    top: 25px;
    left: 25px;
    width: 160px;
  }
  .header-bg {
	height: 100px;
  }
  .content {
    max-width: 500px;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .footer-left {
    margin-left: 0;
  }

  .footer-left a {
    margin: 0 0.5rem;
  }

  .footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-right: 0;
    text-align: center;
  }

    footer-right a,
    .footer-right button.link-style {
      text-align: center;
    }

  .footer-legal {
    align-items: center;
  }

  .footer-legal__row {
    flex-direction: column;
    align-items: center;
  }

  .footer-sep {
    display: none;
  }

  .footer-right p {
    margin: 0.5rem 0 0 0;
    text-align: center;
  }
    .swipe-hint {
        font-size: 2rem;
        padding-bottom: 6rem;
    }
}

/* Breakpoint 6: sehr schmale Smartphones */
@media (max-width: 420px) {
    .content {
        max-width: 320px;
        padding: 0;
    }
  .header-bg {
	height: 95px;
  }
    .swipe-hint {
        font-size: 1.7rem;
        padding-bottom: 5rem;
    }
}

/* Zeige nur auf Touch-Geräten bis 768px */
@media (hover: none) and (pointer: coarse) {
    .swipe-hint {
        opacity: 1;
        visibility: visible;
    }
}

/* Animation */
@keyframes fade-in-out {
    0%, 100% {
        opacity: 0;
    }

    30%, 70% {
        opacity: 1;
    }
}
