/*
Theme Name: BeraterPro
Theme URI: https://example.at
Author: [Ihr Name]
Description: Schlankes, DSGVO-freundliches Theme für Unternehmensberater in Österreich. Ohne externe Schriften und Tracker, mit Kontaktformular (Honeypot) und vorbereitetem Mitgliederbereich.
Version: 1.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: beraterpro
*/

/* ==== Grundgerüst – Systemschriften, keine externen Requests (DSGVO) ==== */
:root {
  --petrol: #1f4e5f;
  --petrol-dunkel: #143540;
  --tinte: #22282b;
  --grau: #5c6a70;
  --linie: #dde4e6;
  --papier: #fbfaf7;
  --akzent: #c47b3d;
  --akzent-hell: #f4e8dc;
  --radius: 6px;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--papier);
}

.inhalt-breite { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.text-breite { max-width: 760px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.25; color: var(--petrol-dunkel); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.2em; }
h3 { font-size: 1.15rem; }
a { color: var(--petrol); }
a:hover { color: var(--akzent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--akzent); outline-offset: 2px;
}

/* ==== Kopfbereich ==== */
.seiten-kopf {
  background: #fff;
  border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 50;
}
.kopf-innen {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 24px; max-width: 1080px; margin: 0 auto;
}
.logo { font-size: 1.2rem; font-weight: 700; color: var(--petrol-dunkel); text-decoration: none; }
.logo span { color: var(--akzent); }

.hauptmenue ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.hauptmenue a {
  display: block; padding: 8px 14px; text-decoration: none;
  color: var(--tinte); border-radius: var(--radius); font-size: 0.95rem;
}
.hauptmenue a:hover { background: var(--akzent-hell); color: var(--petrol-dunkel); }
.hauptmenue .current-menu-item > a { color: var(--petrol); font-weight: 600; }

/* ==== Startseite / Hero ==== */
.hero {
  background: linear-gradient(160deg, var(--petrol-dunkel) 0%, var(--petrol) 70%);
  color: #fff; padding: 72px 0 80px;
}
.hero h1 { color: #fff; margin: 0 0 0.4em; }
.hero .untertitel { font-size: 1.2rem; color: #d8e4e9; max-width: 620px; margin: 0 0 1.8em; }
.hero .kicker {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--akzent-hell); margin-bottom: 1.2em;
}

.knopf {
  display: inline-block; background: var(--akzent); color: #fff !important;
  padding: 13px 26px; border-radius: var(--radius); text-decoration: none;
  font-weight: 600; border: none; font-size: 1rem; cursor: pointer;
}
.knopf:hover { background: #a96430; }
.knopf-neben {
  display: inline-block; margin-left: 12px; color: #fff !important;
  text-decoration: underline; text-underline-offset: 4px;
}

/* ==== Leistungs-Karten ==== */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 40px 0; padding: 0; list-style: none; }
.karte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 26px; border-top: 3px solid var(--petrol);
}
.karte h3 { margin-top: 0; }
.karte p { color: var(--grau); margin-bottom: 0; }

/* ==== Inhaltsseiten ==== */
.seiten-inhalt { padding: 48px 0 72px; }
.seiten-inhalt img { max-width: 100%; height: auto; border-radius: var(--radius); }
.eintrag-titel { margin-bottom: 0.3em; }

/* ==== Formulare ==== */
.bp-formular { max-width: 620px; }
.bp-feld { margin-bottom: 18px; }
.bp-feld label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.bp-feld input[type="text"],
.bp-feld input[type="email"],
.bp-feld input[type="tel"],
.bp-feld textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #b9c6cb;
  border-radius: var(--radius); font: inherit; background: #fff; color: var(--tinte);
}
.bp-feld textarea { min-height: 160px; resize: vertical; }
.bp-zustimmung { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--grau); }
.bp-zustimmung input { margin-top: 4px; }

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.bp-webseite-feld {
  position: absolute !important; left: -9999px !important;
  height: 1px; width: 1px; overflow: hidden;
}

.bp-hinweis { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; }
.bp-hinweis-ok { background: #e7f3ea; border: 1px solid #9ec9a8; color: #1e5631; }
.bp-hinweis-fehler { background: #fbeaea; border: 1px solid #d9a0a0; color: #7a1f1f; }

/* ==== Mitgliederbereich ==== */
.mitglieder-sperre {
  background: #fff; border: 1px solid var(--linie); border-left: 4px solid var(--akzent);
  border-radius: var(--radius); padding: 32px; max-width: 560px; margin: 32px 0;
}
.mitglieder-sperre h2 { margin-top: 0; }
.mitglieder-sperre .login-username label,
.mitglieder-sperre .login-password label { display: block; font-weight: 600; margin-bottom: 6px; }
.mitglieder-sperre input[type="text"],
.mitglieder-sperre input[type="password"] {
  width: 100%; padding: 12px 14px; border: 1px solid #b9c6cb;
  border-radius: var(--radius); font: inherit; margin-bottom: 14px;
}
.mitglieder-sperre input[type="submit"] {
  background: var(--petrol); color: #fff; border: none; padding: 12px 24px;
  border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer;
}
.mitglieder-sperre input[type="submit"]:hover { background: var(--petrol-dunkel); }
.mitglieder-leiste {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  background: var(--akzent-hell); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 28px;
  font-size: 0.95rem;
}

/* ==== Fußbereich ==== */
.seiten-fuss {
  background: var(--petrol-dunkel); color: #c8d6db; margin-top: 64px;
  padding: 40px 0 28px; font-size: 0.92rem;
}
.fuss-innen { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.seiten-fuss a { color: #fff; text-decoration: none; margin-right: 18px; }
.seiten-fuss a:hover { text-decoration: underline; color: #fff; }

/* ==== Mobil ==== */
@media (max-width: 720px) {
  .kopf-innen { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero { padding: 48px 0 56px; }
  .knopf-neben { display: block; margin: 14px 0 0; }
}

.fuss-menue { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
