/* ============================================================
   Senior/in Aktiv – Christian Stelzer
   Statische 1:1-Nachbildung der WordPress/Elementor-Site
   · cookiefrei · 0 Tracker · self-hosted Fonts
   ------------------------------------------------------------
   CI aus den echten Elementor Global Colors + Logo-SVG:
     Braun  #42311A  (Text, Headings, Footer, Logo-Block)
     Grün   #267A46  (Links, Partner-Akzente, Buttons)
     Creme  #FCF8F1  (warmer Abschnitts-Hintergrund)
     Creme2 #FAEADA  (Header/Buttons hell)
     Pfirs. #FFBC7D  (Akzent)
   Schrift: PT Serif (self-hosted), Headings kursiv – wie Original.
   ============================================================ */

/* ---------- Self-hosted Fonts (wie Original) ---------- */
@font-face {
  font-family: "PT Serif";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/PTSerif-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "PT Serif";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/PTSerif-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "PT Serif";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/PTSerif-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "PT Serif";
  font-style: italic; font-weight: 700; font-display: swap;
  src: url("fonts/PTSerif-BoldItalic.woff2") format("woff2");
}

:root {
  --brown:       #42311A;   /* Primär: Text, Headings, Footer */
  --brown-soft:  #4f3c22;   /* Fließtext etwas weicher */
  --green:       #267A46;   /* Akzent: Links, Partner, Buttons */
  --green-dark:  #1d5e35;   /* Hover */
  --cream:       #FCF8F1;   /* warmer Abschnitts-Hintergrund */
  --cream-2:     #FAEADA;   /* Header-/Logo-Block-Creme */
  --header-bg:   #FBF6EC;   /* Header-Bar */
  --peach:       #FFBC7D;   /* Akzent (Page-Transition im Original) */
  --line:        #e7ddc9;   /* zarte Linien auf Creme */
  --white:       #ffffff;

  --font: "PT Serif", "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  --maxw: 1140px;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.4rem;            /* Original christianstelzer.at: 22.4px (= 1.4em) */
  line-height: 1.35;            /* Original: 1.3 – minimal aufgelockert für Lesbarkeit */
  color: var(--brown-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Footer ans Fensterende drücken, wenn die Seite kürzer als das Fenster ist
     (Flexbox-Sticky-Footer – NICHT position:sticky) */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }       /* füllt den Restraum -> Footer rutscht nach unten */
.site-footer { flex-shrink: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--brown); margin: 0 0 .5em; line-height: 1.12; }
p { margin: 0 0 1.15em; }
strong { color: var(--brown); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Große Sektions-/Seiten-Titel (kursiv, wie Original) ---------- */
.section-title, .page-title {
  font-style: italic; font-weight: 400;
  color: var(--brown);
  letter-spacing: -.015em; line-height: 1.04;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  margin: 0 0 .5em;
}
.section-title { text-align: right; }          /* Angebot (rechts wie Original) */
.section-title--left { text-align: left; }     /* Über mich (Original) + Partner (Wunsch Marcus) */
.page-title    { text-align: left; margin-bottom: .9em; }  /* Unterseiten + Willkommen */

.subhead {
  font-style: italic; font-weight: 700;
  color: var(--brown);
  font-size: 1.7rem; margin: 0 0 .7em;
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--cream { background: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font); font-style: italic; font-weight: 700;
  font-size: 1.05rem; line-height: 1;
  padding: .85em 1.5em; border-radius: 3px;
  background: var(--green); color: var(--white);
  border: 2px solid var(--green);
  transition: background .18s, border-color .18s, transform .18s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 1em; height: 1em; }
.btn--cream { background: var(--cream-2); color: var(--brown); border-color: var(--cream-2); }
.btn--cream:hover { background: #f3dcc4; border-color: #f3dcc4; color: var(--brown); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px; padding: 8px 28px;
  max-width: 1280px; margin: 0 auto;
}
.site-header__logo { display: block; flex: 0 0 auto; }
.site-header__logo img { height: 60px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 30px; }
.main-nav { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--brown); font-style: italic; font-size: 1.12rem; }
.main-nav a:hover { color: var(--green); text-decoration: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--cream-2); color: var(--brown);
  border: 1px solid var(--line); border-radius: 3px;
  font-family: var(--font); font-style: italic; font-size: 1.05rem;
  padding: .5em 1em; cursor: pointer;
}
.menu-toggle:hover { background: #f3dcc4; }
.menu-toggle svg { width: 1.1em; height: 1.1em; }

@media (max-width: 880px) {
  .main-nav { display: none; }
  .site-header__logo img { height: 50px; }
}

/* ---------- Menü-Overlay (ersetzt Elementor-Popup) ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(66, 49, 26, .97);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; opacity: 0; visibility: hidden; transition: opacity .25s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.menu-overlay a {
  color: var(--cream); font-style: italic; font-size: clamp(1.6rem, 5vw, 2.4rem);
  padding: .25em .5em;
}
.menu-overlay a:hover { color: var(--peach); text-decoration: none; }
.menu-overlay__close {
  position: absolute; top: 22px; right: 28px;
  background: none; border: 0; color: var(--cream); cursor: pointer;
  font-size: 2.2rem; line-height: 1; font-family: var(--font);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  background: var(--cream-2) url("img/hero-stelzer.jpg") center bottom / cover no-repeat;
}
.hero__inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; min-height: 88vh; }
.hero__tagline {
  position: absolute; top: clamp(40px, 9vh, 110px); right: 28px;
  max-width: 460px; margin: 0;
  color: #fff; font-style: italic; font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; text-align: right;
  text-shadow: 0 2px 14px rgba(40, 26, 8, .55), 0 1px 3px rgba(40, 26, 8, .7);
}
@media (max-width: 880px) {
  .hero { min-height: 78vh; }
  .hero__inner { min-height: 78vh; }
  .hero__tagline { left: 28px; right: 28px; max-width: none; text-align: center; }
}

/* ---------- Zweispaltige Inhaltsblöcke ---------- */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: stretch;          /* Bild-Panel füllt die volle Höhe der Textspalte */
}
.two-col--text-first { grid-template-columns: 1.05fr .95fr; }
/* Bild als Cover-Panel in voller Spaltenhöhe – wie im Original (background:cover) */
.media {
  position: relative; overflow: hidden; border-radius: 4px;
  min-height: 300px; box-shadow: 0 10px 30px rgba(66, 49, 26, .16);
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--portrait img { object-position: center 18%; }   /* Porträt: Gesicht im Ausschnitt */
.prose { max-width: 38em; }
.prose--narrow { max-width: 50em; }   /* Über mich: linksbündige, breitere Spalte */
.contact-line { margin-top: 1.2em; }   /* Größe = Body (22.4px) wie Original */
.contact-line a { font-weight: 700; }

@media (max-width: 820px) {
  .two-col, .two-col--text-first { grid-template-columns: 1fr; gap: 30px; }
  .media { order: -1; }
  .section-title, .page-title { text-align: left; }
}

/* ---------- Angebot: Liste (schlichte Bullets wie Original) ---------- */
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li {
  position: relative; padding: .28em 0 .28em 1.3em;
  color: var(--brown-soft);          /* Größe = Body (22.4px) wie Original */
}
.offer-list li::before {
  content: ""; position: absolute; left: .15em; top: .92em;
  width: .42em; height: .42em; border-radius: 50%; background: var(--brown);
}

/* ---------- Partner ---------- */
.partner { display: grid; grid-template-columns: 1fr 280px; gap: clamp(28px, 5vw, 60px); align-items: center; }
.partner + .partner { margin-top: clamp(40px, 6vw, 72px); }
.partner__logo { display: flex; align-items: center; justify-content: center; }
.partner__logo img { max-height: 170px; width: auto; }
.partner h3 { color: var(--brown); font-style: italic; font-weight: 700; font-size: 1.6rem; margin-bottom: .5em; }
@media (max-width: 820px) {
  .partner { grid-template-columns: 1fr; }
  .partner__logo { order: -1; justify-content: flex-start; }
}

/* ---------- Kontakt-Karte (cookiefreie Map-Alternative) ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(28px, 5vw, 56px); align-items: stretch;
}
.address p { margin: 0 0 .35em; }
.address p:last-child { margin-bottom: 0; }   /* Unterkante = E-Mail-Zeile (Links rechts schließen bündig ab) */
/* Rechte Spalte füllt die volle Höhe der linken (Kontakt-Überschrift → E-Mail):
   Die Karte wächst in den verfügbaren Raum, die Links sitzen unten und reichen
   nicht über die Unterkante des linken Textblocks hinaus. iframe absolut -> trägt
   selbst nicht zur Höhe bei, die linke Spalte bestimmt sie. */
.contact-right { display: flex; flex-direction: column; gap: .6em; }
.map-embed__frame {
  position: relative; flex: 1 1 auto; min-height: 0;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.map-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-embed__links { flex: 0 0 auto; margin: 0; display: flex; flex-wrap: wrap; gap: .2em .7em; align-items: baseline; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map-embed__frame { min-height: 320px; }   /* mobil: Adresse steht darüber, daher feste Mindesthöhe */
}

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: var(--cream); padding: 40px 0 32px; }
.footer-nav { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0 0 18px; padding: 0; }
.footer-nav a { color: var(--cream); font-style: italic; font-size: 1.15rem; }
.footer-nav a:hover { color: var(--peach); text-decoration: none; }
.footer-meta { text-align: center; color: #c8b89e; font-size: .92rem; }
.footer-meta p { margin: .2em 0; }

/* ---------- Legal (Impressum/Datenschutz) ---------- */
.legal { max-width: 50em; }
.legal h2.subhead { font-size: 1.45rem; margin-top: 1.6em; }
.legal h3 { font-style: italic; font-weight: 700; font-size: 1.2rem; margin: 1.4em 0 .4em; }
.legal p { color: var(--brown-soft); }
.legal .page-title { margin-bottom: .6em; }

/* ---------- Zugänglichkeit ---------- */
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brown); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }
