@import url("/assets/css/fonts.css");

/* ==========================================================================
   PaintSystems GmbH – statisches Stylesheet
   Farben nach Vorlage: Rot #c12127, Anthrazit #2f3132
   ========================================================================== */

:root {
  --red: #c12127;
  --red-dark: #9d1b20;
  --dark: #2f3132;
  --dark-2: #222425;
  --dark-3: #1d1d1d;
  --grey-text: #555454;
  --grey-light: #f0f0f0;
  --grey-line: #e2e2e2;
  --white: #fff;
  --maxw: 1200px;
  --header-h: 92px;
  --header-h-small: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--grey-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 18px;
}
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 19px; }
p { margin: 0 0 18px; }
sup { font-size: .65em; }
hr { border: 0; border-top: 1px solid var(--grey-line); margin: 32px 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--red); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------- Topbar */
.topbar {
  background: var(--dark);
  color: #cfd1d2;
  font-size: 13.5px;
  line-height: 1.4;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: center;
  justify-content: flex-end;
  min-height: 40px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar .tb-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar a { color: #cfd1d2; }
.topbar a:hover { color: #fff; }
.topbar .tb-label { color: #8f9192; }
.topbar svg { width: 15px; height: 15px; fill: var(--red); flex: none; }

/* --------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .09);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand { display: block; flex: none; padding: 12px 0; }
.brand img { width: 190px; }

/* --------------------------------------------------------------- Nav */
.main-nav { margin-left: auto; }
.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a,
.main-nav > ul > li > .nav-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 400;
  color: var(--dark);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.main-nav > ul > li > a::after,
.main-nav > ul > li > .nav-toggle::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.main-nav > ul > li:hover > a::after,
.main-nav > ul > li:hover > .nav-toggle::after,
.main-nav > ul > li.is-active > a::after,
.main-nav > ul > li.is-active > .nav-toggle::after { transform: scaleX(1); }
.main-nav > ul > li.is-active > a,
.main-nav > ul > li.is-active > .nav-toggle { color: var(--red); }
.main-nav .caret { width: 9px; height: 9px; fill: currentColor; opacity: .7; }

.main-nav .submenu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;
  min-width: 268px;
  background: #fff;
  border-top: 3px solid var(--red);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.main-nav li:hover > .submenu,
.main-nav li:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav .submenu a {
  display: block;
  padding: 9px 22px;
  font-size: 14.5px;
  color: var(--dark);
}
.main-nav .submenu a:hover,
.main-nav .submenu li.is-active > a { background: var(--grey-light); color: var(--red); }

/* Sprachumschalter */
.lang-switch { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  color: #9a9c9d;
  text-transform: uppercase;
}
.lang-switch a.is-active, .lang-switch a:hover { color: var(--red); }
.lang-switch .sep { color: var(--grey-line); }

.nav-burger {
  display: none;
  border: 0;
  background: none;
  padding: 10px;
  cursor: pointer;
}
.nav-burger svg { width: 26px; height: 26px; fill: var(--dark); }

/* --------------------------------------------------------------- Hero */
.page-hero {
  position: relative;
  background: var(--dark) center/cover no-repeat;
  color: #fff;
  padding: 96px 0 84px;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 21, 22, .78) 0%, rgba(20, 21, 22, .45) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: 42px; font-weight: 500; margin: 0 0 14px; }
.page-hero .accent-line { display: block; width: 70px; height: 3px; background: var(--red); margin-bottom: 18px; }

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #d5d6d7;
}
.breadcrumb a { color: #d5d6d7; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: #7d7f80; }

/* Startseite: Bühne */
.home-hero {
  background: var(--dark) center/cover no-repeat;
  color: #fff;
  padding: 0;
}

/* --------------------------------------------------------------- Sections */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--grey { background: var(--grey-light); }

.sec-title { margin-bottom: 28px; }
.sec-title h1, .sec-title h2 { margin-bottom: 0; }
.sec-title .borderr {
  display: block;
  width: 70px;
  height: 3px;
  background: var(--red);
  margin: 17px 0 26px;
}
.ps-letters { color: var(--red); }

.lead { font-size: 18px; }

/* Zweispaltiges Intro */
.split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.split--media-right { grid-template-columns: 2fr 1fr; }
.split .media img { width: 100%; }
.split .media figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--dark);
  font-weight: 400;
}

/* Kacheln Geschäftsbereiche */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 56px;
}
.tile { position: relative; display: block; overflow: hidden; background: var(--dark); }
.tile img {
  width: 100%;
  transition: transform .5s ease, opacity .3s ease;
  opacity: .92;
}
.tile:hover img { transform: scale(1.06); opacity: .7; }
.tile h3 {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 18px 20px;
  font-size: 19px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to top, rgba(20, 21, 22, .88), rgba(20, 21, 22, 0));
}

/* Claim-Band */
.claim {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 46px 0;
}
.claim p {
  margin: 0;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: .02em;
  color: #fff;
}

/* Wertekarten */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--grey-line);
  padding: 34px 30px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.value-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .09); transform: translateY(-3px); }
.value-card .icon {
  width: 52px; height: 52px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value-card h3 { font-size: 20px; margin-bottom: 10px; }
.value-card p { margin: 0; font-size: 15px; }

/* Service-Layout mit Seitenmenü */
.with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 52px;
  align-items: start;
}
/* Newsartikel: Text links, Meldungsliste rechts */
.with-sidebar--article { grid-template-columns: 1fr 300px; }
.sidebar-nav h3 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 0;
}
.sidebar-nav .borderr { display: block; width: 50px; height: 3px; background: var(--red); margin: 14px 0 20px; }
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar-nav li { border-bottom: 1px solid var(--grey-line); }
.sidebar-nav a {
  display: block;
  padding: 12px 4px 12px 18px;
  position: relative;
  color: var(--dark);
  font-size: 15px;
}
.sidebar-nav a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  background: var(--red);
  opacity: .45;
}
.sidebar-nav a:hover, .sidebar-nav li.is-active > a { color: var(--red); }
.sidebar-nav li.is-active > a::before { opacity: 1; }

/* Fließtext-Seiten (AGB, AEB, Datenschutz, Compliance, Impressum) */
.prose {
  max-width: 900px;
  /* Die Rechtstexte enthalten lange URLs im Fliesstext */
  overflow-wrap: break-word;
}
.prose h1 { margin-bottom: 26px; }
.prose h2 { font-size: 24px; margin-top: 42px; }
/* Abschnitte ("1. Geltungsbereich") und Unterabschnitte ("(1) Cookies")
   muessen sich in den langen Rechtstexten klar unterscheiden. */
.prose h3 { font-size: 21px; margin-top: 46px; margin-bottom: 14px; }
.prose h4 {
  font-size: 16.5px;
  font-weight: 500;
  margin-top: 30px;
  margin-bottom: 10px;
}
.prose > *:first-child, .prose .sec-title h2 { margin-top: 0; }
.prose h3 + h4 { margin-top: 18px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.prose td, .prose th { border: 1px solid var(--grey-line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose a { word-break: break-word; }

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--grey-line);
  height: 100%;
  transition: box-shadow .25s ease, transform .25s ease;
}
.news-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .09); transform: translateY(-3px); }
.news-card .thumb { overflow: hidden; background: var(--grey-light); }
.news-card .thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 19px; margin-bottom: 6px; }
.news-card h3 a { color: var(--dark); }
.news-card h3 a:hover { color: var(--red); }
.news-card time { display: block; font-size: 13.5px; color: #8b8d8e; margin-bottom: 14px; }
.news-card p { font-size: 15px; }
.news-card .more { margin-top: auto; font-size: 14px; font-weight: 500; }

.article-media { margin-bottom: 34px; }
.article-meta { font-size: 14px; color: #8b8d8e; margin-bottom: 22px; }

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-card {
  background: var(--grey-light);
  padding: 34px 32px;
}
.contact-card h3 { font-size: 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 10px 0; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; fill: var(--red); flex: none; margin-top: 5px; }
.contact-list a { color: var(--dark); }
.contact-list a:hover { color: var(--red); }

.form-row { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 14px; color: var(--dark); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-line);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
}
input:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; }
textarea { min-height: 160px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 18px 0; }
.form-check input { margin-top: 5px; }

/* Honeypot – für Menschen unsichtbar, für Bots ausfüllbar */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 16px 20px;
  margin-bottom: 22px;
  border-left: 4px solid var(--red);
  background: var(--grey-light);
  font-size: 15px;
  color: var(--dark);
}
.form-status.is-ok { border-left-color: #2e7d32; background: #edf6ed; }
.form-status.is-error { border-left-color: var(--red); background: #fbeced; }
.form-status:focus { outline: 2px solid var(--red); outline-offset: 2px; }

.btn {
  display: inline-block;
  padding: 13px 34px;
  background: var(--red);
  color: #fff;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.form-note { font-size: 13.5px; color: #8b8d8e; margin-top: 14px; }

/* Sitemap */
.sitemap-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.sitemap-cols h3 { font-size: 18px; }
.sitemap-cols ul { list-style: none; margin: 0; padding: 0; }
.sitemap-cols li { border-bottom: 1px solid var(--grey-line); }
.sitemap-cols a { display: block; padding: 9px 0; color: var(--dark); font-size: 15px; }
.sitemap-cols a:hover { color: var(--red); }

/* --------------------------------------------------------------- Footer */
.site-footer { background: var(--dark); color: #a9abac; font-size: 15px; }
.site-footer .container { padding-top: 64px; padding-bottom: 44px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.site-footer h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 0;
}
.site-footer .bordert { display: block; width: 70px; height: 1px; background: #4c4e4f; margin: 17px 0 26px; }
.site-footer a { color: #a9abac; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer .link-list li { border-bottom: 1px solid #3c3e3f; }
.site-footer .link-list a { display: block; padding: 8px 0; }
.site-footer video { width: 100%; background: #000; }
.footer-address p { margin: 0 0 4px; }
.footer-address .strong { color: #fff; font-weight: 500; }
.footer-contact-list li { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.footer-contact-list svg { width: 17px; height: 17px; fill: var(--red); flex: none; margin-top: 5px; }

.mini-form input, .mini-form textarea {
  background: #3a3c3d;
  border-color: #4c4e4f;
  color: #e7e8e8;
  padding: 10px 12px;
  font-size: 14px;
}
.mini-form textarea { min-height: 96px; }
.mini-form label { color: #a9abac; }
.mini-form .form-check { color: #a9abac; font-size: 13px; }
.mini-form .form-note { color: #8b8d8e; }

.footer-bottom {
  border-top: 1px solid #3c3e3f;
  background: var(--dark-3);
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 14px;
}
.social { display: flex; gap: 10px; }
.social a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3a3c3d;
  transition: background .2s ease;
}
.social a:hover { background: var(--red); }
.social svg { width: 17px; height: 17px; fill: #d3d4d5; }

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--red);
  border: 0;
  cursor: pointer;
  z-index: 80;
}
.to-top.is-visible { display: inline-flex; }
.to-top svg { width: 18px; height: 18px; fill: #fff; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .main-nav > ul > li > a,
  .main-nav > ul > li > .nav-toggle { padding: 12px 10px; font-size: 14.5px; }
  .brand img { width: 165px; }
}

@media (max-width: 991px) {
  .nav-burger { display: inline-flex; order: 3; }
  .lang-switch { order: 2; margin-left: auto; }
  .main-nav {
    order: 4;
    display: none;
    flex-basis: 100%;
    border-top: 1px solid var(--grey-line);
    padding: 8px 0 18px;
  }
  .main-nav.is-open { display: block; }
  .site-header .container { flex-wrap: wrap; min-height: var(--header-h-small); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li > a,
  .main-nav > ul > li > .nav-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 13px 4px;
    border-bottom: 1px solid var(--grey-line);
  }
  .main-nav > ul > li > a::after,
  .main-nav > ul > li > .nav-toggle::after { display: none; }
  .main-nav .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    display: none;
    padding: 0 0 8px;
    background: var(--grey-light);
  }
  .main-nav .submenu.is-open { display: block; }
  .main-nav .submenu a { padding: 10px 18px; }

  .split, .split--media-right { grid-template-columns: 1fr; gap: 32px; }
  .with-sidebar,
  .with-sidebar--article { grid-template-columns: 1fr; gap: 36px; }
  .tiles, .values, .news-grid, .sitemap-cols { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 62px 0 54px; }
  .page-hero h1 { font-size: 32px; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  h1 { font-size: 27px; }
  .tiles, .values, .news-grid, .sitemap-cols, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .page-hero h1 { font-size: 26px; }
  .claim p { font-size: 22px; }
  .topbar .container { justify-content: flex-start; }
}

@media print {
  .site-header, .site-footer, .topbar, .to-top, .page-hero::after { display: none !important; }
  .page-hero { color: #000; background: none; padding: 0 0 20px; }
  .page-hero h1 { color: #000; }
  body { color: #000; font-size: 12pt; }
}
