/* =========================================================
   SALZIG GmbH — Design System
   Blau/Gelb (Markenfarben aus Logo) reduziert auf Akzente,
   Anthrazit + warmes Off-White als Basis.
   ========================================================= */

@font-face {
  font-family: "Zilla Slab";
  src: url("/assets/fonts/zilla-slab-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("/assets/fonts/zilla-slab-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("/assets/fonts/zilla-slab-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marke */
  --blue: #2556ac;
  --blue-dark: #1a3f82;
  --yellow: #f6ee30;

  /* Neutrale Basis */
  --ink: #1e2528;
  --ink-soft: #4a5257;
  --paper: #faf8f4;
  --paper-alt: #f1eee6;
  --line: #e2ddd0;
  --white: #ffffff;

  /* Status */
  --notdienst: #d34836;

  /* Typo */
  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-accent {
  background: var(--yellow);
  color: var(--ink);
}
.btn-accent:hover { background: #eae200; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- Notdienst-Leiste ---------- */
.notdienst-bar {
  background: var(--notdienst);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
}
.notdienst-bar a { color: var(--white); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header .logo img { height: 52px; width: auto; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blue);
}
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: 520px;
}
.hero-text { padding: 60px 0; position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.hero-text h1 { color: var(--white); max-width: 15ch; }
.hero-text p.lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image {
  position: relative;
  height: 100%;
  min-height: 420px;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, transparent 18%);
  z-index: 1;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { min-height: 260px; order: -1; }
  .hero-image::before { background: linear-gradient(180deg, transparent 60%, var(--ink) 100%); }
  .hero-text { padding: 32px 0 48px; }
}

/* ---------- Vertrauens-Leiste ---------- */
.trust-strip {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.trust-item .badge-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--blue);
}

/* ---------- Sektionen ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-alt); }
.section-header { max-width: 640px; margin: 0 0 40px; }
.section-header .kicker {
  display: block;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

/* ---------- Leistungen-Grid (technische Strichzeichnungen) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 150ms ease, transform 150ms ease;
}
.service-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.service-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--blue);
}
.service-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 14px; }
.service-card .more { font-weight: 600; font-size: 0.9rem; }

/* ---------- Page-Hero (Unterseiten) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 46px 0 40px;
}
.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.75); }
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p.lead { color: rgba(255,255,255,0.75); max-width: 56ch; margin: 0; }

/* ---------- Prosa-Inhalt ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Zwei-Spalten-Sektion ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Info-Karten (Öffnungszeiten, Kontakt etc.) ---------- */
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.info-card dl { margin: 0; }
.info-card dt { font-weight: 600; color: var(--ink-soft); font-size: 0.85rem; margin-top: 12px; }
.info-card dt:first-child { margin-top: 0; }
.info-card dd { margin: 2px 0 0; }

/* ---------- Formular ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.honeypot { position: absolute; left: -9999px; }

/* ---------- Karriere / Vorteile-Liste ---------- */
.perk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.perk-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
}
.perk-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 3px;
  background: var(--yellow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M4 12l6 6L20 6'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M4 12l6 6L20 6'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Download-Liste ---------- */
.download-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.download-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
}
.download-list a:hover { border-color: var(--blue); text-decoration: none; }
.download-list .filetype {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--paper-alt);
  color: var(--ink-soft);
  padding: 3px 7px;
  border-radius: 3px;
}

/* ---------- Blog-Karten ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.post-card time { font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }
.post-card h3 { margin: 8px 0 10px; font-size: 1.1rem; }
.post-card .cats { margin-top: 12px; }
.post-card .cats span {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--paper-alt);
  color: var(--ink-soft);
  padding: 3px 8px;
  border-radius: 3px;
  margin: 0 4px 4px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--yellow); }
.footer-logo img { height: 44px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }

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