/* ================================
   Fonts
================================== */
@font-face {
  font-family: "Baskerville";
  src: url("./fonts/Baskerville-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Akkurat Black";
  src: url("./fonts/AkkuratLLWeb-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ================================
     Design Tokens
  ================================== */
:root {
  /* Fonts */
  --font-serif: "Baskerville", serif;
  --font-sans: "Akkurat Pro", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  --font-black: "Akkurat Black", var(--font-sans);

  /* Colors */
  --c-text: #282828;
  --c-text-soft: #333333;
  --c-border: #000;
  --c-accent: #f7632d;
  --c-white: #fff;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-10: 50px;
  --radius-sm: 6px;

  /* Typography (Desktop ≥1550px) */
  --fs-hero: 50px;
  --fs-hero-sub: 28px;
  --fs-h1: 50px;
  --fs-h3: 22px;
  --fs-body: 16px;
  --fs-small: 12px;

  /* Layout */
  --grid-max: 1320px;
  --grid-pad: 15px;
}

/* ================================
     Base
  ================================== */
html,
body {
  height: 100%;
}

html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  color: var(--c-text);
  background: #fff;
  display: block; /* statt flex + justify:start */
}

body::before,
body::after {
  background: transparent;
  content: none;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #00000050;
  backdrop-filter: blur(30px);
  z-index: 9999;
  display: none;
}

.overlay-menu {
  position: fixed;
  top: 60px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 99999;
}

.overlay-close {
  width: 40px;
  height: 40px;
  background: #a2a2a243;
  backdrop-filter: blur(30px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.overlay-close img {
  width: 20px;
  height: 20px;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.overlay-item {
  height: 40px;
  width: 219px;
  background: #a2a2a243;
  backdrop-filter: blur(30px);
  border-radius: 44px;
  color: white;
  font-family: "Akkurat Pro", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 1.05px;
  display: flex;
  align-items: center;
  padding-left: 16px;
  cursor: pointer;
}
/* ================================
     Grid & Generic
  ================================== */
.grid-stack {
  width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--grid-pad);
}

.grid-stack-item-content {
  padding: var(--grid-pad);
}

/* .tile-style-16 .section-top,
.tile-style-24 .section-top,
.tile-style-30 .section-top,
.tile-style-37 .section-top{
  width: 80% !important;
} */

/* ================================
     Tiles / Hover
  ================================== */
.tile-style-38:hover {
  background-color: var(--c-accent) !important;
  cursor: pointer;
}

.tile-style-37:hover {
  background-color: #ffffff60 !important;
  cursor: pointer;
}

/* ================================
     Sections
  ================================== */
.section-top p {
  border-bottom: 0.5px solid var(--c-border);
  padding-bottom: var(--space-1);
  margin: 0 0 var(--space-3);
  letter-spacing: 1.03px;
}

.section-mid {
  margin-top: var(--space-10);
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}

.section-mid::-webkit-scrollbar {
  /* WebKit */
  display: none;
}

/* Datenschutz / Textseiten */
.tile-style-31 .section-mid,
.tile-style-30 .section-mid {
  max-width: 700px;
  overflow-y: auto;
  scrollbar-width: none;
}

.tile-style-31 .section-mid::-webkit-scrollbar,
.tile-style-30 .section-mid::-webkit-scrollbar {
  display: none;
}

.tile-style-31 h1,
.tile-style-30 h1,
.tile-style-16 h1 {
  font-family: var(--font-black);
  font-weight: 900;
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.02px;
  color: var(--c-text);
  margin: 0 0 var(--space-4);
}

.tile-style-31 .section-mid p,
.tile-style-30 .section-mid p,
.tile-style-16 .section-mid p {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: 0.02px;
  color: var(--c-text);
  margin: 0 0 var(--space-3);
}

.tile-style-31 h6,
.tile-style-30 h6 {
  font-family: "Akkurat Pro";
  font-weight: 700;
  font-size: 20px;
  text-transform: none;
  padding: var(--space-3) 0;
  margin: 0;
}

.tile-style-16 {
  padding-right: var(--space-10);
}

/* ================================
     Kontakt
  ================================== */
.contact-address-container {
  display: flex;
  gap: var(--space-8);
  font-family: var(--font-sans);
  align-items: flex-start;
}

.address-block,
.contact-block {
  flex: 1 1 0;
  min-width: 0;
}

.address-block h3,
.contact-block h3 {
  border-top: 5px solid var(--c-border);
  padding-top: var(--space-1);
  margin: 0 0 var(--space-3);
  font-family: var(--font-black);
  font-weight: 900;
  font-size: var(--fs-h3);
  line-height: 1.4;
  letter-spacing: -0.01px;
}

.address-block p,
.contact-block ul {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px; /* bewusst leicht kleiner als body */
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02px;
  color: var(--c-text-soft);
}

.contact-block ul {
  list-style: none;
  padding: 0;
}

.contact-block li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.contact-block a {
  color: inherit;
  text-decoration: underline;
}

.contact-block a:hover {
  text-decoration: none;
}

/* ================================
     Feature-Liste
  ================================== */
.features-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 1rem;
  height: 100%;
  padding: var(--space-1);
  gap: var(--space-2);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 11px;
}

.feature-item span {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-small);
  line-height: 1.1;
  letter-spacing: -0.02em; /* % -> em korrigiert */
  color: rgba(40, 40, 40, 1);
}

.feature-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Beispiel-Icon-Styles – falls SVG oder Icon-Font verwendet wird */
.icon {
  display: inline-block;
  /* width: 1em;
  height: 1em; */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-mail {
  background-image: url("icons/mail.svg");
}
.icon-phone {
  background-image: url("icons/phone.svg");
}
.icon-instagram {
  background-image: url("icons/instagram.svg");
}

/* ================================
     Hero / Carousel
  ================================== */
#backgroundCarousel {
  position: fixed;
  inset: 0;
  z-index: -1; /* hinter allem */
  overflow: hidden;
  transition: filter 0.3s ease-in-out;
}

#backgroundCarousel img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.carousel-item {
  position: relative;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 999999;
  background: rgba(0, 0, 0, 0.62);
  padding: 4px;
  height: 48px;
  width: 48px;
  border-radius: 36px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 1;
  position: fixed !important;
  top: 50%;
  display: none;
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: url("./icons/mobile_menu_back.svg") !important;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 25px;
  padding: 8px !important;
}

.carousel-control-next-icon {
  transform: rotate(180deg);
  margin-left: -2px;
}

.carousel-control-prev-icon {
  margin-right: -3px;
}

.hero-text {
  position: absolute;
  top: 30px;
  left: 30px;
}

.hero-text h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 0.95;
  letter-spacing: -0.02px;
  color: var(--c-white);
}

.hero-text2 {
  display: flex;
  position: absolute;
  top: 30px;
  left: 60%;
  transform: rotate(0deg);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-hero-sub);
  line-height: 1;
  letter-spacing: -0.02px;
  color: var(--c-white);
}

.img-gradiant {
  position: absolute;
  left: 0;
  top: 0;
  height: 220px;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

/* ================================
     Misc
  ================================== */
#svgCorner {
  height: 104px;
  width: 104px;
}
#contactToggle {
  display: none;
}

/* ================================
     Responsive: ≤ 1550px
     (Schriftgrößen & Layout-Anpassungen)
  ================================== */
@media (max-width: 1550px) {
  :root {
    /* Skaliere Typografie leicht ab */
    --fs-hero: clamp(34px, 4.2vw, 44px);
    --fs-hero-sub: clamp(18px, 2.2vw, 24px);
    --fs-h1: clamp(28px, 3vw, 40px);
    --fs-h3: clamp(16px, 1.6vw, 20px);
    --fs-body: clamp(14px, 1.1vw, 15px);
    --fs-small: clamp(9px, 0.95vw, 10px);

    /* Layout enger */
    --grid-max: 1100px;
    --grid-pad: 12px;

    /* Abstände etwas reduzieren */
    --space-8: 32px;
    --space-10: 40px;
  }

  .feature-icon {
    width: 18px;
    height: 18px;
  }

  .contact-address-container {
    gap: var(--space-8);
    flex-wrap: wrap;
  }

  .tile-style-16 {
    padding-right: 32px;
  }

  .hero-text {
    top: 24px;
    left: 24px;
  }
  .hero-text2 {
    top: 24px;
    left: 58%;
  }
}

/* ================================
     Optional: weitere kleinere Screens
     (falls gewünscht)
  ================================== */
@media (max-width: 900px) {
  :root {
    --grid-max: 720px;
    --grid-pad: 10px;
  }

  .contact-address-container {
    flex-direction: column;
    gap: 20px;
  }

  .hero-text2 {
    left: auto;
    right: 24px; /* verhindert Überlappung */
  }

  .tile-style-16 {
    padding-right: 0;
  }

  .hero-text,
  .hero-text2 {
    display: none !important;
  }

  #registerForm,
  #htmlRequest {
    width: 100%;
    max-width: 100%;
    padding: 0 var(--grid-pad);
  }

  #htmlRequest form {
    width: 100%;
  }

  input[type="date"]::before,
  input[type="time"]::before {
    content: attr(placeholder);
    color: #00000040; /* graue Schrift wie Placeholder */
    position: absolute;
    pointer-events: none;
  }

  input[type="date"]:not(:valid),
  input[type="time"]:not(:valid) {
    color: transparent;
  }

  input[type="date"]:focus::before,
  input[type="date"]:valid::before,
  input[type="time"]:focus::before,
  input[type="time"]:valid::before {
    content: "";
  }

  .mobile-menu-help {
    visibility: hidden;
  }

  /* #backgroundCarousel {
    filter: saturate(0) brightness(0.3) !important;
  } */
}
