@import url('./fonts/fonts.css');

/* ============================================================
   Der Ofendoktor — Design-Tokens
   Werte 1:1 aus dem bisherigen Elementor-Kit (post-280.css)
   ============================================================ */
:root {
  --beige:      #F1EDE9;  /* Karten, Flächen       (Elementor primary)   */
  --off-white:  #FBF8F7;  /* Sektionsgrund         (Elementor secondary) */
  --page-bg:    #F2EDE9;  /* Seitenhintergrund                          */
  --text:       #38312E;  /* Fließtext                                  */
  --text-dark:  #312A26;  /* H1                                         */
  --text-soft:  #493D3D;  /* About-Absatz                               */
  --accent:     #521A20;  /* Links hover, Akzente                       */
  --btn:        #5A141E;  /* Telefon-Button                             */
  --gold:       #F0A83E;  /* Bewertungssterne (Elementor rating)        */
  --white:      #FFFFFF;

  --serif: 'Gilda Display', Georgia, serif;
  --sans:  'Kantumruy Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1140px;
  --shadow-soft:   0 0 13px rgba(0,0,0,.5);
  --shadow-strong: 0 0 20px rgba(0,0,0,.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* Fliesstext-Links sind im Original fett-kursiv und NICHT unterstrichen;
   die Unterstreichung kommt erst bei Hover/Fokus dazu. */
a {
  color: var(--text);
  font-weight: 700;
  font-style: italic;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
a:hover, a:focus-visible { color: var(--accent); text-decoration: underline; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Struktur ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: 3.5rem; }
.section--soft { background: var(--off-white); }
.section--tight { padding-block: 2.5rem; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--btn); color: var(--off-white);
  padding: .75rem 1.25rem; z-index: 100; font-style: normal;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* fuer Screenreader und Suchmaschinen da, optisch nicht */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ---------- Typografie ---------- */
h1 { font-family: var(--serif); font-weight: 600; text-transform: uppercase; color: var(--text-dark); }
h2 { font-family: var(--serif); font-weight: 300; font-style: italic; color: var(--text); }
h3, h4, h5 { font-family: var(--sans); font-weight: 400; }

/* Sektionsüberschriften stehen im Original in Versalien (ABOUT, KUNDENSTIMMEN,
   WISSENSWERTES) — Elementor setzte das per text-transform, nicht im Text. */
.section-title {
  font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.15rem);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  margin-bottom: 2rem;
}

/* ---------- Header ---------- */
.site-header { background: var(--off-white); }
.site-header .logo-box {
  background: var(--white);
  padding: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 10vh;
}
.site-header img { width: 174px; }

/* ---------- Hero ---------- */
/* beige abgesetzt gegen den weissen Logo-Balken, wie im Original */
.hero { background: var(--page-bg); padding-block: 2.5rem 3.5rem; }
.hero h1 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3rem);
  text-align: center;
  margin: 0 0 -.15em;
  line-height: 1.15;
}
.hero .claim {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem);
  text-align: center;
  text-shadow: 0 0 10px rgba(0,0,0,.3);
  padding: 1em;
  margin: 0;
  line-height: 1.3;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 32.5fr) minmax(0, 67.5fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: 1.5rem;
}
.hero-portrait img {
  width: 100%;
  border-radius: 166px;
  box-shadow: var(--shadow-strong);
}
.hero-copy { text-align: center; }
.hero-copy .lead { font-size: 1.05rem; }

.checklist { list-style: none; margin: 1.2rem 0; padding: 0; display: inline-block; text-align: left; }
.checklist li { padding-left: 1.35em; text-indent: -1.35em; margin-bottom: .1em; line-height: 1.55; }
.checklist li::before { content: "✔\FE0F"; margin-right: .35em; }

/* ---------- Telefon-Button ---------- */
.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--btn);
  color: var(--off-white);
  font-family: var(--sans);
  font-size: clamp(1.15rem, 1rem + .5vw, 23px);
  font-weight: 400;
  font-style: normal;
  padding: 19px 26px;
  box-shadow: 0 0 10px rgba(0,0,0,.5);
  text-decoration: none;
  transition: background .8s, box-shadow .3s, transform .2s;
}
.btn-phone:hover, .btn-phone:focus-visible {
  background: var(--accent);
  color: var(--off-white);
  box-shadow: 0 0 16px rgba(0,0,0,.5);
  transform: translateY(-1px);
}
.btn-phone svg { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 66fr) minmax(0, 34fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.about-grid .text { color: var(--text-soft); letter-spacing: .4px; }
.about-grid img { border-radius: 123px; box-shadow: var(--shadow-soft); width: 100%; }

/* ---------- Kundenstimmen ---------- */
/* Sterne stehen links neben dem Zitat, nicht darueber — wie im Original */
.quote {
  max-width: 1000px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}
.stars { color: var(--gold); font-size: 25px; letter-spacing: 1px; margin: 0; white-space: nowrap; }
.quote blockquote { margin: 0; font-size: 1.02rem; }
.quote cite { display: block; margin-top: .9rem; font-style: normal; font-size: .92rem; opacity: .75; }

/* ---------- Wissenswertes (Karten) ---------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}
.card {
  background: var(--beige);
  flex: 1 1 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .5s, transform .5s;
}
.card:hover { box-shadow: 0 0 15px rgba(0,0,0,.5); transform: translateY(-2px); }
.card picture { display: block; padding: 12px 12px 0; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card .body { padding: 1.35rem 1.4rem 1.6rem; text-align: center; }
/* Karten-Titel im Original: gross, Kantumruy in normaler Staerke, nicht fett */
.card h3 {
  font-size: clamp(1.25rem, 1.05rem + .6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: .9rem;
}
.card h3 em { font-style: italic; }
.card p { font-size: .97rem; }

/* ---------- Kontakt ---------- */
/* Dreispaltig wie im Original: Karte — Wort „Kontakt" — Angaben */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 19fr) minmax(0, 34fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.contact-grid .map {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(56,49,46,.15);
  background: var(--beige);
}
.contact-grid .map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-label {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem);
  text-align: center;
  margin: 0;
}

.contact-list { list-style: none; margin: 0; padding: 0; text-align: left; font-size: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: baseline; margin-bottom: .8rem; }
.contact-list li:last-child { margin-bottom: 0; }
.contact-list .ico { flex: none; width: 1.5em; text-align: center; }
.contact-list a { font-style: italic; }
.contact-list .plain { font-weight: 400; font-style: normal; }
.contact-center { text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--beige); padding-block: 1.5rem 2rem; text-align: center; font-size: .95rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .6rem; }
.site-footer a { font-style: italic; font-weight: 700; }
.site-footer .copy { margin-top: 1rem; opacity: .7; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 800px; }
.legal h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); text-align: center; margin-bottom: 2.5rem; line-height: 1.2; }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.12rem; font-weight: 700; margin-top: 1.8rem; }
.legal h4 { font-size: 1rem; font-weight: 700; margin-top: 1.3rem; }
.legal p, .legal li { font-size: .97rem; }
.legal .caps { font-size: .9rem; }
.legal address { font-style: normal; margin-bottom: 1.1em; }
.legal .note {
  background: var(--beige);
  border-left: 4px solid var(--btn);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: .95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  /* min() statt starrer 340px, damit auf sehr schmalen Geräten (320er-Displays,
     Split-View) kein seitliches Scrollen entstehen kann. */
  .hero-portrait { max-width: min(340px, 100%); margin-inline: auto; }
  .about-grid .image { max-width: min(340px, 100%); margin-inline: auto; }
  .about-grid .image { order: -1; }
  /* justify-items: center gibt den Kindern max-content-Breite; die max-width-Zeile
     hält die lange Adresszeile trotzdem in der Spalte. */
  .contact-grid { grid-template-columns: 1fr; justify-items: center; }
  .contact-grid > * { max-width: 100%; }
  .contact-grid .map { width: 100%; max-width: 520px; }
  .quote { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: .8rem; }
}
@media (max-width: 560px) {
  .section { padding-block: 2.5rem; }
  .contact-list { font-size: 1rem; }
  .contact-list li { align-items: flex-start; }
  .hero-portrait img { border-radius: 120px; }
  .about-grid img { border-radius: 100px; }
  .btn-phone { width: 100%; justify-content: center; padding-inline: 1rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .btn-phone { display: none; }
  body { background: #fff; color: #000; }
}
