/* =====================================================================
   ConVano-Consult Theodor Reiff — Stylesheet
   Neubau der WordPress/Elementor-Seite als schlanke statische Website.
   Markenfarbe: #15779b (Teal) · Font: Roboto (selbst gehostet, DSGVO-konform)
   ===================================================================== */

/* ---- Font (self-hosted, kein Google-Server-Aufruf) ---- */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---- Design-Tokens ---- */
:root {
  --teal: #15779b;
  --teal-dark: #11607d;
  --ink: #2b2b2b;
  --slate: #3c4c54;
  --muted: #5f6f77;
  --line: #c7ced2;
  --bg: #ffffff;
  --bg-soft: #f4f6f7;
  --radius: 14px;
  --radius-pill: 999px;
  --container: 1160px;
  --shadow-card: 0 10px 30px rgba(17, 96, 125, 0.12);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-photo: 0 16px 32px rgba(20, 30, 35, 0.22), 0 4px 10px rgba(20, 30, 35, 0.1);
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ---- Reset ---- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }

/* Barrierefreiheit: Skip-Link + sichtbarer Fokus */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--teal); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 40px 0; }
.divider {
  border: 0; border-top: 3px dotted var(--line);
  max-width: var(--container); margin: 26px auto;
}

/* ---- Header / Navigation ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #eef1f2;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.nav__home { display: flex; align-items: baseline; gap: 10px; }
.nav__home .brand-mark { font-weight: 500; color: var(--ink); font-size: 20px; letter-spacing: .2px; }
.nav__home .brand-mark b { color: var(--teal); }
.nav__toggle {
  display: none; border: 0; background: none; cursor: pointer;
  padding: 11px; color: var(--ink);
}
.nav__toggle svg { width: 26px; height: 26px; }
.nav__menu {
  display: flex; align-items: center; gap: 34px;
  list-style: none; margin: 0; padding: 0;
}
.nav__menu a {
  color: var(--slate); font-weight: 500; letter-spacing: .3px; font-size: 16px;
  padding: 6px 2px; position: relative;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav__menu a:hover,
.nav__menu a[aria-current="page"] { color: var(--teal); }
.nav__menu a:hover::after,
.nav__menu a[aria-current="page"]::after { transform: scaleX(1); }

/* ---- Brand-Block (Startseite) ---- */
.brand {
  text-align: center; padding: 48px 0 8px;
}
.brand h1 {
  font-size: 36px; font-weight: 500; color: var(--ink);
  letter-spacing: .3px; margin-bottom: .15em;
}
.brand h1 .con { color: var(--ink); }
.brand h1 .vano { color: var(--teal); }
.brand p { color: var(--muted); font-size: 21px; font-weight: 400; margin: 0; }

/* ---- Überschriften ---- */
.h-teal {
  color: var(--teal); font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}
.h-center { text-align: center; }
.section-title { margin-bottom: .4em; }

/* ---- Themen-Karten ---- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 34px; margin-top: 10px;
}
.card { display: flex; flex-direction: column; }
.card__title {
  text-align: center; color: var(--slate); font-weight: 700;
  font-size: 21px; margin-bottom: .8em; min-height: 2.4em;
  white-space: nowrap;
  display: flex; align-items: flex-end; justify-content: center;
}
.card__img {
  border-radius: var(--radius); box-shadow: var(--shadow-photo);
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}
.card__text { margin: 1.1rem 0 1.4rem; color: var(--ink); flex: 1; }
.card__cta { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: inherit; font-size: 1rem; font-weight: 500; cursor: pointer;
  border-radius: var(--radius-pill); padding: .7em 1.7em;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-align: center; line-height: 1.2;
}
.btn-outline {
  background: #fff; color: var(--slate); border: 1px solid #cfd6da;
  box-shadow: var(--shadow-soft);
}
.btn-outline:hover { color: #fff; background: var(--teal); border-color: var(--teal); transform: translateY(-1px); }
.btn-primary {
  background: var(--teal); color: #fff; border: 1px solid var(--teal);
  box-shadow: 0 8px 20px rgba(17, 96, 125, .28);
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn-lg { font-size: 1.05rem; padding: .85em 2em; }

/* ---- Prosa / Inhaltsbereiche ---- */
.prose { max-width: 860px; }
.prose.center { margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--slate); margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.lead { font-size: 1.28rem; color: var(--slate); }
.quote-line { font-style: italic; color: var(--slate); }
.signature { font-weight: 400; color: var(--ink); }
.tight-points p { margin-bottom: .3rem; }

/* CTA-Block */
.cta-block { text-align: center; padding: 20px 0 8px; }
.cta-note { color: var(--muted); margin-bottom: 1.2rem; }

/* ---- Seiten-Hero (Unterseiten) ---- */
.page-hero { text-align: center; padding: 44px 0 8px; }
.page-hero .kicker { color: var(--muted); font-weight: 500; letter-spacing: .5px; text-transform: uppercase; font-size: .85rem; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--teal); }

/* Zwei-Spalten (Bild + Text) */
.media {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.media img { border-radius: var(--radius); box-shadow: var(--shadow-photo); }
@media (max-width: 800px) { .media { grid-template-columns: 1fr; } }

/* Testimonial-Unterseiten: Hero-Bild + Intro + eine gemeinsame Zitat-Box */
.testi-hero {
  max-width: 640px; margin: 0 auto 28px; border-radius: var(--radius);
  box-shadow: var(--shadow-photo); aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}
.testi-intro { text-align: center; color: var(--slate); margin-bottom: .2em; }
.testi-box {
  max-width: 860px; margin: 0 auto; background: #fff;
  border: 2px solid var(--teal); border-radius: var(--radius);
  padding: 32px 36px; box-shadow: var(--shadow-soft);
}
.testi-box .quote { margin-bottom: 1.5em; }
.testi-box .quote:last-child { margin-bottom: 0; }
.testi-box .quote p { font-style: italic; color: var(--slate); margin: 0; }

/* Hervorhebungs-Boxen */
.callout {
  background: var(--bg-soft); border-left: 4px solid var(--teal);
  border-radius: 8px; padding: 18px 22px; margin: 1.4rem 0;
}
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.9em; margin-bottom: .7em; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 700;
}

/* ---- Kontaktformular ---- */
.contact-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.form { background: #fff; border: 1px solid #e6eaec; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-soft); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4em; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid #cfd6da; border-radius: 9px; padding: .7em .9em; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(21, 119, 155, .15);
}
.field.consent { display: flex; gap: .7em; align-items: flex-start; font-size: .92rem; }
.field.consent input { width: auto; margin-top: .25em; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 14px; font-weight: 500; }
.form-status.ok { color: var(--teal-dark); }
.form-status.err { color: #b02a2a; }
.contact-aside img { border-radius: var(--radius); box-shadow: var(--shadow-card); margin-bottom: 20px; }
.contact-card { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; }
.contact-card p { margin: .3em 0; }
.contact-card .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }

/* ---- Footer ---- */
.site-footer { padding: 8px 0 40px; }
.footer-line {
  text-align: center; color: var(--slate); font-size: 1.02rem; padding: 8px 0 4px;
}
.footer-line a { color: var(--slate); }
.footer-line a:hover { color: var(--teal); }
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px;
  list-style: none; padding: 0; margin: 0;
}
.footer-nav a { color: var(--slate); font-weight: 500; display: inline-flex; align-items: center; padding: 13px 8px; }
.footer-nav a:hover { color: var(--teal); }
.footer-topics {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  list-style: none; padding: 0; margin: 14px 0 0; font-size: .9rem;
}
.footer-topics a { color: var(--muted); }
.footer-legal { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 18px; }

/* ---- Responsive Navigation ---- */
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; gap: 40px; max-width: 460px; margin-inline: auto; }
  .card__title { min-height: 0; }
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid #eef1f2;
    box-shadow: var(--shadow-soft);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav__menu.open { max-height: 340px; }
  .nav__menu li { border-top: 1px solid #f0f2f3; }
  .nav__menu a { display: block; padding: 15px 24px; }
  .nav__menu a::after { display: none; }
}
