/* ===================================================
   STS STAPLERTECHNIK – SHARED STYLESHEET
   100% self-hosted, zero external dependencies
   DSGVO-konform: keine Fonts, keine Tracker
   =================================================== */

/* ---- RESET & BASE -------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red:        #E40512;
  --red-dark:   #b80410;
  --text:       #1A1A1A;
  --text-muted: #555555;
  --bg:         #FFFFFF;
  --bg-light:   #F0F0F0;
  --border:     #E0E0E0;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.10);
  --radius:     10px;
  --header-h:   72px;
  --font:       system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: var(--red);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* ---- CONTAINER ----------------------------------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

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

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
}

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

.nav-link {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--bg-light);
  color: var(--red);
  text-decoration: none;
}

.nav-link.active {
  color: var(--red);
  background: #fdf0f0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: background 0.2s;
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 24px 16px;
  gap: 4px;
}

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

/* ===================================================
   HERO (index only)
   =================================================== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.60);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1.05rem;
  color: #333;
  max-width: 520px;
  margin-bottom: 28px;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.18s, transform 0.15s;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

/* ===================================================
   CONTACT BOX (hero)
   =================================================== */
.contact-box {
  background: #fff;
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px 26px;
}

.contact-box-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-list a {
  color: var(--red);
  font-weight: 600;
}

/* ===================================================
   SERVICES SECTION
   =================================================== */
.services-section {
  padding: 80px 0 72px;
  background: var(--bg);
}

.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 12px auto 0;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s, border-top-color 0.22s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--red);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-list li {
  font-size: 0.9rem;
  color: #333;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.card-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.card-list a {
  color: var(--red);
  font-weight: 600;
}

/* ===================================================
   CTA STRIP
   =================================================== */
.cta-strip {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  max-width: 580px;
}

/* ===================================================
   PAGE HERO (impressum / datenschutz)
   =================================================== */
.page-hero {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

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

/* ===================================================
   CONTENT PAGES (impressum / datenschutz)
   =================================================== */
.content-page {
  padding: 60px 0 80px;
}

.content-narrow {
  max-width: 780px;
}

.content-block {
  margin-bottom: 44px;
}

.content-block h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-light);
}

.content-block p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.lead-text {
  font-size: 1.02rem !important;
  color: var(--text) !important;
  border-left: 3px solid var(--red);
  padding-left: 18px;
  margin-bottom: 0 !important;
}

.content-list {
  list-style: none;
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.content-list li {
  font-size: 0.92rem;
  color: #333;
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}

.content-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.address-block {
  font-style: normal;
  background: var(--bg-light);
  border-radius: 8px;
  padding: 18px 22px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text);
  margin: 14px 0;
  display: inline-block;
}

.address-block a {
  color: var(--red);
  font-weight: 600;
}

/* Impressum table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.info-table tr {
  border-bottom: 1px solid var(--border);
}

.info-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  padding: 11px 16px 11px 0;
  width: 200px;
  vertical-align: top;
  white-space: nowrap;
}

.info-table td {
  padding: 11px 0;
  color: var(--text);
  vertical-align: top;
}

.info-table a {
  color: var(--red);
  font-weight: 600;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: #1A1A1A;
  color: #ccc;
  padding-top: 52px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #aaa;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  color: #bbb;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.16s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-contact {
  font-size: 0.88rem;
  line-height: 2;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 16px 0;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #777;
  text-align: center;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS
   =================================================== */

/* Tablet: 900px */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-box {
    max-width: 440px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile: 640px */
@media (max-width: 640px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .info-table th {
    width: 130px;
    font-size: 0.82rem;
  }

  .info-table td {
    font-size: 0.87rem;
  }
}

/* ===================================================
   REDUCED MOTION
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .btn-primary {
    transition: none;
  }
}
