/* html-element, globale farben, schriftgrößen abstände, themes, zentrales design */
:root {
  --bg: #f3f1ed;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --text: #1f1f1d;
  --muted: #6d6861;
  --line: rgba(120, 105, 85, 0.22);
  --accent: #8b6f47;
  --dark: #24221f;
}

* {
  box-sizing: border-box;
}

/* sichtbarer inhalt der seite, standard-font, farbe, schrifrart, grundfarbe, layout, abstände */
body {
  overflow-x: hidden;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.8;
  background:
    radial-gradient(circle at top left, rgba(139,111,71,0.16), transparent 34%),
    linear-gradient(135deg, #f7f5f1, #e9e4dc);
  color: var(--text);
  line-height: 1.85; /* Mehr Ruhe im gesamten Text */
}

/* header, logo, titel, navigation, suchleiste, login-button, menü */

.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  min-height: 72vh;
  background-position: center center;
  background-attachment: fixed;
  
  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    linear-gradient(
      rgba(0,0,0,0.28),
      rgba(0,0,0,0.28)
    ),
    url("HofD38.png") center center / cover no-repeat;
}

.subhero {
  position: relative;
  z-index: 0;

  min-height: 320px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px 24px;
  overflow: hidden;

  background:
    linear-gradient(
      rgba(0,0,0,0.35),
      rgba(0,0,0,0.35)
    ),
    url("HofD38.png") center center / cover no-repeat;
}

.hero-overlay {
  width: 100%;
  padding: 30px 24px;

  display: flex;
  justify-content: center;
}

.hero-content,
.subhero-content {
  width: 100%;
  max-width: 1050px;

  padding: 44px 56px;

  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 28px;

  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(1px);

  text-align: center;
  color: white;
 
  min-height: auto;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
    transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    filter 0.45s ease;
}

.hero.hero-scrolled h1,
.hero.hero-scrolled p {
  opacity: 0;
  transform: translateY(-30px);
  filter: blur(8px);
  pointer-events: none;
}

.hero p {
  margin: 18px 0 0;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    filter 0.45s ease;
}

/* elemente innerhalb des headers, logo, titel, navigation, suchleiste, login-button, menü */

header p {
  margin: 18px 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.25em;     /* 👈 viel Luft */
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

p {
  font-size: 1rem;
  color: var(--muted);
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-top: 0;
  margin-bottom: 1.25em;
}

nav {
  position: sticky;
  justify-content: space-evenly;
  top: 0;
  z-index: 20;
  text-align: center;
  padding: 16px 20px;
  background: rgba(255,255,255,0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

nav a {
  margin: 0 18px;
  color: var(--dark);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

nav a:hover {
  color: var(--accent);

}
main {
  position: relative;
  z-index: 2;

  max-width: none;
  margin: 0;

  /* oben 80px, seitlich 24px, unten 24px */
  padding: 80px 24px 24px;

  background: transparent;
}

section {
  margin-bottom: 24px;

  padding:
    28px
    clamp(44px, 6vw, 80px)
    32px;

  min-height: auto;

  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 28px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(3px);

  box-shadow:
    0 24px 70px rgba(0,0,0,0.12);
}

section:last-child {
  margin-bottom: 0;
  min-height: 0;
}

#kontakt {
  min-height: auto;
  padding-bottom: 40px;
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 300;

  letter-spacing: 0.04em;
  line-height: 1.25;

  margin-top: 0;
  margin-bottom: 20px;

  color: var(--text);

  word-wrap: break-word;
  overflow-wrap: break-word;
}

h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notice {
  max-width: 900px;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.85;
  color: var(--muted); /* Hochwertiger Intro-Text */
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}

.contact-box {
  padding: 34px;
  height: 100%;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass-strong);
  box-shadow: 0 16px 40px rgba(40, 34, 25, 0.06);
  margin-bottom: 0px;
  padding-bottom: 34px;
  line-height: 1.9;
}

.contact-form {
  margin-top: 32px;
  width: 100%;
  max-width: none;

  padding: 34px;

  border-radius: 24px;
  background: var(--glass-strong);
  border: 1px solid var(--line);

  box-shadow: 0 16px 40px rgba(40, 34, 25, 0.06);
}

.contact-form label {
  display: block;
  margin-bottom: 22px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.contact-form button {
  display: block;

  /* überschreibt margin-top: 24px und schiebt den Button ganz nach rechts */
  margin: 24px 0 0 auto;

  padding: 16px 28px;

  background: transparent;
  color: var(--text);

  border: 1px solid var(--line);
  border-radius: 6px;

  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  cursor: pointer;
  transition: all 0.25s ease;
}

.contact-form button:hover {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 16px 18px;

  border-radius: 14px;
  border: 1px solid var(--line);

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);

  font: inherit;
  color: var(--text);
}

.form-success {
  margin-top: 20px;
  padding: 16px 20px;

  border-radius: 14px;
  background: rgba(120, 160, 120, 0.15);
  border: 1px solid rgba(120, 160, 120, 0.3);

  color: #3f5f3f;
  font-size: 0.9rem;

  display: none; /* 👈 erstmal unsichtbar */
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(139,111,71,0.35);
}

a:hover {
  border-bottom-color: var(--accent);
}

 /*
.impressum-page main {
  padding-bottom: 0;
}

.impressum-page section:last-child {
  margin-bottom: 0;
  min-height: auto;
  padding-bottom: 32px;
}
*/

footer {
  padding: 22px 20px;
  text-align: center;
  color: #d8d2c9;
  background: rgba(36,34,31,0.92);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
  margin-top: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

footer a {
  color: #eee8dd;
}

@media (max-width: 720px) {
  header {
    min-height: 320px;
  }

  header > div {
    padding: 30px 24px;
  }

  nav a {
    display: inline-block;
    margin: 8px 10px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}