/* ============================================================
   Sven Weigle IT-Dienstleistung - customer-first redesign
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef6f3;
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --line: #d8dee8;
  --primary: #175cd3;
  --primary-dark: #1849a9;
  --teal: #0e9384;
  --amber: #b54708;
  --amber-soft: #fff4e5;
  --nav: rgba(255, 255, 255, .92);
  --shadow: 0 14px 36px rgba(16, 24, 40, .10);
  --shadow-soft: 0 6px 18px rgba(16, 24, 40, .07);
  --radius: 8px;
  --max: 1120px;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 15ch;
  font-size: clamp(2.35rem, 5vw, 4.35rem);
  font-weight: 900;
}
h2 { font-size: clamp(1.55rem, 2.35vw, 2.35rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 900; }
p { color: var(--text); }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: .75rem;
  z-index: 999;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
  padding: .7rem 1rem;
  border-radius: var(--radius);
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav);
  border-bottom: 1px solid rgba(216, 222, 232, .82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.nav-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  padding: 0;
}
.nav-links a,
.mobile-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: var(--radius);
  padding: .55rem .85rem;
  color: var(--text);
  font-size: .94rem;
  font-weight: 850;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.is-active,
.mobile-menu a:hover,
.mobile-menu a.is-active {
  background: #eaf1ff;
  color: var(--primary-dark);
}
.nav-links .nav-cta {
  margin-left: .35rem;
  background: var(--ink);
  color: #fff;
}
.nav-links .nav-cta:hover { background: var(--primary-dark); color: #fff; }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  border-radius: 99px;
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }

main { padding-bottom: 3rem; }
.section { padding: clamp(2.6rem, 4.5vw, 4.1rem) 0; }
.section.tight { padding: clamp(2rem, 3.5vw, 3rem) 0; }
.section-plain { background: var(--surface); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: .9rem;
  border: 1px solid #b7d4ca;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: #05603a;
  padding: .34rem .65rem;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.eyebrow-light {
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.12);
  color: #fff;
}
.lead {
  max-width: 68ch;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.hero {
  min-height: min(720px, calc(100vh - 74px));
  display: grid;
  align-items: center;
  padding: clamp(2.2rem, 4vw, 3.6rem) 0;
  background: linear-gradient(115deg, #f8fafc 0%, #f8fafc 48%, rgba(23,92,211,.14) 48%, rgba(14,147,132,.18) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .54fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}
.hero-copy { max-width: 760px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.7rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: .78rem 1.05rem;
  font-weight: 900;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: #eaf1ff; text-decoration: none; }

.status-panel,
.contact-panel,
.card,
.service-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-soft);
}
.status-panel,
.contact-panel,
.info-card { padding: clamp(1.15rem, 3vw, 1.7rem); }
.status-panel img {
  width: 54px;
  height: 54px;
  margin: 1rem 0;
  border-radius: var(--radius);
}
.status-panel h2,
.status-panel h3,
.contact-panel h2,
.contact-panel h3 { margin-bottom: .6rem; }
.status-panel.compact { align-self: start; }
.status-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 850;
}
.status-topline strong {
  border-radius: var(--radius);
  background: var(--amber-soft);
  color: var(--amber);
  padding: .22rem .55rem;
}
.check-list {
  display: grid;
  gap: .62rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}
.check-list li {
  display: flex;
  gap: .62rem;
  align-items: flex-start;
  color: var(--text);
  font-weight: 850;
}
.check-list li::before {
  content: "";
  width: .55rem;
  height: .55rem;
  flex: 0 0 .55rem;
  margin-top: .48rem;
  border-radius: 50%;
  background: var(--teal);
}

.section-head {
  max-width: 790px;
  margin-bottom: 1.7rem;
}
.section-head p { margin-top: .9rem; font-size: 1.08rem; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  min-height: 205px;
  padding: 1.1rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover,
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-kicker {
  display: inline-flex;
  margin-bottom: 1.45rem;
  color: var(--primary);
  font-weight: 950;
}
.card p,
.service-card p { margin-top: .55rem; }

.page-head {
  padding: clamp(2.4rem, 4.8vw, 4.2rem) 0 clamp(1.8rem, 3vw, 2.45rem);
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fb 55%, #edf7f5 100%);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 17ch; }
.page-head .lead { max-width: 78ch; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.service-card {
  min-height: 235px;
  padding: 1.1rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card span {
  display: inline-flex;
  margin-bottom: 1.45rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}
.service-card strong {
  display: inline-flex;
  margin-top: 1rem;
  border-radius: var(--radius);
  background: var(--amber-soft);
  color: var(--amber);
  padding: .28rem .55rem;
  font-size: .82rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 1rem;
  align-items: start;
}
.accent-band {
  background: linear-gradient(135deg, #102a43, #175cd3 58%, #0e9384);
}
.accent-band h2,
.accent-band p { color: #fff; }
.accent-band .contact-panel {
  background: rgba(255,255,255,.96);
}

.contact-box {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}
.contact-box a,
.contact-box span {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: .9rem;
  font-weight: 850;
}

.legal-content {
  display: grid;
  gap: 1rem;
}
.legal-content h2 { font-size: 1.35rem; margin-bottom: .45rem; }
.legal-content p + p { margin-top: .7rem; }
.legal-content ul { padding-left: 1.15rem; color: var(--text); }
.legal-content li + li { margin-top: .45rem; }

.footer {
  border-top: 1px solid var(--line);
  padding: 2.3rem 0;
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 1.25rem;
  align-items: start;
}
.footer p { margin-top: .75rem; }
.footer h4 { margin-bottom: .55rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .4rem; }
.footer-bottom {
  margin-top: 1.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .92rem;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .mobile-menu {
    position: fixed;
    inset: 74px 0 auto 0;
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: .75rem 20px 1rem;
    box-shadow: var(--shadow);
  }
  .mobile-menu.is-open { display: grid; gap: .25rem; }
  .mobile-menu a { width: 100%; }
  .hero {
    min-height: auto;
    background: linear-gradient(140deg, #f8fafc, #eef6f3);
  }
  .hero-grid,
  .split { grid-template-columns: 1fr; }
  .grid-3,
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  h1 { max-width: 100%; font-size: 2.45rem; }
  .page-head h1 { max-width: 100%; }
  .nav-row { min-height: 66px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: .95rem; }
  .brand small { font-size: .7rem; }
  .mobile-menu { inset: 66px 0 auto 0; padding-inline: 14px; }
  .hero { padding-top: 2rem; }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .section,
  .section.tight { padding: 2.6rem 0; }
  .grid-3,
  .service-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .card,
  .service-card { min-height: auto; }
  .footer-bottom { display: grid; }
}
