/* ============================================================
   Cornelia Dhonau-Wehner – Steuerberatung
   Statisches Stylesheet (Vanilla CSS)
   ============================================================ */

:root {
  /* Markenfarben aus dem Logo (Brauntöne) */
  --brown-900: #4a2c1a;
  --brown-800: #5a3826;
  --brown-700: #6f4630;
  --brown-500: #96674a;
  --brown-400: #a97e5f;
  --tan-300: #c9a07d;
  --tan-200: #ddc0a3;
  --tan-100: #eddccb;

  --cream: #faf6f1;
  --cream-dark: #f2e9df;
  --white: #ffffff;

  --ink: #2e2018;
  --muted: #6b5a4c;

  --primary: var(--brown-800);
  --primary-hover: var(--brown-900);
  --accent: var(--tan-300);

  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(74, 44, 26, 0.08);
  --shadow-md: 0 8px 24px rgba(74, 44, 26, 0.10);
  --shadow-lg: 0 20px 48px rgba(74, 44, 26, 0.14);

  --container: 1140px;
  --header-h: 108px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--cream);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-head {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--brown-800);
  line-height: 1.15;
  font-weight: 700;
  text-wrap: balance;
}

a { color: var(--brown-700); text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--white); }
.btn-outline { background: transparent; color: var(--brown-800); border-color: var(--tan-300); }
.btn-outline:hover { background: var(--brown-800); color: var(--white); border-color: var(--brown-800); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--brown-800); }
.btn-light:hover { background: var(--cream-dark); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #C7B199;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--tan-100);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 74px; width: auto; }
@media (max-width: 760px) {
  .nav-logo img { height: 58px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--brown-800);
  font-weight: 500;
  font-size: 0.96rem;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--tan-100); }
.nav-links a.nav-cta {
  background: var(--primary);
  color: var(--white);
  margin-left: 6px;
}
.nav-links a.nav-cta:hover { background: var(--primary-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--brown-800);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


/* Soft header → content blend (starts below fixed header; layout height unchanged) */
:root {
  --header-blend-h: 96px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 90px;
  background:
    linear-gradient(
      to bottom,
      #C7B199 0px,
      #C7B199 var(--header-h),
      #D4C4AE calc(var(--header-h) + 40px),
      #FAF6F1 calc(var(--header-h) + var(--header-blend-h))
    ),
    radial-gradient(120% 90% at 85% 0%, var(--tan-100) 0%, rgba(237,220,203,0) 55%);
  overflow: hidden;
}
  .hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 56px;
  align-items: center;
  }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-500);
  background: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 20px;
  white-space: nowrap;
  text-wrap: nowrap;
}
.hero h1 .accent { color: var(--tan-300); }
.hero p.lead {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 33em;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
/* Animierte Bildmarke (Dokument + Häkchen) */
.hero-doc {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroFloat 6.5s ease-in-out infinite;
}
.doc-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 14px 24px rgba(110, 84, 60, 0.14));
}
.doc-sheet-fill {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 40%;
  animation: docFadeIn 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
}
.doc-fold-fill {
  opacity: 0;
  animation: docFadeIn 0.7s ease 0.55s forwards;
}
.doc-lines {
  opacity: 0;
  animation: docFadeIn 0.8s ease 1.05s forwards;
}
.doc-path {
  fill: none;
  stroke-dashoffset: var(--len);
  stroke-dasharray: var(--len);
  animation: docDraw 1.35s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.doc-outline { --len: 1; animation-delay: 0.2s; }
.doc-fold { --len: 180; animation-delay: 0.55s; }
.doc-check-ring { --len: 270; animation-delay: 1.55s; }
.doc-check { --len: 90; animation-delay: 2.05s; }
@keyframes docDraw { to { stroke-dashoffset: 0; } }
@keyframes docFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Text sits on the document page */
.hero-doc-caption {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  width: 58%;
  text-align: center;
  opacity: 0;
  animation: docCaption 0.85s ease 1.15s forwards;
  pointer-events: none;
}
.hero-doc-name {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--brown-800);
  letter-spacing: -0.01em;
  line-height: 1.12;
}
.hero-doc-first {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
}
.hero-doc-last {
  display: block;
  font-size: 1.35rem;
}
.hero-doc-firm {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.01em;
}
.hero-doc-role {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  margin: 10px auto 0;
  max-width: 16em;
}
@keyframes docCaption {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-doc { animation: none; }
  .doc-path { animation-duration: 0.01s; }
  .doc-sheet-fill, .doc-fold-fill, .doc-lines, .hero-doc-caption { animation-delay: 0s; animation-duration: 0.01s; }
}

/* dekorative Bögen (aus dem Logo) – ungenutzt im Hero, für Kompatibilität belassen */
.arc-decor {
  position: absolute;
  right: -60px; top: 40px;
  width: 340px; height: 340px;
  pointer-events: none;
  opacity: 0.5;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--cream-dark); }
.section-brown {
  background: linear-gradient(135deg, var(--brown-800), var(--brown-900));
  color: var(--tan-100);
}
.section-brown h2, .section-brown h3 { color: var(--white); }

.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown-500);
  margin-bottom: 12px;
  display: block;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* ---------- Kanzlei / Text-Blöcke ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: start;
}
.about-text { padding-top: 6px; }
.about-text h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin-bottom: 22px; }
.about-text p { color: var(--muted); font-size: 1.06rem; line-height: 1.75; margin-bottom: 18px; }
.about-text p:last-child {
  color: var(--brown-700);
  font-weight: 500;
  font-size: 1.12rem;
  margin-top: 4px;
}
.about-text .welcome {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: var(--brown-800);
  font-weight: 700;
}
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 190px;
  object-fit: cover;
}

/* ---------- Profil-Karte in der Kanzlei-Spalte ---------- */
.about-profile {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.about-profile-head {
  flex: 0 0 auto;
  width: 150px;
  text-align: center;
}
.about-profile .profile-photo {
  background: transparent;
  box-shadow: none;
  padding: 0;
  width: 100%;
}
.about-profile .profile-photo img { border-radius: 14px; width: 100%; display: block; }
.about-profile-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--brown-800);
  margin-top: 14px;
}
.about-profile-role {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown-500);
  margin-top: 4px;
}
.about-profile .profile-facts {
  flex: 1;
  text-align: left;
  margin-top: 0;
}
.about-profile .profile-facts li {
  display: block;
  padding: 10px 0;
}
.about-profile .profile-facts li:first-child { padding-top: 0; }
.about-profile .profile-facts .yr {
  display: block;
  min-width: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.about-profile .profile-facts .fact { font-size: 0.92rem; line-height: 1.4; }

/* ---------- Cornelia Profil ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.profile-photo {
  background: var(--white);
  padding: 18px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.profile-photo img { border-radius: 16px; width: 100%; }
.profile-facts { list-style: none; margin-top: 26px; }
.profile-facts li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--tan-100);
}
.profile-facts li:last-child { border-bottom: none; }
.profile-facts .yr {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--tan-300);
  min-width: 130px;
  font-size: 0.95rem;
}
.profile-facts .fact { color: var(--ink); font-weight: 500; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-card img {
  width: 104px; height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--tan-100);
}
.team-card .t-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--brown-800);
  font-size: 1.05rem;
}
.team-card .t-role { color: var(--muted); font-size: 0.9rem; margin-top: 4px; overflow-wrap: break-word; hyphens: auto; }
.team-card .t-name { overflow-wrap: break-word; }
@media (min-width: 901px) {
  .team-lead-break { display: block; }
}

/* ---------- Leistungen ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--tan-300);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tan-100);
  color: var(--brown-700);
  border-radius: 14px;
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.22rem; margin-bottom: 14px; overflow-wrap: break-word; hyphens: auto; }
.service-card ul { list-style: none; }
.service-card ul li {
  color: var(--muted);
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 0.98rem;
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tan-300);
}

/* ---------- Aktuelles Teaser ---------- */
.news-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.news-cta-card {
  background: var(--white);
  border-radius: 20px;
  padding: 38px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease;
}
.news-cta-card:hover { transform: translateY(-6px); }
.news-cta-card .badge {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-700);
  background: var(--tan-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.news-cta-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.news-cta-card p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info .info-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.contact-info .info-row:last-child { border-bottom: none; }
.contact-info .info-icon {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--tan-200);
}
.contact-info .info-icon svg { width: 22px; height: 22px; }
.contact-info .info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tan-300);
  margin-bottom: 3px;
}
.contact-info .info-value { color: var(--white); font-size: 1.05rem; }
.contact-info .info-value a { color: var(--white); }
.contact-info .info-value a:hover { color: var(--tan-200); }

.map-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 340px;
}
.map-card iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.hours-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 24px;
  margin-top: 26px;
}
.hours-card h4 { color: var(--white); margin-bottom: 12px; font-size: 1.1rem; }
.hours-card p { color: var(--tan-100); font-size: 0.98rem; }

/* ---------- News-Banner (localStorage) ---------- */
.news-banner {
  background: linear-gradient(135deg, var(--tan-300), var(--brown-500));
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-md);
  margin-bottom: 8px;
}
.news-banner .nb-icon {
  flex: 0 0 40px; width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.news-banner .nb-title { font-family: 'Poppins', sans-serif; font-weight: 600; margin-bottom: 2px; }
.news-banner .nb-text { font-size: 0.97rem; opacity: 0.95; }
.news-banner-wrap {
  position: relative;
  padding-top: calc(var(--header-h) + 20px);
  background: linear-gradient(
    to bottom,
    #C7B199 0px,
    #C7B199 var(--header-h),
    #D4C4AE calc(var(--header-h) + 40px),
    #FAF6F1 calc(var(--header-h) + var(--header-blend-h))
  );
}
.news-banner-wrap.empty { display: none; }

#news-banner.empty,
#news-banner-contact.empty,
#news-banner[hidden],
#news-banner-contact[hidden] {
  display: none !important;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-900);
  color: var(--tan-200);
  padding: 56px 0 28px;
}
  .footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
  }
  .footer-logo {
  background: #C7B199;
  padding: 24px 28px;
  border-radius: 16px;
  display: inline-block;
  max-width: 100%;
  margin-bottom: 20px;
  }
  .footer-logo img { display: block; width: 420px; max-width: 100%; height: auto; }
.site-footer p { color: var(--tan-200); font-size: 0.96rem; opacity: 0.85; }
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--tan-200); font-size: 0.96rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
}
.footer-bottom a { color: var(--tan-200); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Legal / Subpages ---------- */
.page-hero {
  padding: calc(var(--header-h) + 60px) 0 50px;
  background: linear-gradient(135deg, var(--brown-800), var(--brown-900));
  color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: var(--tan-100); margin-top: 10px; }
.breadcrumb { font-size: 0.9rem; color: var(--tan-200); margin-bottom: 16px; }
.breadcrumb a { color: var(--tan-200); }
.breadcrumb a:hover { color: var(--white); }

.legal-content { max-width: 820px; }
.legal-content h2 {
  font-size: 1.5rem; margin: 38px 0 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--tan-100);
}
.legal-content h3 { font-size: 1.15rem; margin: 24px 0 8px; color: var(--brown-700); }
.legal-content p { color: var(--muted); margin-bottom: 14px; }
.legal-content ul { margin: 0 0 14px 22px; color: var(--muted); }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--brown-700); text-decoration: underline; word-break: break-word; }

/* ---------- Aktuelles page ---------- */
.news-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.hub-card {
  background: var(--white);
  border-radius: 22px;
  padding: 44px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  border-top: 5px solid var(--tan-300);
}
.hub-card .hub-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--tan-100);
  color: var(--brown-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.hub-card .hub-icon svg { width: 32px; height: 32px; }
.hub-card h2 { font-size: 1.6rem; margin-bottom: 12px; }
.hub-card p { color: var(--muted); margin-bottom: 26px; flex-grow: 1; }

/* ---------- News-Feeds (integriert) ---------- */
.news-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.news-column {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 30px;
  border-top: 5px solid var(--tan-300);
  min-width: 0;
}
.news-col-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--tan-100);
}
.news-col-icon {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--tan-100);
  color: var(--brown-700);
  display: flex; align-items: center; justify-content: center;
}
.news-col-icon.alt { background: var(--brown-800); color: var(--white); }
.news-col-icon svg { width: 26px; height: 26px; }
.news-col-head h2 { font-size: 1.3rem; margin-bottom: 4px; }
.news-col-head p { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

.na-list { display: flex; flex-direction: column; gap: 16px; }

.na-card {
  display: flex;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--cream-dark);
  border-radius: 14px;
  background: var(--cream);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.na-card:hover, .na-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--tan-200);
  background: var(--white);
  outline: none;
}
.na-card-media {
  flex: 0 0 92px;
  width: 92px; height: 92px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-dark);
}
.na-card-media img { width: 100%; height: 100%; object-fit: cover; }
.na-card-body { min-width: 0; display: flex; flex-direction: column; }
.na-card-meta { margin-bottom: 6px; }
.na-date {
  font-family: 'Poppins', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brown-500);
}
.na-card-title {
  font-size: 0.92rem;
  line-height: 1.3;
  margin-bottom: 5px;
  color: var(--brown-800);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.na-card-lead {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.na-readmore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--brown-700);
}
.na-readmore svg { width: 15px; height: 15px; transition: transform .2s ease; }
.na-card:hover .na-readmore svg { transform: translateX(3px); }

.na-empty { color: var(--muted); font-size: 0.95rem; padding: 20px 4px; }
.na-empty a { color: var(--brown-700); text-decoration: underline; }

.na-skeleton {
  height: 92px;
  border-radius: 14px;
  background: linear-gradient(100deg, var(--cream-dark) 30%, #f7efe6 50%, var(--cream-dark) 70%);
  background-size: 200% 100%;
  animation: na-shimmer 1.3s ease-in-out infinite;
}
@keyframes na-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- News-Modal ---------- */
.na-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.na-modal.open { display: flex; }
.na-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(46, 32, 24, 0.55);
  backdrop-filter: blur(3px);
}
.na-modal-dialog {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: na-pop .25s ease;
}
@keyframes na-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.na-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--cream-dark);
  color: var(--brown-800);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background .2s ease;
}
.na-modal-close:hover { background: var(--tan-200); }
.na-modal-close svg { width: 20px; height: 20px; }
.na-modal-body { overflow-y: auto; padding: 40px; }
.na-modal-tag {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brown-700);
  background: var(--tan-100);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.na-modal-title { font-size: 1.6rem; line-height: 1.2; margin-bottom: 8px; }
.na-modal-date { color: var(--brown-500); font-size: 0.9rem; margin-bottom: 20px; font-weight: 500; }
.na-modal-img { width: 100%; border-radius: 14px; margin-bottom: 22px; }
.na-modal-lead { font-size: 1.08rem; color: var(--ink); font-weight: 500; margin-bottom: 18px; }
.na-modal-content { color: var(--muted); line-height: 1.7; }
.na-modal-content h3, .na-modal-content h2 {
  font-size: 1.15rem; color: var(--brown-800); margin: 22px 0 8px;
}
.na-modal-content p { margin-bottom: 14px; }
.na-modal-content ul, .na-modal-content ol { margin: 0 0 14px 22px; }
.na-modal-content li { margin-bottom: 6px; }
.na-modal-content a { color: var(--brown-700); text-decoration: underline; }
.na-modal-content img { border-radius: 10px; margin: 10px 0; }
.na-modal-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.94rem; }
.na-modal-content td, .na-modal-content th { border: 1px solid var(--tan-100); padding: 8px 10px; text-align: left; }

/* ---------- Admin ---------- */
.admin-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    linear-gradient(
      to bottom,
      #C7B199 0px,
      #C7B199 var(--header-h),
      #D4C4AE calc(var(--header-h) + 40px),
      #FAF6F1 calc(var(--header-h) + var(--header-blend-h))
    ),
    radial-gradient(100% 80% at 50% 0%, var(--tan-100) 0%, rgba(237,220,203,0) 60%);
}
.admin-card {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 460px;
}
.admin-card.wide { max-width: 720px; }
.admin-card .admin-logo { display: block; margin: 0 auto 24px; height: 44px; width: auto; }
.admin-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: 6px; }
.admin-card .sub { text-align: center; color: var(--muted); margin-bottom: 28px; font-size: 0.95rem; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
  color: var(--brown-800);
  font-family: 'Poppins', sans-serif;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--tan-200);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brown-500);
  box-shadow: 0 0 0 3px rgba(150,103,74,0.15);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; }

.admin-msg {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.94rem;
  margin-bottom: 18px;
  display: none;
}
.admin-msg.error { background: #fbe6e0; color: #a03412; display: block; }
.admin-msg.success { background: #e4f0e2; color: #2f6b2a; display: block; }

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-topbar img { height: 40px; }
.admin-preview {
  border: 1.5px dashed var(--tan-300);
  border-radius: 12px;
  padding: 18px;
  margin-top: 22px;
  background: var(--cream);
}
.admin-preview h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.admin-hint { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* ---------- Scroll animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .profile-grid, .contact-grid,
  .news-cta-grid, .news-hub-grid, .news-columns, .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid { gap: 30px; }
  .profile-photo { max-width: 320px; }
  .arc-decor { display: none; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-profile { max-width: 440px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    padding: 12px 20px 24px;
    border-bottom: 1px solid var(--tan-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform .35s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 12px; border-radius: 10px; font-size: 1.02rem; }
  .nav-links a.nav-cta { margin: 8px 0 0; text-align: center; }
  .section { padding: 64px 0; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .about-gallery img:nth-child(1) { margin-top: 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .service-card, .hub-card, .news-cta-card { padding: 24px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .team-card { padding: 16px; }
  .team-card img { width: 84px; height: 84px; }
  .team-card .t-name { font-size: 0.98rem; }
  .team-card .t-role { font-size: 0.82rem; }

  /* Hero-Titel etwas kleiner, damit beide Zeilen auf einer Zeile bleiben */
  .hero h1 { font-size: 1.6rem; }

  /* Profilkarte in der mobilen Version untereinander statt nebeneinander */
  .about-profile { flex-direction: column; align-items: stretch; gap: 18px; padding: 22px; }
  .about-profile-head { width: 100%; }
  .about-profile-head .profile-photo { max-width: 220px; margin: 0 auto; }
  .about-profile .profile-facts { width: 100%; }
  .about-profile .profile-facts li { padding: 12px 0; border-bottom: 1px solid var(--tan-100); }
  .about-profile .profile-facts li:last-child { border-bottom: none; }

    /* Hero-Dokument: Text auf dem Blatt, mobil etwas kompakter */
  .hero-doc { max-width: 340px; }
  .hero-doc-caption { top: 20%; width: 62%; }
  .hero-doc-first { font-size: 0.88rem; }
  .hero-doc-last { font-size: 1.1rem; }
  .hero-doc-firm { font-size: 0.78rem; margin-top: 1px; }
  .hero-doc-role { font-size: 0.64rem; line-height: 1.35; margin-top: 6px; }


  /* Lebenslauf: Jahr über Text stapeln, damit nichts abgeschnitten wird */
  .profile-facts li { flex-direction: column; gap: 3px; padding: 14px 0; }
  .profile-facts .yr { min-width: 0; }

  /* News-Feeds kompakter */
  .news-column { padding: 20px; }
  .na-card { padding: 10px; gap: 12px; }
  .na-card-media { flex: 0 0 64px; width: 64px; height: 64px; }
  .na-card-title { font-size: 0.84rem; }
  .na-card-lead { font-size: 0.82rem; -webkit-line-clamp: 2; }
  .na-readmore { font-size: 0.78rem; margin-top: 6px; }
  .news-col-head h2 { font-size: 1.15rem; }
  .news-col-icon { flex: 0 0 44px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
