/*
Theme Name: IPCS Neu
Theme URI: https://ipcs-service.de/
Author: IPCS GmbH
Description: Webseite der IPCS GmbH (Kfz-Zulassungsdienst Würselen) im bisherigen Design. Alle Texte sind normale WordPress-Seiten (Seiten → Bearbeiten). Beim Aktivieren werden die Seiten angelegt; vorhandene Seiten mit gleicher Adresse werden als Entwurf „…-alt“ aufbewahrt und beim Zurückwechseln auf das alte Theme wiederhergestellt.
Version: 2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ipcs-neu
*/
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/red-hat-display-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/red-hat-display-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/red-hat-display-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/red-hat-display-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/space-grotesk-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/space-grotesk-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/space-grotesk-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IPCS GmbH – Design angelehnt an die bisherige Seite:
   weißer Kopf mit Logo, Dunkelblau #162048 für Flächen und Überschriften, Blau #3d7db9 für Buttons. */
:root {
  --navy: #162048;
  --blue: #3d7db9;
  --link: #3a9fc6;
  --text: #545a77;
  --ink: #162048;
  --bg: #ffffff;
  --bg-soft: #f8f8f8;
  --line: #e3e5ec;
  --font-head: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "Red Hat Display", "Segoe UI", Arial, sans-serif;
  --wrap: 1240px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.9rem); }
p { margin: 0; }
strong { color: var(--ink); font-weight: 600; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: .5rem 1rem; z-index: 50; }

/* Kopf */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: #fff; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .5rem; }
.brand img { height: 58px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.nav a { color: var(--text); font-size: 1.1rem; font-weight: 400; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }
.btn-forms { background: var(--blue); color: #fff; padding: .9rem 2.4rem; border-radius: 3px; white-space: nowrap; }
.btn-forms:hover { background: var(--navy); text-decoration: none; }
.nav-toggle { display: none; }
@media (max-width: 1020px) {
  .site-header .wrap { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: .55rem .9rem; font: inherit; color: var(--ink); cursor: pointer; margin-left: auto; }
  .btn-forms { display: none; }
  .nav { width: 100%; }
  .nav[data-open="false"] { display: none; }
  .nav ul { flex-direction: column; gap: 0; padding-bottom: .75rem; }
  .nav a { display: block; padding: .6rem 0; border-top: 1px solid var(--line); }
  .nav li.only-mobile { display: block; }
}
.nav li.only-mobile { display: none; }

/* Bausteine */
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #a9afc6; }
.section-navy h2, .section-navy h3 { color: #fff; }
.stack { display: grid; gap: 1.25rem; }
.lead-blue { color: var(--blue); font-family: var(--font-head); font-weight: 500; font-size: 1.25rem; }
.box { border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem); box-shadow: 0 20px 40px rgba(22, 32, 72, .08); }
.box-navy { background: var(--navy); color: #fff; }
.box-blue { background: var(--blue); color: #fff; }
.box-white { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(22, 32, 72, .08); }
.box-navy h1, .box-navy h2, .box-blue h2, .box-navy strong, .box-blue strong { color: #fff; }
.box ul { margin: 1.25rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.box a { color: #fff; text-decoration: underline; }
.box-white a { color: var(--link); text-decoration: none; }
.intro { padding-top: .75rem; }

.btn { display: inline-flex; align-items: center; gap: .6rem; font: 500 .95rem/1 var(--font-body); padding: .85rem 1.4rem; border-radius: 3px; cursor: pointer; border: 1px solid transparent; }
.btn:hover { text-decoration: none; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); }
.btn-blue { background: var(--blue); color: #fff; font-size: 1.15rem; padding: 1.2rem 2.4rem; }
.btn-blue:hover { background: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--ink); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }

.banner { display: block; margin-top: 1rem; }
.banner img { width: 100%; }
.claim { color: var(--blue); font-family: var(--font-head); font-size: clamp(1rem, .9rem + .5vw, 1.3rem); font-weight: 500; text-align: center; margin-top: .5rem; }
.big-claim { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); font-weight: 600; }

/* Bildkarten */
.photo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 900px) { .photo-cards { grid-template-columns: 1fr; } }
.photo-card { display: grid; gap: 1.25rem; align-content: start; }
.photo-card img { width: 100%; aspect-ratio: 451 / 262; object-fit: cover; }
.photo-card p { color: var(--text); }
.photo-card .btn { justify-self: start; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.checks li { display: flex; gap: .75rem; color: var(--ink); font-weight: 500; }
.checks li::before { content: "✔"; color: var(--navy); }

.tag { display: inline-block; background: var(--blue); color: #fff; font-family: var(--font-head); font-size: 1.6rem; font-weight: 500; padding: 0 .2rem; justify-self: start; }

/* Ablauf */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; text-align: center; }
.three h3 { font-size: 1.6rem; margin-bottom: 1.25rem; }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; } }

/* Icon-Liste */
.icon-list { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; }
@media (max-width: 860px) { .icon-list { grid-template-columns: 1fr; } }
.icon-item { display: grid; grid-template-columns: 64px 1fr; gap: 1.25rem; align-items: start; }
.icon-item .ico { width: 64px; height: 64px; background: var(--navy); display: grid; place-items: center; border-radius: 2px; }
.icon-item .ico svg { width: 34px; height: 34px; fill: #fff; }
.icon-item h3 { font-size: 1.75rem; margin-bottom: .5rem; }
.icon-item p { margin-bottom: 1.25rem; }

/* Dienste-Liste kompakt */
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2rem; list-style: none; padding: 0; margin: 0; }
@media (max-width: 860px) { .svc-list { grid-template-columns: 1fr; } }
.svc-list li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; }
.svc-list .ico { width: 52px; height: 52px; background: var(--navy); display: grid; place-items: center; }
.svc-list .ico svg { width: 24px; height: 24px; fill: #fff; }
.svc-list h3 { font-size: 1.15rem; font-weight: 600; }
.svc-list p { font-size: .95rem; line-height: 1.45; }

/* Zahlen */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin: 0; }
@media (max-width: 760px) { .figures { grid-template-columns: 1fr 1fr; } }
.figures div { display: grid; gap: .4rem; }
.figures dt { order: 2; color: var(--ink); font-weight: 500; }
.figures dd { order: 1; margin: 0; font: 500 3.2rem/1 var(--font-head); color: #1a1d2b; }

/* Grundwerte mit Linie und Punkten */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; border-top: 1px solid #3a4470; padding-top: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.values > div { position: relative; padding: 3rem 1rem 0 4.5rem; display: grid; gap: 1.25rem; align-content: start; }
.values > div::before { content: ""; position: absolute; left: 4.2rem; top: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); }
@media (max-width: 860px) { .values > div { padding-left: 1rem; } .values > div::before { left: 1rem; } }
.values h3 { font-size: 1.7rem; }
.overlay-box { background: rgba(61, 125, 185, .92); color: #fff; padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 6rem); display: grid; gap: 1rem; }
.overlay-box h3 { color: #fff; }

/* Fotos mit Kasten */
.photo-with-box { position: relative; }
.photo-with-box .box-under { position: absolute; left: -2rem; bottom: -3rem; background: #fff; padding: 2.5rem 4rem 2.5rem 3rem; display: grid; gap: .75rem; box-shadow: 0 10px 30px rgba(22,32,72,.06); }
@media (max-width: 860px) { .photo-with-box .box-under { position: static; } }

/* Öffnungszeiten */
.hours { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: .2rem 1rem .2rem 0; font-weight: 400; vertical-align: top; }
.hours th { color: var(--ink); font-weight: 500; white-space: nowrap; }

/* Unterlagen-Akkordeon */
.accordion { border: 1px solid #d5d8de; }
.accordion details + details { border-top: 1px solid #d5d8de; }
.accordion summary { list-style: none; cursor: pointer; padding: .9rem 1.25rem; display: flex; gap: .8rem; align-items: baseline; color: #333; font-size: 1.08rem; font-weight: 500; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before { content: "+"; font-weight: 700; font-size: 1.3rem; line-height: 1; color: #333; width: 1rem; }
.accordion details[open] summary::before { content: "−"; }
.accordion .body { padding: 0 1.25rem 1.25rem 3.05rem; display: grid; gap: .5rem; }
.accordion ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .25rem; }
.legend { font-size: .95rem; }

.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .downloads { grid-template-columns: 1fr; } }
.downloads .box-white { padding: 1.5rem; display: grid; gap: .6rem; align-content: start; }
.downloads h3 { font-size: 1.25rem; }

.todo { background: #fff3c4; color: #5a4300; padding: 0 .3em; border-radius: 3px; font-weight: 600; }

/* Formular */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { color: var(--ink); font-weight: 500; }
.field input, .field textarea, .field select { font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfd3dc; border-radius: 3px; padding: .75rem .85rem; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: .3rem; }
.form-status { font-weight: 600; color: var(--blue); }

.legal { display: grid; gap: 1.5rem; max-width: 70ch; }
.legal section { display: grid; gap: .4rem; }
.legal h2 { font-size: 1.4rem; }

/* Fuß */
.site-footer { padding-block: 3.5rem 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-size: 1.2rem; margin-bottom: 1.5rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-grid ul a { color: var(--text); }
.footer-grid .links-blue a { color: var(--link); }
.footer-logo { display: grid; gap: 2rem; }
.footer-logo img { width: 300px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* WhatsApp-Knopf */
.wa-float { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: .75rem; }
.wa-float span { background: #f4f5f7; color: #333; font-size: .8rem; line-height: 1.35; padding: .45rem .8rem; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.wa-float a { width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 600px) { .wa-float span { display: none; } }
.form.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 6px 18px rgba(22, 32, 72, .08); }
