/* =============================================
   Camperservice Borken – Template CSS
   Farben: Limette #8CC63E | Blau #27A9E1 | Anthrazit #2E3A44
   Schrift: lokale Systemschriften, keine externen Font-Aufrufe
   ============================================= */

/* === Reset & Basis === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --lime:      #8CC63E;
    --blue:      #27A9E1;
    --anthrazit: #2E3A44;
    --white:     #ffffff;
    --light:     #f5f6f7;
    --text:      #3a3a3a;
    --text-muted:#6b7280;
}

html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 1000;
    background: var(--white);
    color: var(--anthrazit);
    padding: 0.65rem 1rem;
    border: 2px solid var(--blue);
    border-radius: 4px;
}

.skip-link:focus { top: 1rem; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--lime); }
img { max-width: 100%; height: auto; }

/* === Top-Bar === */
#topbar {
    background: var(--white);
    padding: 0;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.topbar-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    color: var(--anthrazit);
    text-decoration: none;
}

.topbar-phone:hover { color: var(--white); }

.topbar-phone .phone-icon { font-size: 1.1rem; }

.topbar-phone .phone-label {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.75;
    margin-right: 0.25rem;
}

.btn-topbar {
    background: var(--anthrazit);
    color: var(--white);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 1.1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-topbar:hover { background: var(--blue); color: var(--white); }

/* === Header === */
#header {
    background: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 150px;
}

/* === Logo === */
.site-logo {
    display: block;
    width: min(390px, 42vw);
    height: 145px;
    text-decoration: none;
}

.site-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* === Navigation === */
nav#main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.2rem;
    align-items: center;
}

nav#main-nav a {
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--anthrazit);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

nav#main-nav a:hover,
nav#main-nav a.active {
    background: var(--lime);
    color: var(--anthrazit);
}

/* === Hero === */
#hero {
    background: var(--anthrazit);
    color: var(--white);
    padding: 5rem 1.5rem;
    text-align: center;
    border-bottom: 4px solid var(--lime);
}

#hero h1 {
    font-family: inherit;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

#hero h1 em { color: var(--lime); font-style: normal; }

#hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.1s;
    cursor: pointer;
    border: none;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--lime); color: var(--anthrazit); }
.btn-secondary { background: var(--blue); color: var(--white); margin-left: 0.75rem; }

/* === Services-Grid === */
#services {
    padding: 4rem 1.5rem;
    background: var(--light);
}

.section-title { text-align: center; margin-bottom: 2.5rem; }

.section-title h2 {
    font-family: inherit;
    font-size: 2rem;
    color: var(--anthrazit);
    font-weight: 700;
}

.section-title h2 span { color: var(--lime); }
.section-title p { color: var(--text-muted); margin-top: 0.5rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    border-top: 3px solid var(--lime);
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.service-card .icon { font-size: 2.2rem; margin-bottom: 1rem; }

.service-card h3 {
    font-family: inherit;
    font-size: 1.25rem;
    color: var(--anthrazit);
    margin-bottom: 0.5rem;
}

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

/* === Main Content === */
#content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* === Footer === */
#footer {
    background: var(--anthrazit);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    border-top: 3px solid var(--blue);
}

#footer a { color: var(--lime); }
#footer a:hover { color: var(--white); }

/* === Responsive === */
@media (max-width: 768px) {
    .topbar-inner { flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
    .header-inner { height: auto; padding: 0.5rem 1rem 0.8rem; flex-direction: column; gap: 0.35rem; }
    .site-logo { width: min(360px, 96vw); height: 190px; }
    nav#main-nav ul { justify-content: center; flex-wrap: wrap; gap: 0.1rem; }
    nav#main-nav a { font-size: 0.85rem; padding: 0.4rem 0.7rem; }
    #hero { padding: 3rem 1.5rem; }
    .btn-secondary { margin-left: 0; margin-top: 0.5rem; }
}

/* === Dropdown Navigation === */
nav#main-nav li {
    position: relative;
}

/* Untermenü (Joomla: .mod-menu__sub) versteckt */
nav#main-nav .mod-menu__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background: var(--anthrazit);
    min-width: 220px;
    border-top: 2px solid var(--lime);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 200;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
}

/* Untermenü bei Hover einblenden */
nav#main-nav li:hover > .mod-menu__sub,
nav#main-nav li:focus-within > .mod-menu__sub {
    display: flex;
}

nav#main-nav .mod-menu__sub li {
    width: 100%;
}

nav#main-nav .mod-menu__sub a {
    display: block;
    padding: 0.6rem 1.2rem;
    border-radius: 0;
    font-size: 0.9rem;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
}

nav#main-nav .mod-menu__sub a:hover {
    background: var(--lime);
    color: var(--anthrazit);
}

/* Pfeil-Indikator bei Parent-Einträgen */
nav#main-nav li.parent > a::after {
    content: ' ▾';
    font-size: 0.75rem;
    opacity: 0.7;
}

/* === Artikel-Seiten === */

/* Doppelte Überschrift: Joomla page-header ausblenden, h2 im Inhalt bleibt */
.com-content-article .page-header { display: none; }

/* Artikel-Metadaten ausblenden (Hits, Autor, Datum, Kategorie) */
.article-info { display: none; }

/* Listen-Einrückung in Artikeln */
.com-content-article__body ul,
.com-content-article__body ol {
    padding-left: 1.8rem;
    margin-bottom: 1rem;
}
.com-content-article__body li {
    margin-bottom: 0.3rem;
}

/* === Kontaktseite === */

.com-contact .page-header { display: none; }

.com-contact__container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.com-contact__container > h2 {
    font-family: inherit;
    font-size: 1.8rem;
    color: var(--anthrazit);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--lime);
}

/* Adress-Block */
.com-contact__info { margin-bottom: 2rem; }

.com-contact__address {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 1rem;
    line-height: 1.8;
}

.com-contact__address dt { display: none; }
.com-contact__address dd { margin: 0; }

/* Karte */
.contact-map {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Formular */
#contact-form { background: none; border: none; box-shadow: none; padding: 0; }

#contact-form fieldset { border: none; margin: 0; padding: 0; }

#contact-form legend {
    font-family: inherit;
    font-size: 1.4rem;
    color: var(--anthrazit);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.control-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.1rem;
}

.control-label label {
    font-weight: 600;
    color: var(--anthrazit);
    margin-bottom: 0.3rem;
    display: block;
    font-size: 0.95rem;
}

.control-label label .star { color: var(--lime); }

.form-control {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--anthrazit);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--lime);
    box-shadow: 0 0 0 3px rgba(140,198,62,0.15);
}

textarea.form-control { resize: vertical; min-height: 140px; }

.field-spacer { display: none; }

.btn-primary {
    background: var(--lime);
    color: var(--anthrazit);
    border: none;
    padding: 0.75rem 2rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: #7ab535; transform: translateY(-1px); }

/* Honeypot – verstecktes Feld, Bots füllen es aus, Menschen nicht */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}
/* Service category hero images */
.service-hero {
  margin: 0 0 2rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #252525;
  box-shadow: 0 0.6rem 1.8rem rgb(0 0 0 / 16%);
}

.service-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1915 / 821;
  object-fit: cover;
}

.service-hero figcaption {
  padding: 0.45rem 0.75rem;
  color: #666;
  background: #f4f4f4;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: right;
}

@media (max-width: 640px) {
  .service-hero {
    margin-bottom: 1.25rem;
    border-radius: 0.5rem;
  }

  .service-hero img {
    aspect-ratio: 16 / 9;
  }
}
