/* ============================================
   ROLAND – Custom Content & Components
   ============================================ */

:root {
  --rf-primary: #004080;
  --rf-primary-dark: #003066;
  --rf-accent-blue: #0369a1;
  --rf-accent-light: #e0f2fe;
  --rf-success: #00a806;
  --rf-success-dark: #08730d;
  --rf-success-darker: #088a05;
  --rf-success-light: #dcfce7;
  --rf-warning: #d97706;
  --rf-warning-light: #fed7aa;
  --rf-danger: #dc2626;
  --rf-bg-light: #f5f8fc;
  --rf-bg-card: #fff;
  --rf-bg-dark: #0a2540;
  --rf-text: #0a2540;
  --rf-text-muted: #4a6178;
  --rf-text-faint: #94a3b8;
  --rf-border: #e4eaf0;
}

/* ============================================
   MOBILE STICKY CTA BAR (Header)
   ============================================ */
.rf-mobile-cta {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--rf-success);
  color: #fff;
  text-decoration: none;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  min-height: 50px;
}
.rf-mobile-cta:hover,
.rf-mobile-cta:focus,
.rf-mobile-cta:active {
  background: var(--rf-success-darker);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 991px) {
  .rf-mobile-cta { display: flex; }
  .header_main { top: 50px !important; }
  body { padding-top: 50px; }
}

/* Smooth scroll behavior */
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ============================================
   HEADER DESKTOP CTA BUTTON
   ============================================ */
.header-cta-btn {
  background: var(--rf-success);
  border: 2px solid var(--rf-success);
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.header-cta-btn .header-cta-icon {
  background: var(--rf-success-dark);
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(8, 115, 13, 0.25);
}
.header-info-right { display: flex; justify-content: flex-end; }

/* ============================================
   CONTENT SECTIONS (gemeinsam verwendet)
   ============================================ */
.rf-content-section {
  padding: 50px 0;
}
.rf-content-section--white { background: #fff; }
.rf-content-section--light { background: var(--rf-bg-light); }
.rf-content-section--dark { background: var(--rf-bg-dark); color: #fff; }

.rf-section-head {
  text-align: center;
  margin-bottom: 26px;
}
.rf-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rf-accent-blue);
  background: var(--rf-accent-light);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.rf-eyebrow--dark {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.15);
}
.rf-section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--rf-text);
  margin-bottom: 10px;
}
.rf-section-title--light { color: #fff; }
.rf-section-lead {
  font-size: 16px;
  color: var(--rf-text-muted);
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto;
}
.rf-section-lead--light { color: #cbd5e1; }

/* ============================================
   INFO CARDS (Was-ist-Section)
   ============================================ */
.rf-info-card {
  background: var(--rf-bg-light);
  border-radius: 14px;
  padding: 28px;
  height: 100%;
  border-left: 4px solid var(--rf-success);
}
.rf-info-card--blue { border-left-color: var(--rf-accent-blue); }
.rf-info-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--rf-text);
  margin-bottom: 10px;
}
.rf-info-card p {
  font-size: 15px;
  color: var(--rf-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================
   STANDARD CARDS (DIN/ISO/DGUV)
   ============================================ */
.rf-standard-card {
  background: var(--rf-bg-light);
  border-radius: 14px;
  padding: 28px;
  height: 100%;
  border-top: 4px solid var(--rf-accent-blue);
}
.rf-standard-card--green { border-top-color: var(--rf-success); }
.rf-standard-card--orange { border-top-color: var(--rf-warning); }

.rf-standard-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--rf-accent-light);
  color: var(--rf-accent-blue);
}
.rf-standard-icon--green { background: var(--rf-success-light); color: var(--rf-success); }
.rf-standard-icon--orange { background: var(--rf-warning-light); color: var(--rf-warning); }

.rf-standard-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--rf-text);
  margin-bottom: 8px;
}
.rf-standard-card p {
  font-size: 14px;
  color: var(--rf-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   LEISTUNGS-TABELLE
   ============================================ */
.rf-table-wrap {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}
.rf-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
}
.rf-leistungstabelle {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
.rf-leistungstabelle thead {
  background: var(--rf-bg-dark);
  color: #fff;
}
.rf-leistungstabelle th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
}
.rf-leistungstabelle th:first-child { width: 30%; }
.rf-leistungstabelle th:last-child { width: 120px; text-align: center; }
.rf-leistungstabelle td {
  padding: 14px 18px;
  color: var(--rf-text-muted);
}
.rf-leistungstabelle td:first-child {
  font-weight: 600;
  color: var(--rf-text);
}
.rf-leistungstabelle td:last-child { text-align: center; }
.rf-leistungstabelle tbody tr {
  border-bottom: 1px solid var(--rf-border);
}
.rf-leistungstabelle tbody tr:nth-child(even) { background: #f9fbfd; }
.rf-leistungstabelle .rf-yes { color: var(--rf-success); font-weight: 700; }
.rf-leistungstabelle .rf-optional {
  color: var(--rf-warning);
  font-weight: 600;
  font-size: 13px;
}

@media (max-width: 768px) {
  .rf-leistungstabelle { font-size: 13px; min-width: 520px; }
  .rf-leistungstabelle th,
  .rf-leistungstabelle td { padding: 10px 12px; }
  .rf-leistungstabelle th:first-child,
  .rf-leistungstabelle td:first-child { width: auto; }
  .rf-leistungstabelle th:last-child,
  .rf-leistungstabelle td:last-child { width: 80px; }
}
@media (max-width: 480px) {
  .rf-table-scroll::after {
    content: '↔ Wischen für mehr';
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--rf-text-faint);
    padding: 6px;
  }
}

/* ============================================
   BRANCHEN GRID
   ============================================ */
.rf-branchen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.rf-branche-tile {
  background: var(--rf-bg-light);
  padding: 14px 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--rf-text);
}
@media (max-width: 768px) {
  .rf-branchen-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ============================================
   STADTTEILE SECTION
   ============================================ */
.rf-stadtteile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.rf-stadtteil {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
}
.rf-stadtteile-cta {
  text-align: center;
  margin-top: 30px;
  color: #cbd5e1;
  font-size: 14px;
}
.rf-stadtteile-cta a {
  color: #7dd3fc;
  font-weight: 600;
}

/* ============================================
   KONTAKT-PAGE — KK-CARDS
   ============================================ */
.kontakt-section {
  padding: 80px 0 70px;
  background: var(--rf-bg-light);
  font-family: inherit;
}
.kontakt-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rf-accent-blue);
  background: var(--rf-accent-light);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.kontakt-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--rf-text);
  margin-bottom: 14px;
}
.kontakt-subtitle {
  font-size: 17px;
  color: var(--rf-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .kontakt-section { padding: 50px 0 40px; }
  .kontakt-title { font-size: 26px; }
  .kontakt-subtitle { font-size: 15px; }
}

.kk-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--rf-border);
  border-radius: 16px;
  padding: 32px 28px 28px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.kk-card:hover {
  box-shadow: 0 12px 40px rgba(10, 37, 64, 0.10);
  transform: translateY(-4px);
  border-color: #c8d8e8;
  text-decoration: none;
  color: inherit;
}
.kk-card--featured {
  border-color: var(--rf-success);
  box-shadow: 0 8px 32px rgba(0, 168, 6, 0.12);
}
.kk-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--rf-success);
}
.kk-card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--rf-success);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.kk-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  background: var(--rf-accent-light);
  color: var(--rf-accent-blue);
}
.kk-card-icon--green { background: var(--rf-success-light); color: var(--rf-success); }
.kk-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a93a8;
  margin-bottom: 6px;
}
.kk-card-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--rf-text);
  margin-bottom: 6px;
  line-height: 1.2;
}
.kk-card-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--rf-accent-blue);
  margin-bottom: 12px;
  word-break: break-word;
}
.kk-card--featured .kk-card-value { color: var(--rf-success); }
.kk-card-desc {
  font-size: 15px;
  color: var(--rf-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 24px;
}
.kk-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  margin-top: auto;
  transition: opacity 0.2s;
  background: var(--rf-accent-blue);
  color: #fff;
}
.kk-card-cta--green { background: var(--rf-success); }
.kk-card:hover .kk-card-cta { opacity: 0.9; }

.kk-trustbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid #dde5ee;
}
.kk-trustbar span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rf-text-muted);
}
.kk-trustbar span svg { color: var(--rf-accent-blue); flex-shrink: 0; }
@media (max-width: 768px) {
  .kk-trustbar { gap: 16px 24px; margin-top: 32px; padding-top: 24px; }
  .kk-trustbar span { font-size: 13px; }
}

/* ============================================
   CTA Section (cta.php)
   ============================================ */
.rf-cta-button {
  background: var(--rf-success);
  border: 2px solid var(--rf-success);
  color: #fff;
  padding: 14px 28px;
  font-size: 18px;
  border-radius: 40px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(0, 168, 6, 0.28);
  text-decoration: none;
}
.rf-cta-button:hover {
  background: var(--rf-success-darker);
  border-color: var(--rf-success-darker);
  color: #fff;
  text-decoration: none;
}
.rf-cta-button-icon {
  background: var(--rf-success-dark);
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(8, 115, 13, 0.25);
}
.rf-cta-secondary-line {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: #cdd9e5;
}
.rf-cta-secondary-line a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

/* Hero Trust-Logos — kompakte Reihe direkt im Fold */
.rf-hero-trust {
  margin: 22px 0 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.rf-hero-trust-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cdd9e5;
  margin-bottom: 10px;
  font-weight: 500;
}
.rf-hero-trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.rf-hero-trust-logos img {
  height: 40px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  padding: 6px 10px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.rf-hero-trust-logos img:hover {
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .rf-hero-trust-logos { gap: 8px; }
  .rf-hero-trust-logos img { height: 32px; max-width: 80px; padding: 4px 8px; }
}
