/* Jungnickel Bauregie GmbH – statische Website
   Farben aus der bisherigen WordPress-Seite übernommen. Keine externen Schriften (Datenschutz). */
:root {
  --blau: #6daddb;
  --blau-dunkel: #11496a;
  --navy: #003859;
  --text: #333b40;
  --grau: #8d8d8d;
  --linie: #e1e1e1;
  --weiss: #ffffff;
  --hintergrund: #ffffff;
  --schrift: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --breite: 1180px;
  --header-hoehe: 132px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-hoehe); }
body { margin: 0; font-family: var(--schrift); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--hintergrund); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau-dunkel); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Kopfbereich */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--blau); border-bottom: 1px solid rgba(255,255,255,.25); }
.header-inner { max-width: var(--breite); margin: 0 auto; padding: 10px 20px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.logo img { height: 64px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; }
.main-nav a { color: var(--weiss); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 14px; border-left: 1px solid rgba(255,255,255,.55); }
.main-nav a:first-child { border-left: 0; }
.main-nav a:hover, .main-nav a.active { color: var(--navy); }
.nav-toggle { display: none; }

/* Blaue Flächen mit Bauplan-Motiv */
.blueprint { background: url("../img/bauplan-hintergrund.png") center / cover no-repeat, var(--blau); color: var(--weiss); }

.hero { min-height: 480px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.hero h1 { margin: 0; font-weight: 300; font-size: clamp(32px, 5.2vw, 60px); line-height: 1.2; letter-spacing: .01em; }
.hero-line { display: block; }
.rotator { display: grid; }
.rotator-item { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; }
.rotator-item.is-active { opacity: 1; transform: none; }

/* Abschnitte */
.section { padding: 70px 20px; }
.section > * { max-width: var(--breite); margin-left: auto; margin-right: auto; }
.section-title { text-align: center; text-transform: uppercase; font-weight: 400; font-size: 28px; letter-spacing: .04em; margin: 0 auto 40px; color: #222; }
.section-title::after { content: ""; display: block; width: 50px; height: 2px; margin: 16px auto 0; background: var(--blau-dunkel); }
.section-title.light { color: var(--weiss); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.services figure { margin: 0; }
.services figcaption { margin-top: 16px; font-size: 18px; }
.services em { font-family: Georgia, "Times New Roman", serif; color: var(--blau); font-size: 1.15em; }
.partner-note { text-align: center; font-size: 18px; margin-top: 40px; }

.contact-person { padding-top: 60px; padding-bottom: 80px; }
.person { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; max-width: 960px; }
.person h3 { margin: 0; font-size: 26px; letter-spacing: .03em; text-transform: uppercase; }
.person .role { margin: 0 0 14px; font-size: 19px; font-weight: 600; }
.person ul { margin: 0 0 18px; padding-left: 20px; }
.person-contact a { color: var(--weiss); }
.person-img { box-shadow: 0 8px 30px rgba(0,40,70,.25); }

/* Karussell */
.carousel { position: relative; display: flex; align-items: center; gap: 10px; }
.carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 0 14px; flex: 1; scrollbar-width: thin; }
.slide { flex: 0 0 min(560px, 82%); scroll-snap-align: center; }
.slide img { border: 1px solid var(--linie); }
.carousel-btn { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blau); color: var(--weiss); font-size: 28px; line-height: 1; cursor: pointer; }
.carousel-btn:hover { background: var(--blau-dunkel); }

/* Reiter Beispielplanungen */
.tab-list { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--linie); }
.tab-list button { font: inherit; font-size: 14px; background: #f7f7f7; border: 1px solid var(--linie); border-bottom: 0; margin: 0 4px -1px 0; padding: 8px 12px; color: var(--grau); cursor: pointer; }
.tab-list button[aria-selected="true"] { background: var(--weiss); color: var(--text); font-weight: 600; border-bottom: 1px solid var(--weiss); }
.tab-panel { border: 1px solid var(--linie); border-top: 0; padding: 30px; }
.panel-title { margin: 0 0 20px; font-weight: 400; font-size: 22px; }
.views { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.plan img { margin: 0 auto; max-height: 640px; width: auto; }

/* Fußbereich */
.site-footer { background: var(--blau); color: var(--weiss); }
.footer-inner { max-width: var(--breite); margin: 0 auto; padding: 50px 20px 30px; }
.site-footer h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.4); }
.site-footer p { margin: 0 0 14px; }
.site-footer a { color: var(--weiss); }
.footer-bottom { max-width: var(--breite); margin: 0 auto; padding: 14px 20px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.3); }
.footer-bottom nav a { margin-left: 16px; }

/* Bildansicht */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,20,35,.92); display: flex; align-items: center; justify-content: center; padding: 50px 60px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; background: var(--weiss); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--weiss); font-size: 44px; cursor: pointer; padding: 6px 14px; }
.lb-close { top: 6px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* Rechtstexte */
.legal { max-width: 820px; margin: 0 auto; padding: 50px 20px 70px; }
.legal h1 { font-weight: 400; font-size: 32px; }
.legal h2 { font-size: 20px; margin-top: 34px; }
.legal h3 { font-size: 17px; margin-top: 22px; }

/* Mobil */
@media (max-width: 860px) {
  :root { --header-hoehe: 76px; }
  .header-inner { flex-direction: row; justify-content: space-between; padding: 8px 16px; }
  .logo img { height: 56px; }
  .nav-toggle { display: block; font: inherit; font-weight: 600; background: var(--weiss); color: var(--navy); border: 0; border-radius: 4px; padding: 8px 14px; cursor: pointer; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--blau); flex-direction: column; padding: 6px 0 12px; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
  .main-nav.open { display: flex; }
  .main-nav a { border-left: 0; padding: 12px 20px; }
  .services { grid-template-columns: 1fr 1fr; gap: 28px; }
  .person { grid-template-columns: 1fr; }
  .views { grid-template-columns: 1fr; }
  .tab-panel { padding: 18px; }
  .section { padding: 50px 16px; }
  .hero { min-height: 360px; }
}
@media (max-width: 520px) {
  .services { grid-template-columns: 1fr; }
  .carousel-btn { display: none; }
  .lightbox { padding: 40px 8px; }
}
