/* www.harting-maler.de – Facelift 2026: Harting-Rot und Anthrazit wie bisher, Systemschrift, responsiv */
:root {
  --rot: #cd1719; --rot-dunkel: #a01214; --dunkel: #1d1d1b; --text: #333; --grau: #6b6b6b;
  --linie: #e2e1df; --hell: #f4f4f2; --breite: 1140px; --rund: 10px; --rund-klein: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--hell); }
a { color: var(--rot); }
a:hover { color: var(--rot-dunkel); }
img { max-width: 100%; height: auto; }
a[href^="tel:"] { white-space: nowrap; }
.sprung { position: absolute; left: -999px; }
.sprung:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* Kopf */
.kopf { background: #fff; }
.kopf-innen { max-width: var(--breite); margin: 0 auto; padding: .9rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.marke img { display: block; width: 210px; }
.kopf-kontakt { margin: 0; text-align: right; font-weight: 600; line-height: 1.5; }
.kopf-kontakt a { color: var(--dunkel); text-decoration: none; }
.kopf-kontakt a:hover { color: var(--rot); }
.hauptmenue { background: var(--rot); }
.hauptmenue ul { max-width: var(--breite); margin: 0 auto; padding: 0 .75rem; list-style: none; display: flex; flex-wrap: wrap; }
.hauptmenue a { display: block; padding: .7rem 1rem; color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.hauptmenue a:hover { background: var(--rot-dunkel); color: #fff; }
.hauptmenue a[aria-current] { background: var(--dunkel); }

/* Kopfbild */
.kopfbild { max-width: var(--breite); margin: 1.5rem auto 0; padding: 0 1.25rem; }
.kopfbild img { display: block; width: 100%; border-radius: var(--rund); }

/* Inhalt */
.inhalt { width: calc(100% - 2.5rem); max-width: calc(var(--breite) - 2.5rem); margin: 1.5rem auto; background: #fff; padding: 1.75rem 2.25rem 2.25rem; border: 1px solid var(--linie); border-radius: var(--rund); }
.inhalt > :last-child { margin-bottom: 0; }
.inhalt::after { content: ""; display: block; clear: both; }
h1 { color: var(--dunkel); font-size: 1.8rem; line-height: 1.25; margin: 0 0 1rem; padding-bottom: .4rem; border-bottom: 3px solid var(--rot); }
h2 { color: var(--dunkel); font-size: 1.25rem; margin: 1.75rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 .4rem; }
.inhalt li::marker { color: var(--rot); }
ul.liste { columns: 2; column-gap: 2.5rem; padding-left: 1.2rem; }
ul.liste li { break-inside: avoid; }
.hinweis { color: var(--grau); }

/* Startseite */
.start h1 { text-align: center; border: 0; letter-spacing: .06em; margin-bottom: .1rem; }
.start .leitspruch { text-align: center; font-size: 1.2rem; font-weight: 600; color: var(--rot); margin: 0 0 1.5rem; }
.bild.rechts { float: right; width: 44%; margin: .3rem 0 1rem 1.75rem; }
.bild img { display: block; border-radius: var(--rund-klein); }
.kacheln { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; clear: both; }
.kacheln li { display: flex; flex-direction: column; border: 1px solid var(--linie); border-radius: var(--rund); overflow: hidden; background: #fff; }
.kacheln img { display: block; width: 100%; }
.kacheln h2 { margin: .9rem 1.1rem .3rem; font-size: 1.15rem; }
.kacheln p { margin: 0 1.1rem 1rem; font-size: .95rem; flex: 1; }
.kacheln .mehr { margin: 0 1.1rem 1.1rem; align-self: flex-start; background: var(--rot); color: #fff; text-decoration: none; font-weight: 600; padding: .4rem 1rem; border-radius: var(--rund-klein); font-size: .95rem; }
.kacheln .mehr:hover { background: var(--rot-dunkel); color: #fff; }

/* Bildergalerie */
.galerie { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.galerie a { display: block; }
.galerie img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rund-klein); transition: opacity .15s; }
.galerie a:hover img { opacity: .85; }
.leuchtkasten { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; z-index: 20; cursor: zoom-out; }
.leuchtkasten[hidden] { display: none; }
.leuchtkasten img { max-width: 94vw; max-height: 88vh; border-radius: var(--rund-klein); }
.leuchtkasten button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 2rem; line-height: 1; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; }
.leuchtkasten button:hover { background: var(--rot); }
.leuchtkasten .zu { top: 1rem; right: 1rem; }
.leuchtkasten .zurueck { left: 1rem; top: 50%; transform: translateY(-50%); }
.leuchtkasten .vor { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Kontakt */
.kontakt-daten { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; }
.kontakt-daten dt { font-weight: 600; }
.kontakt-daten dd { margin: 0; }

/* Anrufleiste und Fuß */
.anruf { background: var(--rot); color: #fff; margin-top: 2rem; }
.anruf p { max-width: var(--breite); margin: 0 auto; padding: 1.1rem 1.25rem; text-align: center; font-size: 1.15rem; font-weight: 600; }
.anruf a { color: #fff; }
.fuss { background: var(--dunkel); color: #d6d6d4; font-size: .93rem; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 1.75rem 1.25rem 2rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.fuss h2 { color: #fff; font-size: 1rem; margin: 0 0 .5rem; }
.fuss p { margin: 0; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { padding: .1rem 0; }
.fuss a { color: #d6d6d4; }
.fuss a:hover { color: #fff; }

@media (max-width: 900px) {
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuss-innen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .marke img { width: 160px; }
  .kopf-kontakt { font-size: .9rem; }
  .hauptmenue a { padding: .55rem .65rem; }
  .kopfbild { margin-top: 1rem; }
  .inhalt { padding: 1.25rem; margin: 1rem auto; width: calc(100% - 1.5rem); }
  .kopfbild { padding: 0 .75rem; }
  h1 { font-size: 1.45rem; }
  ul.liste { columns: 1; }
  .bild.rechts { float: none; width: 100%; margin: 0 0 1rem; }
  .kacheln { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuss-innen { grid-template-columns: 1fr; }
}
@media print {
  .hauptmenue, .sprung, .kopfbild, .anruf { display: none; }
  body { background: #fff; }
  .inhalt { border: 0; padding: 0; }
}
