:root {
  --color-primary: #1e4a7a;
  --color-primary-dark: #15365a;
  --color-primary-light: #2a6aad;
  --color-accent: #e8a317;
  --color-accent-hover: #d4920f;
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-text: #1a1f2e;
  --color-text-muted: #5a6478;
  --color-border: #d8dee8;
  --color-footer: #122338;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(18, 35, 56, 0.08);
  --shadow-lg: 0 12px 40px rgba(18, 35, 56, 0.12);
  --header-h: 72px;
  --max-w: 1100px;
  --transition: 0.2s ease;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(18, 35, 56, 0.04);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo:hover { text-decoration: none; color: var(--color-primary); }

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-light));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.nav a:hover {
  color: var(--color-primary);
  background: var(--color-bg);
  text-decoration: none;
}

.nav a.is-active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-cta {
  background: var(--color-primary) !important;
  color: #fff !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: var(--color-primary-dark) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Hero —— */
.hero {
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 45%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(255,255,255,0.12), transparent),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(232,163,23,0.15), transparent);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 38ch;
  margin-bottom: 2rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text);
  box-shadow: 0 4px 14px rgba(232, 163, 23, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-text);
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* —— Sections —— */
section { padding: 4.5rem 0; }

.section-label {
  display: block;
  color: var(--color-primary-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.page-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 0 2.5rem;
}

.page-hero .section-intro { margin-bottom: 0; }

/* —— Services —— */
#tjanster { background: var(--color-surface); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  border-color: #c5d0e0;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-light));
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  color: #fff;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* —— About —— */
#om-oss { background: var(--color-bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.about-points {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-text-muted);
}

.about-points li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.about-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.about-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.about-panel .divider {
  height: 1px;
  background: var(--color-border);
  margin: 1.5rem 0;
}

.trust-note {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* —— Contact (info only, no form) —— */
#kontakt { background: var(--color-surface); }

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 720px;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.contact-item p,
.contact-item a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.contact-cta .btn-primary {
  box-shadow: 0 4px 14px rgba(232, 163, 23, 0.35);
}

.contact-cta .btn-mail {
  background: var(--color-primary);
  color: #fff;
}

.contact-cta .btn-mail:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* —— CTA band —— */
.cta-band {
  background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 40ch;
  margin-inline: auto;
}

.cta-band .hero-actions { justify-content: center; }

/* —— Footer —— */
.site-footer {
  background: var(--color-footer);
  color: rgba(255,255,255,0.75);
  padding: 2.25rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.footer-brand:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-info { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow-lg);
    gap: 0.25rem;
  }

  .nav.is-open { display: flex; }

  .nav a { padding: 0.85rem 1rem; }

  .nav-cta {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }

  .hero { padding: 3.25rem 0 3.75rem; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .contact-cta { flex-direction: column; }
}

/* —— Utilities —— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mb-0 { margin-bottom: 0 !important; }
