/* ============================================================
   StadtCAD / MegaCAD Stadtplanung – Interims-Website
   Farben: Navy #00005a, Weiß. Schrift: Outfit.
   ============================================================ */

:root {
  --navy: #00005a;
  --navy-dark: #000040;
  --white: #ffffff;
  --gray-bg: #f4f5f8;
  --gray-text: #4a4a52;
  --footer-mid: #3c3c42;
  --footer-bottom: #17171b;
  --radius: 6px;
  --max-width: 1200px;
  --font: 'Outfit', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid #eceef2;
  background: var(--white);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--navy);
}

.main-nav a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .main-nav {
    width: 100%;
    gap: 14px 22px;
  }
  .main-nav .btn {
    width: 100%;
    text-align: center;
    margin-top: 6px;
  }
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--navy);
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}

.btn-solid {
  background: var(--navy);
  color: var(--white);
}
.btn-solid:hover { background: var(--navy-dark); }

.btn-outline {
  background: transparent;
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,50,.94) 0%, rgba(0,0,60,.88) 55%, rgba(0,0,90,.45) 100%), var(--hero-img) center/cover no-repeat;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 0 0 14px;
  font-weight: 700;
  max-width: 760px;
}

.hero p.lead {
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.94);
}

/* ---------- Layout: content + sidebar ---------- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 56px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 860px) {
  .content-layout { grid-template-columns: 1fr; }
}

.content-layout.no-sidebar { grid-template-columns: 1fr; }

.main-col section + section { margin-top: 48px; }

h2 {
  font-size: 1.55rem;
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--navy);
}

p { color: var(--gray-text); margin: 0 0 16px; }

.intro-text p:last-child { margin-bottom: 0; }

.quote-box {
  background: var(--gray-bg);
  border-left: 4px solid var(--navy);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--navy);
}

/* ---------- Sidebar (Kundenportal) ---------- */
.sidebar-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: sticky;
  top: 24px;
}

.sidebar-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.sidebar-card p {
  color: rgba(255,255,255,.85);
  font-size: .93rem;
  margin: 0 0 20px;
}

.sidebar-card .btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 12px;
}

.sidebar-card .btn:last-of-type { margin-bottom: 0; }

.sidebar-card .btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.sidebar-card .btn-outline:hover { background: var(--white); color: var(--navy); }

.sidebar-card .btn-solid {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.sidebar-card .btn-solid:hover { background: #e8e8f2; }

/* ---------- Teaser cards (Produkte / Service) ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 640px) {
  .teaser-grid { grid-template-columns: 1fr; }
}

.teaser-card {
  border: 1px solid #e6e7ee;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: box-shadow .15s ease, transform .15s ease;
}

.teaser-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,90,.12);
  transform: translateY(-2px);
}

.teaser-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.teaser-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.teaser-body h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--navy);
}

.teaser-body p { flex: 1; }

.teaser-link {
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.teaser-link:hover { text-decoration: underline; }

/* ---------- Placeholder note ---------- */
.draft-note {
  background: #fff6e0;
  border: 1px solid #f0d98c;
  color: #6b5300;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: .88rem;
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.site-footer { font-size: .92rem; }

.footer-top {
  background: var(--navy);
}

.footer-top .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 24px;
}

.footer-btn {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .88rem;
}
.footer-btn:hover { background: var(--white); color: var(--navy); }

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.footer-mid {
  background: var(--footer-mid);
  color: #e4e4ea;
}

.footer-mid .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 40px 24px;
}

@media (max-width: 720px) {
  .footer-mid .wrap { grid-template-columns: 1fr; }
}

.footer-mid h4 {
  color: var(--white);
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.footer-mid p { color: #cfd0d8; margin: 0 0 6px; }

.footer-mid ul { list-style: none; margin: 0; padding: 0; }
.footer-mid li { margin-bottom: 8px; }
.footer-mid a { color: #cfd0d8; }
.footer-mid a:hover { color: var(--white); text-decoration: underline; }

.footer-links-cols { display: flex; gap: 40px; flex-wrap: wrap; }

.footer-bottom {
  background: var(--footer-bottom);
  color: #9a9aa4;
}

.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
  font-size: .82rem;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom a:hover { color: var(--white); }

/* ---------- Support page specifics ---------- */
.breadcrumb {
  font-size: .85rem;
  color: var(--gray-text);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { text-decoration: underline; }

.support-block {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 20px;
}

.support-block h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--navy);
}

.support-block h4,
.main-col h4 {
  margin: 24px 0 8px;
  font-size: .95rem;
  color: var(--navy);
}

.support-block h4:first-child,
.main-col h4:first-child {
  margin-top: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--navy);
}
.back-link:hover { text-decoration: underline; }

/* ---------- Tables ---------- */
.support-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 20px;
  font-size: .95rem;
}

.support-table th,
.support-table td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid #e2e3ec;
}

.support-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.support-table tbody tr:nth-child(even) { background: #eef0f6; }

/* ---------- Jump nav (Sprungmarken) ---------- */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}

.jump-nav a {
  background: var(--gray-bg);
  color: var(--navy);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
}

.jump-nav a:hover { background: var(--navy); color: var(--white); }

.download-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.download-list li {
  border-bottom: 1px solid #e6e7ee;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.download-list li:first-child { border-top: 1px solid #e6e7ee; }

.download-list .dl-label { color: var(--navy); font-weight: 500; }
.dl-meta { color: var(--gray-text); font-size: .85rem; }

/* ---------- Documentation / PDF links ---------- */
.doc-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--navy);
  font-weight: 500;
}
.doc-link:hover { color: var(--navy-dark); }
