/* MS Planungsbüro — Basisstile (Schwarz / Weiß / Grau) */

:root {
  --bg: #0a0a0a;
  --bg-soft: #151515;
  --bg-elev: #1e1e1e;
  --ink: #f3f3f1;
  --ink-soft: #9c9c9c;
  --line: #2b2b2b;
  --invert-bg: #c7c7c4;
  --invert-ink: #0a0a0a;
  --max: 1360px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; margin: 0; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding-left: 64px; padding-right: 64px; }
.eyebrow { font-size: 13px; letter-spacing: 0.12em; color: var(--ink-soft); font-weight: 500; margin-bottom: 16px; text-transform: uppercase; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,10,10,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .container { padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 56px; width: auto; display: block; }
.footer-brand .brand-logo { height: 120px; }
.main-nav { display: flex; gap: 40px; align-items: center; }
.nav-link { color: var(--ink-soft); font-size: 14px; letter-spacing: 0.02em; transition: color .15s ease; }
.nav-link:hover, .nav-link:focus-visible { color: var(--ink); }

/* Buttons */
.btn { display: inline-block; padding: 15px 28px; font-size: 15px; font-weight: 500; border-radius: 2px; }
.btn-sm { padding: 11px 22px; font-size: 14px; }
.btn-primary { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); transition: background .15s ease; }
.btn-primary:hover { background: #d6d6d3; }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); transition: background .15s ease, color .15s ease; }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-invert-primary { background: var(--invert-ink); color: var(--invert-bg); border: 1px solid var(--invert-ink); transition: opacity .15s ease; }
.btn-invert-primary:hover { opacity: .75; }
.btn-invert-secondary { background: transparent; color: var(--invert-ink); border: 1px solid var(--invert-ink); transition: background .15s ease, color .15s ease; }
.btn-invert-secondary:hover { background: var(--invert-ink); color: var(--invert-bg); }

/* Hero */
.hero { padding: 120px 0 90px; }
.hero-grid { display: flex; gap: 64px; align-items: center; }
.hero-copy { flex: 1; min-width: 0; }
.hero-copy h1 { font-size: 52px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; max-width: 640px; }
.hero-copy p { margin-top: 24px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 520px; }
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero-media { flex: 1; min-width: 0; }
.hero-logo { width: 100%; height: auto; display: block; }

/* Invert band */
.band-invert { background: var(--invert-bg); padding: 56px 0; }
.band-invert p { max-width: 900px; margin: 0 auto; text-align: center; color: var(--invert-ink); font-family: 'Space Grotesk', sans-serif; font-size: 26px; line-height: 1.4; font-weight: 600; }

/* Sections */
section { padding: 120px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; }
.section-head p { margin-top: 16px; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.service-card { background: var(--bg-soft); border: 1px solid var(--line); padding: 32px 26px; display: flex; flex-direction: column; gap: 18px; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.service-card:hover { border-color: var(--ink); background: var(--bg-elev); transform: translateY(-2px); }
.service-card h3 { font-size: 19px; font-weight: 600; }
.service-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.service-card--priority { border-color: var(--ink-soft); }

/* About */
.about { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: flex; gap: 72px; align-items: flex-start; }
.about-copy { flex: 1; min-width: 0; }
.about-copy h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; max-width: 480px; }
.about-copy p { margin-top: 20px; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); max-width: 460px; }
.about-cards { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-card { background: var(--invert-bg); border: 1px solid var(--invert-bg); padding: 28px 30px; }
.about-card .eyebrow { color: #4a4a4a; margin-bottom: 10px; }
.about-card h3 { font-size: 20px; font-weight: 600; color: var(--invert-ink); }
.about-card p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: #3f3f3f; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 640px; margin-bottom: 40px; }
.team-photo { width: 100%; aspect-ratio: 1 / 1; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.team-card h3 { margin-top: 18px; font-size: 18px; font-weight: 600; }
.team-card p { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }
.team-photo-wide { width: 100%; aspect-ratio: 2 / 1; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.team-photo-wide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 5%; }

/* Portals */
.portals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.portal-card { background: var(--bg-soft); border: 1px solid var(--line); padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; transition: border-color .15s ease, background .15s ease; }
.portal-card:hover { border-color: var(--ink); background: var(--bg-elev); }
.portal-card-head { display: flex; align-items: center; justify-content: space-between; }
.portal-card-head span { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; }
.portal-card p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; }
.faq-item { background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 26px; }
.faq-item summary { cursor: pointer; padding: 20px 0; font-size: 16.5px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--ink-soft); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding-bottom: 22px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

/* Contact CTA */
.cta { background: var(--invert-bg); text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta h2 { color: var(--invert-ink); font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
.cta p { margin-top: 16px; color: #4a4a4a; font-size: 15.5px; line-height: 1.7; }
.cta-actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: #9c9c9c; max-width: 260px; margin-top: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { color: #ffffff; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.footer-link { color: #9c9c9c; font-size: 14px; transition: color .15s ease; }
.footer-link:hover { color: #ffffff; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: #7a7a7a; }

/* Impressum page */
.legal { max-width: 1000px; }
.legal h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.01em; }
.legal > p.lead { margin-top: 16px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 640px; }
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.company-block { border: 1px solid var(--line); padding: 32px 34px; }
.company-block h2 { font-size: 19px; font-weight: 600; }
.company-block p { margin-top: 16px; font-size: 14.5px; line-height: 1.9; }
.legal-notes { margin-top: 56px; display: flex; flex-direction: column; gap: 32px; max-width: 720px; }
.legal-notes h2 { font-size: 16px; font-weight: 600; }
.legal-notes p { margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.legal-notes ul { margin: 12px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.legal-notes strong { color: var(--ink); font-weight: 600; }
.legal-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.legal-footer .container { display: flex; gap: 28px; flex-wrap: wrap; max-width: 1000px; }
.legal-disclaimer { font-size: 12.5px; line-height: 1.7; color: #9a9a9a; border-top: 1px solid var(--line); padding-top: 20px; }

@media (max-width: 900px) {
  .container { padding-left: 28px; padding-right: 28px; }
  .main-nav { display: none; }
  .hero-grid, .about-grid { flex-direction: column; align-items: stretch; }
  .about-grid { gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portals-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 56px; }
  .hero-copy h1 { font-size: 40px; overflow-wrap: break-word; hyphens: auto; }
  section { padding: 80px 0; }
}

@media (max-width: 600px) {
  .hero-copy h1 { font-size: 30px; }
  .section-head h2, .about-copy h2 { font-size: 28px; overflow-wrap: break-word; hyphens: auto; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .band-invert p { font-size: 21px; }
  .cta h2 { font-size: 26px; }
}
