:root{
  --brand-primary:#0FA3B1; /* Petrol/Teal */
  --brand-dark:#101214;    /* Anthrazit */
  --brand-light:#F5F7F8;
  --radius:18px;
  --page-max:1200px;
  --content-max:1140px;
}

/* ========== BASE ========== */

body.site{
  margin:0;
  background:#e9e9e9; /* außen */
  color:#111;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

a{ color:inherit; text-decoration:none; }

html, body{ overflow-x:hidden; }

/* Joomla Artikelinfos aus */
.com-content-article__information,
.page-header,
.com-content-article__header{
  display:none !important;
}

/* ========== BOXED WRAPPER ========== */

.topbar,
.site-header,
main,
.site-footer{
  max-width:var(--page-max);
  margin:0 auto;
  background:#fff;
  box-sizing:border-box;
}

/* Innenabstand NUR hier */
.fz-inner{
  max-width:var(--content-max);
  margin:0 auto;
  padding:0 24px;
  box-sizing:border-box;
}

@media (max-width:600px){
  .fz-inner{ padding:0 16px; }
}

/* ========== TOPBAR ========== */

.topbar{
  background: var(--brand-dark);
  color:#fff;
  border-radius: 18px 18px 0 0;     /* oben abrunden statt unten */
  overflow: visible;               /* wichtig: nichts abschneiden */
}

.topbar-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:14px 0;
  font-size:14px;
}

.btn-anfragen{
  background:var(--brand-primary);
  color:#fff;
  padding:12px 18px;
  border-radius:10px;
  font-weight:700;
  line-height: 1;
}

/* ========== HEADER ========== */

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(8px);
  border-bottom:1px solid #eee;
}

/* gestapelt */
.header-stack{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  padding:10px 0 6px;
}

.logo-center{
  padding:0;
}

.logo-center a{
  display:inline-block;
  line-height:0;
}

.logo-center img{
  display:block;
  margin:0 auto;
  max-width:640px;
  width:100%;
  height:auto;
}

@media (max-width:768px){
  .logo-center img{ max-width:420px; }
}

/* NAV */

.site-nav{
  display:flex;
  justify-content:center;
}

.site-nav ul{
  list-style:none;
  display:flex;
  gap:18px;
  padding:0;
  margin:8px 0 0;
}

.site-nav a{
  font-weight:700;
  padding:8px 10px;
  border-radius:10px;
}

.site-nav a:hover{
  color:var(--brand-primary);
  background:rgba(15,163,177,.08);
}

/* ========== SECTIONS ========== */

.section{
  padding:70px 0;
}

.section-hero{
  background:linear-gradient(180deg,var(--brand-light),#fff);
}

.section + .section{
  border-top:1px solid #f0f0f0;
}

/* ========== HERO ========== */

.hero-inner{
  text-align:center;
  max-width:940px;
  margin:0 auto;
  padding:60px 30px;
  background:#f3f3f3;
  border-radius:var(--radius);
}

.hero-inner h1{
  font-size:40px;
  margin:0 0 14px;
  font-weight:800;
}

.hero-inner p{
  margin: 0 0 34px;   /* war 24px – jetzt mehr Abstand zum Button */
}

.btn-primary{
  background:var(--brand-primary);
  color:#fff;
  padding:14px 28px;
  border-radius:10px;
  font-weight:700;
}

/* ========== SERVICES (2+2) ========== */

.services-head{
  text-align:center;
  max-width:860px;
  margin:0 auto 26px;
}

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

.service-card{
  background:#fff;
  border:1px solid #eee;
  border-radius:16px;
  padding:22px 20px;
  box-shadow:0 10px 24px rgba(0,0,0,.05);
  transition:.18s ease;
}

.service-card:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 34px rgba(0,0,0,.1);
  border-color:rgba(15,163,177,.45);
}

.service-top{
  display:flex;
  gap:14px;
}

.service-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,163,177,.14);
}

/* ===== SERVICE ICONS: einheitliche Größe (Emoji / SVG / IMG / Font-Icon) ===== */
.service-icon{
  width:44px;
  height:44px;
  flex: 0 0 44px;        /* verhindert Schrumpfen in Flex-Layouts */
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  line-height:1;
  font-size:22px;        /* Emoji/Text/Icon-Fonts */
}

/* Bilder */
.service-icon img{
  width:22px;
  height:22px;
  object-fit:contain;
  display:block;
}

/* SVGs */
.service-icon svg{
  width:22px;
  height:22px;
  display:block;
}

/* Font-Icons / Spans */
.service-icon i,
.service-icon span{
  font-size:22px;
  line-height:1;
  display:block;
}

@media (max-width:720px){
  .services-grid{ grid-template-columns:1fr; }
}

/* ========== GALLERY ========== */

.fz-gallery-wrap{
  text-align:center;
}

.fz-gallery-wrap p{
  color:#555;
  margin-bottom:20px;
}

.fz-gallery{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.fz-gallery__item{
  border-radius:14px;
  overflow:hidden;
  background:#f3f3f3;
  box-shadow:0 10px 22px rgba(0,0,0,.08);
  transition:.2s ease;
}

.fz-gallery__item:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 30px rgba(0,0,0,.14);
}

.fz-gallery__item img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}

@media (max-width:900px){
  .fz-gallery{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:480px){
  .fz-gallery{ grid-template-columns:1fr; }
}

/* ========== CONTACT ========== */

.section-contact{
  background:var(--brand-dark);
  color:#fff;
  text-align:center;
  padding:80px 0;
}

/* ========== FOOTER ========== */

.site-footer{
  background:#0f0f0f;
  color:#fff;
  border-radius:20px 20px 0 0;
  padding:50px 0 20px;
}

.fz-footer__grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:28px;
}

.fz-footer__title{
  font-weight:900;
  margin-bottom:10px;
  font-size:14px;
  text-transform:uppercase;
}

.fz-footer__links{
  list-style:none;
  padding:0;
  margin:0;
}

.fz-footer__links li{
  margin-bottom:8px;
}

.fz-footer__cta{
  display:inline-block;
  margin-top:12px;
  background:var(--brand-primary);
  padding:12px 18px;
  border-radius:12px;
  font-weight:700;
  color:#fff;
}

.fz-footer__bottom{
  margin-top:30px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.15);
  text-align:center;
  font-size:13px;
  color:rgba(255,255,255,.8);
}

@media (max-width:900px){
  .fz-footer__grid{ grid-template-columns:1fr; }
}

/* FOOTER: Kontakt sauber, keine "komischen" Umbrüche */
.fz-footer__contact{
  margin-top: 14px;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.fz-footer__bottom{
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
  display: flex;
  flex-direction: column;   /* Copy + Template darunter */
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.8);
}

.topbar-inner{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
}

/* Telefonnummer mittig */
.topbar-inner > *:first-child{
  text-align:right;
  padding-right:20px;
}

/* Button mittig */
.topbar-inner > *:last-child{
  text-align:left;
  padding-left:20px;
}

.fz-footer__bottom{
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  font-size:14px;
  color:rgba(255,255,255,.8);
}
.fz-footer__brand{
  font-size:22px;
  font-weight:900;
  letter-spacing:-0.3px;
}

.fz-footer__brand span{
  color: var(--brand-primary);
}

/* ===== TOPBAR FIX (Button links, Tel rechts, sauber mittig) ===== */
.topbar{
  background: var(--brand-dark);
  color:#fff;
  border-radius: 18px 18px 0 0; /* nur oben rund, damit nichts "abgeschnitten" wirkt */
  overflow: hidden;            /* verhindert komische Kanten */
}

.topbar .container{
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0;                  /* wichtig: kein extra padding hier */
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 12px 24px;          /* saubere Innenabstände */
  box-sizing:border-box;
  width:100%;
}

.topbar-left{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}

.topbar-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  white-space:nowrap;
}

.topbar a{
  color:#fff;
  text-decoration:none;
}

@media (max-width: 600px){
  .topbar-inner{
    flex-direction:column;
    align-items:flex-start;
    padding: 12px 16px;
  }
}

.about-inner{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.about-lead{
  font-size: 18px;
  color:#444;
  margin: 10px 0 18px;
}
.about-badges{
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  text-align:left;
}
.about-badge{
  background:#fff;
  border:1px solid #eee;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}
.about-cta{ margin-top: 22px; }
@media (max-width: 720px){
  .about-badges{ grid-template-columns: 1fr; }
}

/* ===== PROCESS / ABLAUF ===== */
.process-head{
  text-align:center;
  max-width: 900px;
  margin: 0 auto 26px;
}
.process-head h2{
  margin: 0 0 8px;
  font-weight: 900;
}
.process-head p{
  margin: 0;
  color:#555;
}

.process-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-step{
  background:#fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.process-step:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.10);
  border-color: rgba(15,163,177,.45);
}

.process-top{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 10px;
}

.process-num{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  background: rgba(15,163,177,.16);
  color: var(--brand-primary);
  flex: 0 0 auto;
}

.process-step h3{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.process-step p{
  margin: 0 0 10px;
  color:#444;
}

.process-step ul{
  margin: 0;
  padding-left: 18px;
  color:#555;
}
.process-step li{ margin: 6px 0; }

.process-cta{
  margin-top: 22px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

.process-link{
  text-decoration:none;
  font-weight:700;
  color:#111;
  padding: 10px 12px;
  border-radius: 10px;
}
.process-link:hover{
  color: var(--brand-primary);
  background: rgba(15,163,177,.08);
}

/* Responsive */
@media (max-width: 1100px){
  .process-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px){
  .process-grid{ grid-template-columns: 1fr; }
}

/* ===== AGB / Rechtliches ===== */
.legal-wrap{
  max-width: 920px;
  margin: 0 auto;
}

.legal-card{
  background:#fff;
  border:1px solid #eaeaea;
  border-radius:18px;
  padding:32px 28px;
  box-shadow:0 10px 24px rgba(0,0,0,.04);
}

.legal-head{
  margin-bottom:28px;
  text-align:center;
}

.legal-head h1{
  margin:0 0 10px;
  font-size:38px;
  line-height:1.15;
  font-weight:900;
}

.legal-head p{
  margin:0;
  color:#666;
}

.legal-meta{
  margin-top:16px;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(0,0,0,.03);
  font-size:14px;
  color:#555;
}

.legal-section{
  margin-top:28px;
}

.legal-section h2{
  margin:0 0 12px;
  font-size:22px;
  line-height:1.25;
  font-weight:800;
}

.legal-section p{
  margin:0 0 12px;
  line-height:1.7;
  color:#222;
}

.legal-section ul{
  margin:0 0 12px 20px;
  padding:0;
}

.legal-section li{
  margin:0 0 8px;
  line-height:1.65;
}

.legal-note{
  margin-top:28px;
  padding:16px 18px;
  border-radius:14px;
  background:rgba(0,0,0,.04);
  font-size:14px;
  color:#555;
}

@media (max-width: 768px){
  .legal-card{
    padding:24px 18px;
  }

  .legal-head h1{
    font-size:30px;
  }

  .legal-section h2{
    font-size:20px;
  }
}

.service-image {
  margin-top: 15px;
  border-radius: 12px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* ===== Footer Company Switch ===== */
.company-switch{
  display:grid;
  gap:12px;
  margin-top:8px;
}

.company-tile{
  display:block;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  transition:all .2s ease;
  text-decoration:none;
}

.company-tile:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.20);
}

.company-tile__name{
  display:block;
  font-weight:800;
  font-size:15px;
  margin-bottom:4px;
  color:#fff;
}

.company-tile__sub{
  display:block;
  font-size:13px;
  line-height:1.4;
  color:rgba(255,255,255,.72);
}

/* Farbstreifen passend zu den Marken */
.company-tile--felgen{
  border-left:4px solid #D02010;
}

.company-tile--pulvern{
  border-left:4px solid #0FA3B1;
}

.company-tile--pruefstand{
  border-left:4px solid #E0B000;
}

/* aktive Seite hervorheben */
.company-tile.is-active{
  background:rgba(15,163,177,.12);
  border-color:rgba(15,163,177,.35);
  box-shadow:0 10px 22px rgba(0,0,0,.18);
}

.company-tile.is-active .company-tile__name{
  color:#fff;
}

/* Footer bottom sauber */
.fz-footer__bottom{
  margin-top:32px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.15);
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  font-size:14px;
  color:rgba(255,255,255,.8);
}

/* ===== Vorher / Nachher ===== */
.before-after-wrap{
  max-width: 1140px;
  margin: 0 auto;
}

.before-after-head{
  text-align:center;
  max-width: 860px;
  margin: 0 auto 28px;
}

.before-after-head h2{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
}

.before-after-head p{
  margin: 0;
  color:#555;
  font-size: 17px;
  line-height: 1.6;
}

.before-after-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.before-after-card{
  background:#fff;
  border:1px solid #eaeaea;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,.05);
}

.before-after-card__title{
  padding:18px 20px 8px;
  font-size:20px;
  font-weight:800;
  line-height:1.3;
}

.before-after-card__text{
  padding:0 20px 18px;
  color:#555;
  font-size:15px;
  line-height:1.6;
}

.before-after-images{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:0;
  border-top:1px solid #eee;
}

.before-after-side{
  position:relative;
  background:#f5f5f5;
}

.before-after-side + .before-after-side{
  border-left:1px solid #eee;
}

.before-after-label{
  position:absolute;
  top:12px;
  left:12px;
  z-index:2;
  display:inline-block;
  padding:7px 11px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.2px;
  backdrop-filter: blur(6px);
}

.before-after-label--before{
  background:rgba(20,20,20,.82);
  color:#fff;
}

.before-after-label--after{
  background:rgba(255,255,255,.9);
  color:#111;
}

.before-after-side img{
  width:100%;
  height:290px;
  object-fit:cover;
  display:block;
}

@media (max-width: 900px){
  .before-after-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .before-after-images{
    grid-template-columns: 1fr;
  }

  .before-after-side + .before-after-side{
    border-left:none;
    border-top:1px solid #eee;
  }

  .before-after-side img{
    height:240px;
  }

  .before-after-head h2{
    font-size:28px;
  }
}


.topbar-right{
  display:flex;
  align-items:center;
  gap:12px;
}

.topbar-instagram{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:10px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 8px 18px rgba(0,0,0,.18);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
  overflow:hidden;
  flex:0 0 42px;
}

.topbar-instagram:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(0,0,0,.24);
  background:rgba(255,255,255,.14);
}

.topbar-instagram img{
  width:28px;
  height:28px;
  display:block;
  object-fit:contain;
  max-width:none;
  background:transparent !important;
}
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: all 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
  display: block;
}

/* ===== Services Grid ===== */
.services-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:20px;
  align-items:start;
}

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

/* ===== Service Card ===== */
.service-card{
  background:#fff;
  border:1px solid #eee;
  border-radius:16px;
  padding:22px 20px;
  box-shadow:0 10px 24px rgba(0,0,0,.05);
  overflow:hidden;
}

.service-top{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-bottom:14px;
}

.service-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  background:rgba(208,32,16,.10);
  flex:0 0 44px;
}

.service-title{
  min-height:110px;
}

.service-title h3{
  margin:0 0 10px;
  font-size:18px;
  font-weight:900;
  line-height:1.25;
}

.service-title p{
  margin:0;
  color:#444;
  line-height:1.45;
}

.service-card ul{
  margin:0 0 18px;
  padding-left:22px;
  min-height:112px;
}

.service-card li{
  margin:6px 0;
  line-height:1.4;
}

.service-image{
  height:220px;
  border-radius:16px;
  overflow:hidden;
  background:#f3f3f3;
  box-shadow:0 8px 18px rgba(0,0,0,.06);
}

.service-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center center;
}

/* ===== Individuelle Bildausrichtung Proment Pulvern ===== */
.service-img--pulvern-main{
  object-position:center 56%;
}

.service-img--pulvern-vorbehandlung{
  object-position:center 50%;
}

.service-img--pulvern-strahlen{
  object-position:center 52%;
}

.service-img--pulvern-chemisch{
  object-position:center 50%;
}