
/* ========================================
   SCHRIFTARTEN
   ======================================== */

@font-face {
  font-family: "Bai Jamjuree";
  src: url("./fonts/BaiJamjuree-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Bai Jamjuree";
  src: url("./fonts/BaiJamjuree-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Bai Jamjuree";
  src: url("./fonts/BaiJamjuree-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("./fonts/Montserrat[wght].ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Black";
  src: url("./fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ========================================
   MARKENFARBEN UND GRUNDEINSTELLUNGEN
   ======================================== */

:root {
  --brand-white: #ffffff;
  --brand-soft: #f0f0f0;
  --brand-silver: #bfbfbf;
  --brand-charcoal: #5e5e5e;
  --brand-ink: #1a1a1a;
  --brand-gold: #ccaf87;
  --brand-mist: #e7e8ea;
  --brand-muted: #979696;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--brand-soft);
  color: var(--brand-ink);
  font-family: "Bai Jamjuree", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1,
h2,
p {
  margin-top: 0;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
}

input:focus,
textarea:focus {
  outline: none;
}

/* ========================================
   LANDINGPAGE – HINTERGRUND
   ======================================== */

.landing-page {
  min-height: 100vh;
  min-height: 100dvh;
  background-image: url("./background4.jpeg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.landing-layout {
  width: auto;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 35px 100px 35px 24px;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

/* ========================================
   LOGO OBERHALB DES GLAS-CONTAINERS
   ======================================== */


.landing-logo {
  width: 100%;
  margin: 0 0 35px;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}



.landing-logo img {
  display: block;
  width: min(100%, 250px);
  height: auto;
  margin: 0;
}

/* ========================================
   GLAS-CONTAINER
   ======================================== */

.glass-container {
  box-shadow: 15px 15px 25px rgba(0, 0, 0, 0.72);
  width: min(100%, 600px);
  padding: 55px 45px 35px;

  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;

  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* ========================================
   ÜBERSCHRIFTEN
   ======================================== */

#landing-title {
  margin: 0 0 50px;
  font-family: "Bai Jamjuree", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

.landing-contact {
  margin: 0;
}

#contact-title {
  margin: 0 0 20px;
  font-family: "Bai Jamjuree", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--brand-anthrazit);
}

/* ========================================
   KONTAKTFORMULAR
   ======================================== */

.landing-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-form input,
.landing-form textarea {
  width: 100%;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--brand-silver);
  border-radius: 5px;

  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-ink);

  font-family: "Bai Jamjuree", Arial, sans-serif;
  font-size: 15px;
}

.landing-form input {
  height: 42px;
}

.landing-form textarea {
  height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.landing-form input::placeholder,
.landing-form textarea::placeholder {
  color: var(--brand-muted);
  opacity: 1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.form-actions button {
  width: auto;
  padding: 12px 28px;
  border: none;
  border-radius: 5px;

  background: var(--brand-gold);
  color: var(--brand-ink);

  font-family: "Bai Jamjuree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.form-actions button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ========================================
   KONTAKT- UND COPYRIGHTZEILE
   ======================================== */

.landing-footer {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px;

  margin-top: 25px;
  padding: 0;
  border: none;

  font-family: "Bai Jamjuree", Arial, sans-serif;
  font-size: 14px;
  text-align: center;
}


.landing-footer a {
  text-decoration: none;
}

/* Copyright unterhalb des Glas-Containers */

.landing-copyright {
  width: min(100%, 650px);
  margin: 12px 0 0;
  padding: 0;
  text-align: right;

  font-family: "Bai Jamjuree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--brand-ink);
}


/* ========================================
   RECHTLICHE SEITEN
   ======================================== */

/* Nur Impressum und Datenschutz */
body:has(article),
body:has(main > section:not([aria-labelledby])) {
  background-image: none;
  background-color: var(--brand-white);
}

/* Textspalte */
body:has(article) main,
body:has(main > section:not([aria-labelledby])) main {
  width: min(100% - 40px, 700px);
  margin: 0 auto;
}


/* Logo in Impressum und Datenschutz linksbündig */

body:has(article) main > header,
body:has(main > section:not([aria-labelledby])) main > header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding: 40px 0 45px;
}

body:has(article) main > header a,
body:has(main > section:not([aria-labelledby])) main > header a {
  display: block;
  width: fit-content;
  margin: 0;
}

body:has(article) main > header img,
body:has(main > section:not([aria-labelledby])) main > header img {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin: 0;
  transform: translateX(-35px);
}


/* Unteren Footer vollständig entfernen */
body:has(article) > footer,
body:has(main > section:not([aria-labelledby])) > footer {
  display: none;
}

/* Scrollbalken ausblenden, Scrollen erlauben */
html:has(body article),
html:has(body main > section:not([aria-labelledby])) {
  scrollbar-width: none;
}

html:has(body article)::-webkit-scrollbar,
html:has(body main > section:not([aria-labelledby]))::-webkit-scrollbar {
  display: none;
}

/* ========================================
   POPUP-FENSTER
   ======================================== */

#legal-dialog {
  position: fixed;
  width: min(900px, calc(100% - 32px));
  height: min(750px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;

  border: 1px solid var(--brand-mist);
  border-radius: 8px;
  background: var(--brand-white);
  color: var(--brand-ink);
  overflow: hidden;
}

#legal-dialog::backdrop {
  background: rgba(26, 26, 26, 0.65);
}

#legal-dialog[open] {
  display: flex;
  flex-direction: column;
}

/* Kopfbereich ohne Titel und ohne Trennlinie */
.legal-dialog-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 24px 0;
  border: none;
}

/* Titel für Screenreader erhalten */
.legal-dialog-header h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Schließen-Button oben rechts */
#legal-close {
  flex-shrink: 0;
  padding: 10px 18px;
  border: none;
  border-radius: 4px;

  background: var(--brand-ink);
  color: var(--brand-white);
  font-family: "Bai Jamjuree", Arial, sans-serif;
  font-size: 15px;
  cursor: pointer;
}

/* Eingebetteter Rechtstext */
#legal-frame {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 0;
  border: none;
  background: var(--brand-white);
}

/* ========================================
   RESPONSIVE DARSTELLUNG
   ======================================== */

@media (max-width: 900px) {
  .landing-layout {
    padding: 25px 20px;
    align-items: center;
  }

  .landing-logo,
  .glass-container {
    width: 100%;
    max-width: 650px;
  }

  .glass-container {
    padding: 35px 24px 28px;
  }

  #landing-title {
    font-size: 34px;
  }

  .landing-footer {
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  body:has(article) main > header,
  body:has(main > section:not([aria-labelledby])) main > header {
    padding: 40px 0 35px;
  }

  .legal-dialog-header {
    padding: 14px 16px 0;
  }

  #legal-close {
    padding: 9px 12px;
    font-size: 14px;
  }
}

/* Honeypot außerhalb des sichtbaren Bereichs */

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
