:root {
  --gelb: #f5d400;        /* Gelb aus dem Logo */
  --gelb-dunkel: #e0c000;
  --text: #1f1d1a;
  --text-leise: #6b655c;
  --holz: #f6f1e9;        /* warmes, helles Holz-Weiß */
  --linie: #e4dccf;
}

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

html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--holz);
}

a { color: inherit; }

/* ---------- Bild ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: url("images/bg.jpg") 70% center / cover no-repeat;
  /* das Originalfoto ist stark abgedunkelt – hier aufhellen und wärmer machen */
  filter: brightness(1.45) saturate(1.35) contrast(1.05);
  position: sticky;
  top: 0;
}

/* ---------- Inhalt ---------- */
.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(1.5rem, 5vw, 5rem);
  max-width: 40rem;
}

.logo {
  width: 120px;
  height: auto;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 3px;
  margin-right: .75rem;
  vertical-align: middle;
  background: var(--gelb);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.lead {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: var(--text-leise);
}

/* Kontakt-Buttons */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 2rem;
}
.btn {
  display: flex;
  flex-direction: column;
  padding: .9rem 1.1rem;
  border: 2px solid var(--text);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn .label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
}
.btn-primary { background: var(--gelb); border-color: var(--gelb); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); background: #fff; }
  .btn-primary:hover { background: var(--gelb-dunkel); border-color: var(--gelb-dunkel); }
}

address {
  font-style: normal;
  color: var(--text-leise);
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
}
address strong { color: var(--text); }
address a { font-weight: 600; color: var(--text); text-decoration-color: var(--gelb); text-decoration-thickness: 2px; text-underline-offset: 3px; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-top: 3rem;
  font-size: .85rem;
  color: var(--text-leise);
}
footer nav { display: flex; gap: 1.25rem; }
footer a { text-decoration: none; padding: .5rem 0; }
footer a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--gelb); text-decoration-thickness: 2px; }

/* ---------- Impressum / Datenschutz (Overlay per :target, kein JS) ---------- */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  padding: 2rem 1rem;
  overflow-y: auto;
  background: rgba(31, 29, 26, .55);
  overscroll-behavior: contain;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
/* Seite dahinter nicht mitscrollen, solange ein Overlay offen ist */
html:has(.overlay:target) { overflow: hidden; }
.overlay:target {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.panel {
  position: relative;
  width: 100%;
  max-width: 42rem;
  margin: auto 0;
  padding: 2.5rem 2rem 2rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.panel h2 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 800;
}
.panel h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: .5rem;
  background: var(--gelb);
}
.panel h3 { margin: 1.75rem 0 .4rem; font-size: 1.05rem; }
.panel ul { padding-left: 1.25rem; }
.panel a { text-decoration-color: var(--gelb); text-decoration-thickness: 2px; }
.panel .small { font-size: .8rem; color: var(--text-leise); }
.panel p, .panel li { overflow-wrap: break-word; hyphens: auto; }

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--holz);
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
}
.close:hover { background: var(--gelb); }

/* ---------- Handy / Tablet ---------- */
@media (max-width: 860px) {
  body { grid-template-columns: 1fr; min-height: 0; }
  .hero {
    min-height: 0;
    height: clamp(200px, 40svh, 460px);
    position: static;
  }
  .content {
    padding: 2rem max(1.25rem, env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    max-width: 40rem;
    margin: 0 auto;
    width: 100%;
  }
  .logo {
    width: 96px;
    margin: -4.25rem 0 1.5rem;
    position: relative;   /* sonst liegt das Bild (wegen filter) darüber */
    z-index: 1;
    padding: .75rem;
    background: var(--holz);
    border-radius: 12px;
    box-sizing: content-box;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
  }
  .lead { font-size: 1.05rem; }
  .lead br { display: none; }
  footer { margin-top: 2rem; }
}

@media (max-width: 600px) {
  .contact { grid-template-columns: 1fr; }
  .btn { padding: 1rem 1.1rem; }
  .btn > span:last-child { font-size: 1.05rem; }

  /* Overlay als Vollbild-Blatt */
  .overlay { padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .panel {
    min-height: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: max(.75rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  }
  /* Schließen-Knopf bleibt beim Scrollen sichtbar */
  .close {
    position: sticky;
    top: max(.75rem, env(safe-area-inset-top));
    z-index: 1;
    margin: 0 0 .5rem auto;
    width: 2.75rem;
    height: 2.75rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
  }
  .panel h2 { font-size: 1.5rem; }
}

/* Handy quer: Bild nicht zu hoch */
@media (max-width: 860px) and (orientation: landscape) and (max-height: 500px) {
  .hero { height: 55svh; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
