
/*
Theme Name: RCS WerkstattFlow
Theme URI: https://reisemobil-caravan-service.de
Author: RCS Reisemobil & Caravan Service
Description: Custom Mobile-First Theme im WerkstattFlow CI – gehärtet, schnell, DSGVO-ready
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: rcs-werkstattflow
*/
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-leistungen {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    border: 1px solid #e5e5e5;
    padding: 1rem;
    background: #fff;
}

.card h2 {
    font-size: 1.1rem;
}

.hero {
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: #0a4cff;
    color: #fff;
    text-decoration: none;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
}
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
}

.btn-primary:hover {
  opacity: 0.9;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.site-footer {
    background: #0f172a;
    color: #ffffff;
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: 3rem;
}

.site-footer a {
    color: #e5e7eb;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.footer-brand strong {
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    flex: 0 0 auto;
}
.site-logo a {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  text-decoration: none;
}
.site-logo img {
    display: block;
    height: 48px;
    width: auto;
}
.main-nav {
    display: none;
}
.main-nav.open {
   display: block;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
}

/* Header CTA – Desktop sichtbar */
.header-cta {
    display: none;
}

/* Ab Tablet / Desktop anzeigen */
@media (min-width: 768px) {
    .header-cta {
        display: block;
        margin-left: auto;
    }
}

/* =========================
   Burger Menu – Mobile First
   ========================= */

   .nav-toggle {
     background: none;
     border: none;
     display: flex;
     flex-direction: column;
     cursor: pointer;
     font-size: 26px;
     line-height: 1;
     pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
   }




/* Desktop */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .main-nav {
        display: block !important;
        position: static;
        width: auto;
        background: none;
        padding: 0;
        border: none;
        margin-left: 2rem;
    }

    .nav-list {
        display: flex;
        gap: 1.5rem;
    }


}
/* HERO */
.hero-home {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    padding: 4rem 1.5rem;
}

.hero-home h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.hero-home p {
    max-width: 600px;
    opacity: 0.9;
}

.hero-cta {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
}

/* SECTIONS */
.home-leistungen,
.home-cta {
    padding: 3rem 0;
}

.home-cta {
    background: #f8fafc;
    text-align: center;
}

.section-cta {
    margin-top: 2rem;
    text-align: center;
    /*für die Startseite*/
    margin-top: 40px;
}

.leistungen-startseite {
  /*padding: 10px 0;*/
   padding-top: 2.5rem; /* vorher deutlich größer */
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.contact-form {
    max-width: 600px;
    margin: 2rem 0;
}

.contact-note {
    font-size: 0.9rem;
    opacity: 0.8;
}
/* =====================================
   Kontaktformular – Desktop begrenzen
   ===================================== */



/* Fluent Forms Wrapper */
.page-id-22 .wp-block-shortcode .fluentform,
.page-id-22 .wp-block-shortcode .fluentform form {
    max-width: 100%;
    width: 100%;
}

/* Zusätzliche Sicherheit */
.page-id-22 .wp-block-shortcode .ff-el-group,
.page-id-22 .wp-block-shortcode .ff-el-input {
    width: 100%;
}
/* Kontaktformular – zentriert & begrenzt */
.page-id-22 .wp-block-shortcode,
.page-id-22 .contact-form,
.page-id-22 form {
  max-width: 720px;
  margin: 0 auto;
}

/* Mobile Padding */
@media (max-width: 768px) {
    .page-id-22 .wp-block-shortcode {
        padding: 0 1rem;
    }
}

/* =========================
   Buttons – Primary (CTA)
   ========================= */

.btn-primary {
    /*display: inline-block;*/
    display: inline-flex;          /* statt inline-block */
 align-items: center;           /* vertikal zentrieren */
 justify-content: center;       /* horizontal absichern */
    padding: 0.85rem 1.4rem;
    background-color: #0a4cff; /* WerkstattFlow Blau */
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    line-height: 1.2;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #083bd1;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}
.leistungen-archiv {
  padding: 40px 20px;
}

.leistungen-grid {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;

}

/* Karte */
.leistung-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0,0,0,0.18);
  transition: transform .35s ease, box-shadow .35s ease;
  width: 100%;
  max-width: 360px;   /* optisch saubere Mobile-Breite */
}

.leistung-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.25);
}

.leistung-card a {
  color: #fff;
  text-decoration: none;
  display: block;
}

/* Bild */
.leistung-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.leistung-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.leistung-card:hover img {
  transform: scale(1.08);
}

/* Overlay */
.leistung-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.15)
  );
}

/* Content */

.leistung-content {
  position: relative;
  padding: 22px;
  background: #111;
}

/*.leistung-content h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}*/
.leistung-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #ffffff;
}


/*.leistung-content p {
  font-size: .95rem;
  color: #ddd;
  margin-bottom: 14px;
}*/
.leistung-content p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 14px;
  color: #d1d5db; /* helles Grau */
  max-width: 90%;
}

/*
.leistung-content .cta {
  display: inline-block;
  padding: 10px 16px;
  background: #1e40af;
  color: #fff;
  border-radius: 8px;
  font-size: .9rem;
}*/
.leistung-content .cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6ea8fe;
  text-transform: none;
}



/* Trust */
.trust {
  margin-top: 70px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  font-weight: 500;
}


/* === FIX: Logo überdeckt Header === */
.site-logo {
    z-index: 2;
}

.main-nav,
.header-cta,
.nav-toggle {
    z-index: 3;
}

.site-header .site-logo {
    pointer-events: none;
}

.site-header .site-logo a,
.site-header .site-logo img {
    pointer-events: auto;
}
/* === iOS Safari: Burger-Menü Farbe & Klick fix === */
.nav-toggle {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    color: #0f172a !important;          /* erzwingt schwarz */
    font-size: 26px;
    line-height: 1;

    padding: 0;
    margin: 0;

    pointer-events: auto;
    position: relative;
    z-index: 9999;

    -webkit-tap-highlight-color: transparent;
}
/* =========================
   Trust Section
   ========================= */

.trust-section {
    padding: 3.5rem 0;
    background: #ffffff;
}

.trust-headline {
    text-align: center;
    margin-bottom: 2.5rem;
}

.trust-grid {
    display: grid;
    gap: 2rem;
}

.trust-item {
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8fafc;
}

.trust-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.trust-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Desktop */
@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* =====================================================
   ISOLATION: Leistungsteaser Startseite (Modern)
   ===================================================== */

.home-leistungen.modern .leistungen-modern-grid {
    display: grid !important;
    gap: 2rem;
}

.home-leistungen.modern .leistungen-modern-grid > article {
    all: unset;                 /* <- DAS ist der Schlüssel */
    display: block;
    position: relative;

    background: #ffffff;
    padding: 2rem 2rem 2.2rem;
    border-radius: 18px;

    box-shadow:
      0 12px 30px rgba(0,0,0,0.08),
      inset 0 0 0 1px rgba(15,23,42,0.05);

    overflow: hidden;
}

/* Akzentlinie */
.home-leistungen.modern .leistungen-modern-grid > article::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #0a4cff, #1e40af);
}

/* Nummer */
.home-leistungen.modern .leistung-index {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0a4cff;
    margin-bottom: 0.6rem;
}

/* Desktop */
@media (min-width: 768px) {
    .home-leistungen.modern .leistungen-modern-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* =========================
   Warum RCS?
   ========================= */

.why-rcs {
    padding: 4.5rem 0;
    background: #ffffff;
}

.why-rcs-grid {
    display: grid;
    gap: 2rem;
}

.why-rcs-item {
    padding: 1.75rem 2rem;
    background: #f8fafc;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.why-rcs-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: #0f172a;
}

.why-rcs-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Desktop */
@media (min-width: 768px) {
    .why-rcs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.2rem;
    }
}
/* =========================
   Hersteller-Teaser – dynamisch
   ========================= */

.home-hersteller {
  padding: 4.5rem 0;
  /*background: #f8fafc;*/
  background: #f1f5f9;   /* leichtes Grau statt fast Weiß */
}
/* Mehr Abstand unter Hersteller-Kacheln */
.home-hersteller .section-cta {
    margin-top: 5rem;   /* ggf. 3rem–5rem nach Geschmack */
}


.hersteller-grid {
  display: grid;
  gap: 3rem;
}

.hersteller-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem 1.75rem 1.4rem;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;

}

.hersteller-logo {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  /*margin-bottom: 1.25rem;*/
  margin-top: 1.5rem;    /* Abstand NACH Link */
  margin-bottom: 0;      /* kein Druck nach unten */
}

.hersteller-logo img {
  max-height: 60px;
  max-width: 160px;
  width: auto;

  object-fit: contain;
}

.hersteller-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.hersteller-item p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #374151;
  margin-bottom: auto;
  /*margin-bottom: 0.75rem; /*kontrollierter Abstand*/

}

.hersteller-link {
  margin-top: 0rem; /* direkt unter dem Text*/
  font-size: 0.85rem;
  font-weight: 600;
  color: #0a4cff;
  text-decoration: none;
}

.hersteller-link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .hersteller-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .mobile-cta {
    display: none !important;
  }
}
/* =========================
   Trust-Leiste unter Hero
   ========================= */

.trust-bar {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.trust-bar .trust-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

/* bestehende .trust-item gezielt anpassen */
.trust-bar .trust-item {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
}

/* bestehende Bildklasse NUR hier beeinflussen */
.trust-bar .trust-item img {
  height: 36px;
  max-height: 36px;
  opacity: 0.85;
}
@media (max-width: 767px) {
  .trust-bar .trust-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .trust-bar .trust-item {
    justify-content: center;
    text-align: center;
  }
}
/* Footer Rechtliches */
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* Links */
.footer-legal a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  margin: 0;   /* enger Abstand zwischen Links */
}

.footer-legal a:hover {
  text-decoration: underline;
}

/* Cookie-Hinweis */
.cookie-hinweis {
  margin-top: 0.25rem;
  margin-bottom: 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}
/* Scroll sperren, wenn Mobile-Menü offen */
body.nav-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* Wenn Menü offen */
body.nav-open .burger-icon {
  content: "✕";
}

/* Seitentitel im Impressum ausblenden */
.page-id-103 article > h2:first-child {
  display: none;
}
/* Seitentitel im Datenschutzerklärung ausblenden */
.page-id-3 article > h2:first-child {
  display: none;
}
/* Seitentitel im Über uns ausblenden */
.page-id-117 article > h2:first-child {
  display: none;
}
/* =========================
   Single Leistung – Hero
   ========================= */

.leistung-hero {
  position: relative;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  background-color: #0f172a; /* Fallback */
  color: #ffffff;
  display: flex;
  align-items: center;
}

.leistung-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,23,42,0.85),
    rgba(15,23,42,0.55)
  );
}
/* =========================
   Leistungen – Archiv Hero
   ========================= */

.leistungen-hero {
  /*background: #f8fafc;*/
  position: relative;
  padding: 1rem 0 1rem;
}
.leistungen-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(15, 23, 42, 0.12),
    transparent
  );
}
.leistungen-hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #0f172a;
}

.leistungen-hero-text {
  max-width: 820px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 1rem;
}

.leistungen-hero-hinweis {
  max-width: 820px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
}


.leistung-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.leistung-hero h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.leistung-hero-teaser {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.leistung-hero-cta .btn-primary {
  margin-top: 0.5rem;
}

/* Mobile Feinschliff */
@media (max-width: 768px) {
  .leistung-hero {
    min-height: 360px;
  }

  .leistung-hero h1 {
    font-size: 1.6rem;
  }
}
/* Hersteller Archiv */
.hersteller-archive {
  padding: 4rem 0 5rem;
  background: #f8fafc;
}

.archive-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.archive-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.archive-header p {
  color: #475569;
  line-height: 1.6;
}

/* Grid */
.hersteller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* Karte */
.hersteller-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hersteller-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
}

.hersteller-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
}

/* Logo */
.hersteller-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.hersteller-logo img {
  max-height: 60px;
  max-width: 160px;
  object-fit: contain;
}

/* Text */
.hersteller-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.hersteller-excerpt {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: auto;
}

/* CTA */
.hersteller-cta {
  margin-top: 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0a4cff;
}

.single-hersteller-hero {
  max-width: 1100px;
  margin: 2.5rem auto 3rem;
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.18);
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}
.single-hersteller-hero img {
  max-width: 100%;
  max-height: 180px;     /* Desktop */
  width: auto;
  height: auto;
  object-fit: contain;   /* ← ENTSCHEIDEND */
  display: block;
}
@media (max-width: 768px) {
  .single-hersteller-hero {
    padding: 1.25rem;
    margin: 1.5rem auto 2rem;
  }

  .single-hersteller-hero img {
    max-height: 110px;
  }
}


.hersteller-hero-image {
  max-height: 200px;          /* sinnvolle Höhe */
  overflow: hidden;           /* schneidet unten ab */
  border-radius: 12px;        /* optional, CI-konform */
  padding: 1rem;
}

.hersteller-hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;        /* wichtig für Logos */
}

.hersteller-content {
  /*margin: 3rem 0;*/
}

.hersteller-content h2 {
  margin-bottom: 1.25rem;
}

.hersteller-content p {
  /*max-width: 760px;*/
  line-height: 1.65;
}
@media (max-width: 768px) {
  .hersteller-content .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
