/* ==========================================================
   Gisela Kaehne – Steuerbevollmächtigte
   Statischer Nachbau der bisherigen WordPress-Startseite
   Farben zentral als Variablen – hier anpassen.
   ========================================================== */
:root {
  /* Farben aus dem Screenshot der Originalseite gemessen */
  --primary: #956a38;       /* Braun: Headerbalken, Überschriften, Kontaktbox */
  --primary-dark: #6a2807;  /* Dunkles Rotbraun: Logo-Schrift, Fußleiste */
  --accent: #d0b88a;        /* Sandgold: Trennlinie unter dem Header */
  --cream: #f8edbb;         /* Creme: Logo-Schild */
  --page-bg: #cdb588;       /* Seitenhintergrund (Papierstruktur) */
  --strong: #997040;        /* Hervorgehobener Text */
  --text: #4a4038;
  --muted: #7d6a52;
  --bg: #ffffff;
  --bg-alt: #faf5e8;
  --line: #e8dcc0;
  --maxw: 1144px;
  --font: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--accent); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Kontaktleiste (ersetzt Plugin „Speed Contact Bar“) ---------- */
.contactbar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 14px;
}
.contactbar .container {
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  justify-content: flex-end; padding-top: 6px; padding-bottom: 6px;
}
.contactbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.contactbar a:hover { color: var(--accent); }
.contactbar svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 90px; gap: 20px;
}
.logo img { max-height: 64px; width: auto; }
.logo { text-decoration: none; }
.logo .logo-text { display: none; font-weight: 700; font-size: 20px; color: var(--primary); text-decoration: none; }
.logo.no-img .logo-text { display: inline; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--accent); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 4px;
  padding: 8px 12px; font: inherit; font-weight: 600; color: var(--primary); cursor: pointer;
}
.menu-toggle span { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: 8px; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }

/* ---------- Headerbild ---------- */
.hero { background: var(--bg-alt); }
.hero img { width: 100%; max-height: 420px; object-fit: cover; }
.hero.no-img { height: 220px; background: linear-gradient(120deg, var(--primary), #3c5f8c); }

/* ---------- Inhalt ---------- */
main { padding: 50px 0 60px; }
h1, h2, h3, h4 { color: var(--primary); line-height: 1.3; }
h1 { font-size: 30px; margin: 0 0 24px; }
h2 { font-size: 26px; margin: 0 0 28px; }
h2.section-title { text-align: center; }
h2.section-title::after { content: ""; display: block; width: 60px; height: 3px; background: var(--accent); margin: 14px auto 0; }

.intro { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.intro .lead { font-size: 18px; margin-bottom: 4px; }
.intro figure { margin: 0; }
.intro figure img { border-radius: 4px; margin-left: auto; }

.focus { background: var(--bg-alt); padding: 60px 0; margin-top: 50px; }
.focus-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.focus-grid li {
  background: #fff; border-top: 3px solid var(--accent);
  padding: 24px 22px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.focus-grid h3 { margin: 0 0 6px; font-size: 19px; }
.focus-grid .q { font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.focus-grid p { margin: 0; }

/* Unterseiten */
.page-content { max-width: 780px; }
.page-content h2 { font-size: 20px; margin: 30px 0 8px; }
.page-content p { margin: 0 0 12px; }
.note {
  background: #fff8e6; border-left: 4px solid var(--accent);
  padding: 14px 18px; margin: 20px 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: #e9edf3; padding: 44px 0 30px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.site-footer h3 { color: #fff; font-size: 17px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .05em; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }

.socket { background: var(--primary-dark); color: #b9c3d1; font-size: 14px; }
.socket .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.socket ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.socket a { color: #b9c3d1; text-decoration: none; }
.socket a:hover { color: #fff; }

/* ---------- Nach oben ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px;
  border-radius: 4px; background: var(--primary); color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.to-top.show { opacity: .9; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: #fff; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .menu-toggle { display: inline-block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 20px 14px; }
  .main-nav a { border-bottom: 1px solid var(--line); }
  .site-header .container { min-height: 72px; position: relative; }
  .logo img { max-height: 50px; }
  .intro { grid-template-columns: 1fr; }
  .intro figure img { margin: 0 auto; max-width: 280px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
  .contactbar .container { justify-content: center; }
}
@media (max-width: 560px) {
  .focus-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   Original-Look: Boxed Layout, brauner Header, zentriertes Logo
   (Werte aus dem Screenshot der bisherigen Seite)
   ========================================================== */
body {
  background-color: var(--page-bg);
  /* leichte Papierstruktur ohne Bilddatei */
  background-image:
    radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    radial-gradient(rgba(120,90,40,.10) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
}
.page-box { max-width: var(--maxw); margin: 0 auto; background: var(--bg); box-shadow: 0 0 18px rgba(80,50,20,.18); }

.contactbar { background: var(--primary-dark); }
.contactbar a:hover { color: var(--cream); }

.site-header { background: var(--primary); border-bottom: 7px solid var(--accent); position: relative; }
.site-header .container { min-height: 108px; justify-content: center; }
.logo { display: block; align-self: flex-start; }
.logo img { max-height: 98px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.logo .logo-text {
  background: var(--cream); color: var(--primary-dark);
  font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 22px; line-height: 1.25;
  padding: 14px 40px; border: 3px double #c9b27a; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.logo.no-img .logo-text { display: block; }
.logo .logo-text small { display: block; font-size: 17px; }
.main-nav { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
.main-nav a { color: var(--cream); font-weight: 400; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.menu-toggle { color: var(--cream); border-color: rgba(248,237,187,.5); position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }

.hero { border-bottom: 1px solid var(--line); }
.hero img { max-height: 306px; }
.hero.no-img { height: 306px; background: linear-gradient(120deg, #8c4a28, #c08463); }

h1, h2, h3, h4 { color: var(--primary); }
h1 { font-weight: 300; font-size: 36px; letter-spacing: .02em; }
h2 { font-weight: 300; }
.intro .lead strong { color: var(--strong); }
.intro { padding: 0 42px; }
.intro figure img { border: 6px solid var(--bg-alt); box-shadow: 0 2px 8px rgba(0,0,0,.15); }

.focus-grid li { border-top-color: var(--primary); }
h2.section-title::after { background: var(--accent); }

.site-footer { background: var(--primary); color: var(--cream); }
.site-footer h3 { color: #fff; }
.site-footer a:hover, .socket a:hover { color: var(--cream); }
.socket { background: var(--primary-dark); color: var(--accent); }
.socket a { color: var(--accent); }

.to-top { background: var(--primary); }
.to-top:hover { background: var(--primary-dark); }
.note { background: var(--bg-alt); }

@media (max-width: 768px) {
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; transform: none; background: var(--primary); z-index: 60; }
  .main-nav a { border-bottom-color: rgba(248,237,187,.2); }
  .site-header .container { min-height: 84px; justify-content: flex-start; }
  .logo img { max-height: 74px; }
  .logo .logo-text { font-size: 17px; padding: 10px 18px; }
  .logo .logo-text small { font-size: 13px; }
  .intro { padding: 0 20px; }
  h1 { font-size: 26px; }
  .hero img, .hero.no-img { max-height: 180px; height: auto; }
  .hero.no-img { height: 180px; }
}
