/* Gemeinsame Gestaltung der öffentlichen Seiten (Startseite, Tester-Seite) — Rahmen aus includes/oeffentlich.php */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --red: #C0392B; --red-dark: #922B21; --red-soft: #FBEDEB; --orange: #E67E22;
  --paper: #FBFAF7; --warm: #F4F0E9; --ink: #1A1410; --text: #2C2416; --muted: #6B5F52;
  --line: #E6E0D6; --xl: #1D6F42; --gruen: #1E7B45; --gruen-soft: #E7F4EC;
}
body { margin: 0; font-family: 'DM Sans', sans-serif; background: var(--paper); color: var(--text); font-size: 16px; line-height: 1.55; }
a { color: var(--red); }
.w { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
h1, h2 { font-family: 'DM Serif Display', serif; font-weight: 400; color: var(--ink); line-height: 1.1; margin: 0; }
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; padding: 0.8rem 1.4rem; border-radius: 8px; background: var(--red); color: #fff; }
.btn:hover { background: var(--red-dark); }
.btn-hell { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-hell:hover { background: var(--warm); }

/* Kopf */
header { position: sticky; top: 0; z-index: 20; background: rgba(251,250,247,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand b { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, var(--red), var(--orange)); color: #fff; font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.brand span { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--ink); }
.menu { display: flex; align-items: center; gap: 0.2rem; font-size: 15px; }
.menu a, .menu button { font: inherit; background: none; border: 0; cursor: pointer; text-decoration: none; color: var(--text); padding: 0.45rem 0.8rem; border-radius: 6px; }
.menu a:hover, .menu button:hover { background: var(--warm); }
.menu .login { border: 1px solid var(--line); margin-left: 0.4rem; }
.menu .test { background: var(--red); color: #fff; }
.menu .test:hover { background: var(--red-dark); }

/* Fuß */
footer { padding: 1.6rem 0 2rem; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
footer .w { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer nav { display: flex; gap: 1.3rem; }
footer a, footer button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); text-decoration: none; }
footer a:hover, footer button:hover { color: var(--red); }

/* Kontakt-Fenster */
dialog { width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 30px 80px rgba(0,0,0,0.3); }
dialog::backdrop { background: rgba(26,20,16,0.55); }
.dlg-kopf { display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 1.6rem 0; }
.dlg-kopf h2 { font-size: 1.7rem; }
.zu { font-size: 26px; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--muted); }
dialog form { padding: 1rem 1.6rem 1.6rem; }
.zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
dialog label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 0.25rem; }
.feld { margin-bottom: 0.8rem; }
dialog input[type=text], dialog input[type=email], dialog input[type=tel], dialog select, dialog textarea { width: 100%; font: inherit; font-size: 15px; padding: 0.6rem 0.8rem; border: 1px solid #D8D0C4; border-radius: 8px; background: var(--paper); color: var(--text); }
dialog input:focus, dialog select:focus, dialog textarea:focus { outline: 2px solid rgba(192,57,43,0.25); border-color: var(--red); }
dialog textarea { min-height: 110px; resize: vertical; }
.einw { display: flex !important; gap: 0.6rem; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 0.3rem 0 1.1rem; font-weight: 400 !important; }
.einw input { margin-top: 0.2rem; accent-color: var(--red); }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 1rem; font-size: 15px; }
.meldung.ok { background: var(--gruen-soft); color: var(--gruen); }
.meldung.fehler { background: var(--red-soft); color: var(--red-dark); }
.direkt { font-size: 14px; color: var(--muted); margin: 0.9rem 0 0; }

@media (max-width: 680px) {
  .menu .weg { display: none; }
  .zeile { grid-template-columns: 1fr; }
}
