/* ============================================================
   ProOpEx – Stylesheet
   Alle Farben, Abstände und Layouts in einer Datei.
   ============================================================ */

/* --- Farben & Grundwerte (hier anpassen) --- */
:root {
  --primary:        #1E5381;
  --primary-dark:   #153d61;
  --primary-hover:  #174068;
  --accent:         #FBBA03;
  --accent-hover:   #e0a700;
  --text:           #1a2332;
  --text-muted:     #5a6878;
  --bg:             #ffffff;
  --bg-subtle:      #f4f7fb;
  --border:         #dde4ed;
  --shadow:         0 2px 14px rgba(30, 83, 129, 0.09);
  --radius:         8px;
  --max-width:      1100px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--accent); }

/* --- Typografie --- */
h1, h2, h3, h4 {
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

/* --- Layout-Hilfsklassen --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section          { padding: 4rem 0; }
.section--subtle  { background: var(--bg-subtle); }
.section--dark    { background: linear-gradient(135deg, var(--primary) 0%, #2a6fa8 100%); color: white; }
.section--dark h2,
.section--dark h3 { color: white; }
.section--dark p  { color: rgba(255,255,255,0.85); }
.text-center      { text-align: center; }
.section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-top: 0.5rem;
}
.section-lead--center { margin-left: auto; margin-right: auto; }


/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(30,83,129,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.logo img  { height: 44px; width: auto; }
.logo      { text-decoration: none; flex-shrink: 0; }

.nav-list  { list-style: none; display: flex; gap: 0; padding: 0; margin: 0; }
.nav-list a {
  display: block;
  padding: 0.45rem 0.7rem;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-list a:hover,
.nav-list a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--primary);
  line-height: 0;
}

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list a {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
  }
}


/* ============================================================
   HERO – Startseite
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a6fa8 100%);
  color: white;
  padding: 5.5rem 0 4.5rem;
}
.hero h1 { color: white; margin-bottom: 1.1rem; max-width: 680px; }
.hero .lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero .accent-bar {
  width: 48px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.4;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(251,186,3,0.35);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: white;
  color: var(--primary);
  border-color: white;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}


/* ============================================================
   KARTEN – Services & allgemein
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(30,83,129,0.13);
}
.card h3 { margin-bottom: 0.6rem; font-size: 1.05rem; }
.card p  { font-size: 0.93rem; color: var(--text-muted); margin: 0; }

/* Leistungs-Karten (Startseite unten) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.service-card {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  text-align: center;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  line-height: 1.4;
}
.service-card:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  border-color: var(--primary);
}


/* ============================================================
   SEITEN-HERO (Unterseiten)
   ============================================================ */
.page-hero {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}
.page-hero .kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.page-hero h1 { margin-bottom: 0.9rem; }
.page-hero .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.65;
}


/* ============================================================
   INHALTS-BEREICH (Fließtext-Seiten)
   ============================================================ */
.content-wrap { max-width: 780px; }
.content-wrap h2 { margin-top: 2.5rem; margin-bottom: 0.9rem; }
.content-wrap h3 { margin-top: 2rem; margin-bottom: 0.5rem; color: var(--primary); }
.content-wrap p + h2,
.content-wrap p + h3 { margin-top: 2rem; }
.content-wrap ul li,
.content-wrap ol li { margin-bottom: 0.6rem; }

/* Nummerierte Schritte */
.steps { list-style: none; padding: 0; counter-reset: step; margin: 2rem 0; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}
.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 38px; height: 38px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.05rem;
}
.steps li .step-text h4 { margin-bottom: 0.25rem; font-size: 1rem; color: var(--primary); }
.steps li .step-text p  { font-size: 0.93rem; color: var(--text-muted); margin: 0; }

/* Zitat */
.quote {
  border-left: 4px solid var(--accent);
  background: var(--bg-subtle);
  padding: 1.1rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Tabelle */
.data-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th {
  background: var(--primary);
  color: white;
  text-align: left;
  padding: 0.7rem 1rem;
  font-weight: 600;
}
.data-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
.data-table tr:nth-child(even) td { background: var(--bg-subtle); }

/* Punkte-Liste mit Haken */
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.check-list li {
  padding: 0.5rem 0;
  padding-left: 1.6rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}


/* ============================================================
   CTA-ABSCHNITT
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #2a6fa8 100%);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-section h2 { color: white; margin-bottom: 0.75rem; }
.cta-section p  {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(30,83,129,0.13);
}
.blog-meta  { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.blog-card h3 a { text-decoration: none; color: var(--primary); }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p   { font-size: 0.88rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 1rem; }
.read-more     { font-size: 0.83rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.read-more:hover { color: var(--primary); }

/* Blog-Artikel-Seite */
.article-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.article-meta   { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.5rem; }
.article-body   { max-width: 740px; }
.article-body h2 { margin-top: 2.5rem; margin-bottom: 0.9rem; }
.article-body h3 { margin-top: 2rem; margin-bottom: 0.5rem; }
.article-body ul,
.article-body ol { margin-bottom: 1.5rem; }
.article-body li { margin-bottom: 0.6rem; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
}
.article-back:hover { color: var(--primary); }


/* ============================================================
   ÜBER UNS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.about-box {
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.75rem;
}
.about-box h3 { margin-bottom: 1rem; }
.check-list-simple { list-style: none; padding: 0; }
.check-list-simple li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
  font-size: 0.93rem;
}
.check-list-simple li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0e2740;
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.6; max-width: 270px; margin-top: 1rem; }
.footer-logo img { height: 38px; filter: brightness(0) invert(1); opacity: 0.85; }

.footer-col h4 {
  color: white;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a  { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; }
.footer-col a:hover { color: var(--accent); }

.footer-contact p { font-size: 0.88rem; margin-bottom: 0.5rem; line-height: 1.5; }
.footer-contact a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .footer-inner  { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
