/* Ärzte & Unternehmer Vermögensplanungsgesellschaft mbH – Stylesheet
   Keine externen Ressourcen: Schrift liegt lokal unter assets/fonts. */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-italic-latin.woff2") format("woff2");
}

:root {
  --navy: #1e2040;
  --navy-2: #282b55;
  --gold: #d0980a;
  --gold-dark: #a97b06;
  --white: #fff;
  --text: #fff;
  --muted: #c9cbe0;
  --card-text: #33373d;
  --card-muted: #7a7a7a;
  --line: rgba(255, 255, 255, .18);
  --radius: 8px;
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow: 0 4px 18px rgba(0, 0, 0, .25);
  --serif: "Times New Roman", Times, Georgia, serif;
  --display: "Playfair Display", Georgia, serif;
  --sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: #f0b420; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.section { padding: clamp(40px, 7vw, 80px) 0; }
.section + .section { padding-top: 0; }
/* Maße aus dem Original (Elementor): Abschnittstitel 32px/600, linksbündig */
.section-title { font-size: clamp(26px, 2.2vw + 14px, 32px); line-height: 1.1; margin-bottom: 1em; }
.page-title { font-size: 32px; line-height: 1.1; }
.intro { color: var(--muted); font-size: 1.1rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font: 500 15px/1 var(--sans);
  padding: 15px 30px;
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--gold-dark); color: #fff; transform: translateY(-1px); }
.btn-small { padding: 10px 20px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn-ghost { background: transparent; border: 2px solid var(--gold); color: var(--gold); box-shadow: none; }
.btn-ghost:hover { background: var(--gold); }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 6px rgba(0, 0, 0, .15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 16px; }
.brand img { width: clamp(220px, 32vw, 370px); height: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block;
  padding: 30px 14px;
  color: #54595f;
  text-decoration: none;
  font: 500 15px/1 var(--sans);
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: #1a1a1a; margin: 4px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* wie im Original: Hamburger-Menü auf Tablet und Handy */
@media (max-width: 1024px) {
  .header-inner { min-height: 72px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 8px 16px rgba(0, 0, 0, .15); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .main-nav a { padding: 14px var(--gutter); border-bottom: 0; border-left: 3px solid transparent; }
  .main-nav a[aria-current="page"] { border-left-color: var(--navy); }
}

/* ---------- Hero ---------- */
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
/* wie im Original: 24px Times kursiv, Zeilen links / mittig / rechts */
.claim { font: italic 300 24px/1.45 var(--serif); margin: 0 0 1.6em; display: grid; text-align: left; }
.claim a { color: var(--gold); text-decoration: none; }
.claim a:hover { color: #f0b420; }
.claim a:nth-child(1) { justify-self: start; }
.claim a:nth-child(2) { justify-self: center; }
.claim a:nth-child(3) { justify-self: end; }
.claim .claim-more { justify-self: start; margin: .3em 0 0 40%; text-decoration: underline; }
.hero-text { text-align: center; }
.hero-text h1 { font-size: 32px; line-height: 1.2; margin-bottom: 1em; }
.hero-person { margin: 0; text-align: center; }
.hero-person img { width: 100%; }
.hero-person figcaption { padding-top: 12px; display: grid; gap: 6px; }
.hero-person strong { font: italic 400 1.35rem/1.3 var(--sans); }
.hero-person em { font: italic 700 .82rem/1.5 var(--serif); color: var(--gold); }
.seals { display: flex; justify-content: center; gap: 20px; margin-top: 16px; }
.seals img { width: 85px; height: 85px; object-fit: contain; transition: transform .2s; }
.seals a:hover img { transform: scale(1.06); }

@media (max-width: 1024px) {
  .claim .claim-more { margin-left: 30%; }
}
@media (max-width: 767px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-person { max-width: 520px; margin: 0 auto; }
  .claim .claim-more { justify-self: end; margin-left: 0; }
  .seals img { width: 115px; height: 115px; }
}

/* ---------- Karten & Karussell (Startseite) ---------- */
.card { list-style: none; }
.card a {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; color: #7a7a7a;
  text-decoration: none; text-align: center;
  border: 3px solid #7a7a7a; padding: 5px;
  transition: transform .2s;
}
.card a:hover { transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card h3 { font-size: 24px; line-height: 1.2; color: #7a7a7a; margin: 20px 10px 0; flex: 1; }
.card p { font-size: 14px; line-height: 1.6; color: #7a7a7a; margin: 20px 10px; }
.card .btn { align-self: center; margin-bottom: 15px; background: #61ce70; box-shadow: none; border-radius: 3px; padding: 12px 24px; font-size: 15px; }
.card a:hover .btn { background: #4fb85d; transform: none; }

.carousel { position: relative; padding: 0 44px; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 28px) / 3);
  gap: 28px; margin: 0; padding: 0 0 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > li { scroll-snap-align: start; }
.carousel-arrow {
  position: absolute; top: 45%; transform: translateY(-50%);
  width: 40px; height: 60px; border: 0; background: none;
  color: #fff; font: 300 60px/1 var(--sans); cursor: pointer; opacity: .9;
}
.carousel-arrow:hover { opacity: 1; color: var(--gold); }
.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: #fff; }

@media (max-width: 1024px) { .carousel-track { grid-auto-columns: calc((100% - 28px) / 2); } }
/* Handy: eine Karte, Pfeile über der Karte – wie im Original */
@media (max-width: 767px) {
  .carousel { padding: 0; }
  .carousel-track { grid-auto-columns: 100%; gap: 16px; }
  .carousel-arrow { color: #c5c5c5; left: 8px; }
  .carousel-arrow.next { left: auto; right: 8px; }
  .reviews .carousel-arrow { color: #fff; top: auto; bottom: -10px; transform: none; font-size: 40px; }
}

/* ---------- Immobilienverkauf, Qualifikation ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 2em; }
.split > img { width: 100%; }
.lead { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 600; line-height: 1.7; margin: 0; }
.steps { padding-left: 1.4em; display: grid; gap: .5em; }
.split-reverse { align-items: start; }
.portrait { width: 100%; max-width: 420px; justify-self: center; }
.certs { display: flex; gap: 24px; margin-top: 1.5em; flex-wrap: wrap; }
.certs a { display: block; width: 140px; background: #fff; padding: 4px; transition: transform .2s; }
.certs a:hover { transform: translateY(-3px); }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; } }

/* ---------- Kundenreferenzen, Ökostrom ---------- */
.reviews .carousel-track { grid-auto-columns: 100%; align-items: center; }
.reviews .carousel-arrow { top: 50%; }
.review blockquote { margin: 0; padding: 8px clamp(0px, 4vw, 48px); text-align: center; }
.review p { font-style: italic; font-size: 1.3rem; line-height: 1.5; margin-bottom: 1em; }
.review footer { color: #fff; font-size: 14px; font-weight: 600; }
.oekostrom img { margin: 0 auto; width: 100%; max-width: 554px; }

/* ---------- Blog-Übersicht (weiße Karten wie im Original) ---------- */
.blog-hero .hero-grid { align-items: center; }
.blog-hero img { width: 100%; }
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px 30px; }
.post-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 3px; overflow: hidden; box-shadow: 0 0 10px rgba(0, 0, 0, .15); text-decoration: none; transition: box-shadow .2s; }
.post-card a:hover { box-shadow: 0 0 30px rgba(0, 0, 0, .3); }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card-body { padding: 20px 30px 0; display: flex; flex-direction: column; flex: 1; }
.post-card h2, .post-card h3 { font-size: 21px; line-height: 1.2; color: #54595f; margin: 0 0 13px; }
.post-card p { color: #777; font-size: 14px; line-height: 1.5; margin: 0 0 13px; }
.post-card .more { color: #61ce70; font-size: 12px; font-weight: 500; text-transform: uppercase; margin-bottom: 20px; }
.post-card .post-date { margin: auto 0 0; padding: 15px 30px; border-top: 1px solid #eaeaea; color: #adadad; font-size: 12px; }
.disclaimer { margin-top: 3em; }
.disclaimer h2 { font-size: clamp(22px, 2vw + 12px, 32px); line-height: 1.1; }
@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Kategorie-Seiten (im Original hell mit großen Bildern) ---------- */
.category-page { background: #fff; color: #33373d; }
.category-page .page-title { color: #33373d; }
.category-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 60px; max-width: 760px; }
.category-list a { color: #33373d; text-decoration: none; }
.category-list img { width: 100%; }
.category-list h2 { font-size: 24px; margin: 16px 0 0; }
.category-list a:hover h2 { color: var(--gold); }
.category-list p { color: #54595f; margin: 10px 0 0; }

/* ---------- Beitrag (Tipps, Leistungen): Bild, Avatar, großer Titel ---------- */
.article-top { display: flex; flex-direction: column; align-items: center; text-align: center; }
.article-hero { width: 60%; height: auto; }
.article-top .avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 7px solid #fff; margin-top: -60px; position: relative; }
.author-name { margin: 8px 0 5px; color: #828282; font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 2.9px; }
.article-title { text-align: center; font-size: clamp(36px, 4vw + 14px, 60px); line-height: 1; margin: 50px 0 60px; }
.prose { font-size: 16px; line-height: 2.1; }
.prose p { margin-bottom: .9em; }
.prose h2 { font-size: 1.5rem; line-height: 1.3; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; line-height: 1.3; margin-top: 1.4em; }
.prose img, .prose figure { margin: 1.5em auto; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.prose a { word-break: break-word; }
.share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.share h2 { font-size: 24px; text-transform: uppercase; margin: 0; }
.share-links { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; cursor: pointer; color: #fff; transition: filter .2s; }
.share-btn:hover { filter: brightness(1.15); color: #fff; }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }
.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.pinterest { background: #bd081c; }
.share-btn.print { background: #aaa; }
.share-btn.email { background: #ea4335; }
@media (max-width: 767px) {
  .article-title { margin: 30px 0 40px; }
  .share h2 { font-size: 20px; }
}

/* ---------- Beitrag der Blog-Reihe: Titel + Autor links, Bild rechts ---------- */
.blog-article-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.blog-article-title { font: 600 clamp(26px, 2.6vw + 10px, 46px)/1.2 var(--display); margin: 0 0 30px; }
.author-row { display: flex; align-items: center; gap: 25px; margin: 0; font-size: 18px; font-weight: 600; }
.author-row .avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.blog-article-head .article-hero { width: 100%; }
.prose-blog { line-height: 1.5; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 30px; align-items: center; }
.more-grid h2 { grid-column: 4; grid-row: 1; font: 300 clamp(34px, 3vw + 12px, 50px)/1.2 var(--display); text-transform: capitalize; margin: 0; }
.more-grid ul { display: contents; list-style: none; }
.more-grid li { grid-row: 1; }
.more-grid a { position: relative; display: block; color: #fff; text-decoration: none; }
.more-grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.more-grid span { position: absolute; inset: auto 0 0; padding: 12px; background: rgba(30, 32, 64, .85); font-weight: 600; font-size: 15px; line-height: 1.3; opacity: 0; transition: opacity .2s; }
.more-grid a:hover span, .more-grid a:focus-visible span { opacity: 1; }
@media (max-width: 1024px) {
  .more-grid { grid-template-columns: repeat(3, 1fr); }
  .more-grid h2 { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .more-grid li { grid-row: 2; }
}
@media (max-width: 767px) {
  .blog-article-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .more-grid li { grid-row: auto; }
  .more-grid img { aspect-ratio: 3 / 2; }
  .more-grid span { opacity: 1; position: static; display: block; background: none; padding: 8px 0 0; }
}

/* ---------- Rechtstexte ---------- */
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 26px; margin-top: 1.6em; padding-top: 1em; border-top: 1px solid var(--line); }
.legal h2.first { border-top: 0; padding-top: 0; margin-top: 1em; font-size: 20px; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal { font-size: 15px; line-height: 1.7; }
.legal .stand { margin-top: 2em; color: var(--muted); font-size: .85rem; }

/* ---------- Kontaktformular (kompakt, volle Breite wie im Original) ---------- */
.contact-section { padding-top: 30px; }
.contact-form { display: grid; gap: 4px; }
.contact-form label { font-size: 14px; font-weight: 500; margin-top: 8px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
  width: 100%; padding: 8px 14px; font: 14px/1.5 var(--sans); color: #1a1a1a;
  background: #fff; border: 1px solid #818a91; border-radius: 3px;
}
.contact-form textarea { resize: vertical; }
.contact-form [aria-invalid="true"] { border-color: #e2401c; box-shadow: 0 0 0 2px rgba(226, 64, 28, .3); }
.contact-form .btn { margin-top: 12px; border-radius: 3px; padding: 12px; box-shadow: none; }
.form-hint { font-size: .8rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin-top: 10px; }
.form-status.ok { color: #61ce70; }
.form-status.err { color: #ff8a70; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 7vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr; gap: 32px; padding-top: 48px; padding-bottom: 40px; align-items: start; }
.footer-brand img { width: 300px; max-width: 100%; }
.footer-title { font-size: 1rem; margin-bottom: 1em; }
.footer-nav, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .9rem; }
.footer-nav a, .footer-contact a { color: #fff; text-decoration: none; font-weight: 500; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact svg { width: 18px; height: 18px; fill: #fff; flex: none; }
.footer-bottom { border-top: 1px solid var(--line); font-size: .75rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 16px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; text-decoration: none; }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); display: grid; place-items: center; z-index: 200; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; max-width: 90vw; width: auto; box-shadow: var(--shadow); }
.lightbox button { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; }

/* ---------- Druck ---------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .share, .more-posts, .article-hero, .article-top .avatar { display: none !important; }
  a { color: #000; }
}
