/* Farben und Grundwerte – hier lässt sich das Erscheinungsbild zentral anpassen */
:root {
  --bg: #faf6f1;
  --bg-alt: #f1e9df;
  --surface: #ffffff;
  --text: #2b2a28;
  --muted: #6b665f;
  --primary: #2f6b62;
  --primary-dark: #22524b;
  --accent: #c8714f;
  --border: #e2d8cc;
  --success-bg: #e6f2ee;
  --error: #b3402a;
  --error-bg: #fbeae5;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(60, 40, 20, .07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; font-weight: 600; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.muted { color: var(--muted); font-weight: normal; }

/* Kopfzeile */
.topbar { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--text); text-decoration: none; }
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav a:not(.btn) { color: var(--text); text-decoration: none; font-size: .95rem; }
@media (max-width: 520px) { .topnav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-block; border: 2px solid var(--primary); background: var(--primary); color: #fff;
  padding: 12px 22px; border-radius: 999px; font: 600 1rem var(--font); text-decoration: none;
  cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 7px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-outline { background: var(--surface); color: var(--primary); }
.btn-outline:hover, .btn-outline.is-active { background: var(--primary); color: #fff; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .02em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-photo img, .photo-placeholder { border-radius: 50% 50% var(--radius) var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.photo-placeholder { background: linear-gradient(135deg, var(--bg-alt), #e7d6c4); display: grid; place-items: center; color: var(--muted); }
@media (max-width: 760px) {
  .hero { padding: 32px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { order: -1; max-width: 220px; }
}

/* Abschnitte */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 640px; margin-bottom: 32px; }

/* Kacheln */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.tile, .plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.tile p, .plan p { color: var(--muted); flex: 1; }
.tile-icon { font-size: 1.8rem; margin-bottom: 8px; }

/* Preisoptionen */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plan-featured { border: 2px solid var(--primary); }
.plan-price { font-family: var(--font-serif); font-size: 1.6rem; color: var(--text) !important; flex: 0 !important; }
.hint { color: var(--muted); font-size: .92rem; margin-top: 16px; }

/* Formular */
.form { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin: 0 0 22px; border: 0; padding: 0; }
.field > label, legend { display: block; font-weight: 600; margin-bottom: 8px; }
input[type=email], input[type=text], textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font: inherit; background: #fff; color: var(--text);
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 107, 98, .15); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: 999px; padding: 8px 14px; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--success-bg); }
.choice input { accent-color: var(--primary); margin: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); font-weight: normal !important; }
.consent input { margin-top: 5px; accent-color: var(--primary); flex-shrink: 0; width: 18px; height: 18px; }
.has-error input[type=email], .has-error input[type=text] { border-color: var(--error); }
.error { color: var(--error); font-size: .9rem; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.input-euro { display: flex; align-items: center; gap: 10px; }
.input-euro input { max-width: 140px; }
.input-euro span { color: var(--muted); }
.package { background: var(--surface); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 8px; margin-bottom: 20px; }

/* Hinweise */
.notice { border-radius: var(--radius); padding: 22px 24px; margin-bottom: 24px; }
.notice-success { background: var(--success-bg); }
.notice-error { background: var(--error-bg); color: var(--error); }
.notice h1, .notice h2 { color: var(--text); }

/* Textseiten */
.prose h2 { font-size: 1.25rem; margin-top: 1.6em; }

/* Fußzeile */
.footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.footer-note { flex-basis: 100%; order: 3; }
.footer nav { display: flex; gap: 18px; }
.footer a { color: var(--muted); }

/* Admin */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat-value { font-size: 1.8rem; font-weight: 700; font-family: var(--font-serif); }
.stat-label { color: var(--muted); font-size: .88rem; }
.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; overflow-x: auto; }
.card h2 { font-size: 1.15rem; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--primary); border-radius: 4px; min-width: 2px; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--bg-alt); padding: 10px 12px; border-radius: 8px; word-break: break-all; display: block; }
