/*
Theme Name: der maler reher
Theme URI: https://dermalerreher.de/
Author: der maler reher UG (haftungsbeschränkt)
Description: Dunkles, zweisprachiges Theme für den Maler- und Lackierermeisterbetrieb der maler reher. Startseite, Leistungsseiten, Referenzen, Kontaktformular. Deutsch und Englisch mit Polylang.
Version: 1.0.3
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dermalerreher
*/

/* Schriften liegen im Theme (kein Abruf bei Google) */
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(assets/fonts/red-hat-display-latin-wght-normal.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: 300 900; font-display: swap; src: url(assets/fonts/red-hat-display-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(assets/fonts/red-hat-text-latin-wght-normal.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 Text"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(assets/fonts/red-hat-text-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  /* Layout: ruhiger Anthrazit-Grund, Rot nur als Akzent. Jedes Gewerk wird als Materialmuster gezeigt. */
  color-scheme: light;
  --red: #EE2A2B;        /* Hausfarbe aus dem Logo */
  --red-deep: #C21E24;   /* Links und Hover auf Weiss */
  --ink: #262B2F;        /* Anthrazit, Text */
  --ink-soft: #586067;
  --paper: #FFFFFF;
  --wall: #F2F3F1;       /* kuehles Wandweiss fuer Flaechen */
  --line: #D9DDDA;
  --tape: #EBD98F;       /* Malerkrepp */
  --display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --body: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --r-sm: 10px;
  --r-lg: 18px;
  --pat-parkett: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cpolygon points='0,0 40,-20 40,0 0,20' fill='%23B5834F'/%3E%3Cpolygon points='40,-20 80,0 80,20 40,0' fill='%23C2925D'/%3E%3Cpath d='M0 0L40 -20L80 0' fill='none' stroke='%235B3A1C' stroke-opacity='.5' stroke-width='1'/%3E%3Cpolygon points='0,20 40,0 40,20 0,40' fill='%23A67443'/%3E%3Cpolygon points='40,0 80,20 80,40 40,20' fill='%23A67443'/%3E%3Cpath d='M0 20L40 0L80 20' fill='none' stroke='%235B3A1C' stroke-opacity='.5' stroke-width='1'/%3E%3Cpolygon points='0,40 40,20 40,40 0,60' fill='%23B5834F'/%3E%3Cpolygon points='40,20 80,40 80,60 40,40' fill='%23C2925D'/%3E%3Cpath d='M0 40L40 20L80 40' fill='none' stroke='%235B3A1C' stroke-opacity='.5' stroke-width='1'/%3E%3Cpolygon points='0,60 40,40 40,60 0,80' fill='%23A67443'/%3E%3Cpolygon points='40,40 80,60 80,80 40,60' fill='%23A67443'/%3E%3Cpath d='M0 60L40 40L80 60' fill='none' stroke='%235B3A1C' stroke-opacity='.5' stroke-width='1'/%3E%3Cpath d='M0 0v40M40 0v40M80 0v40' stroke='%235B3A1C' stroke-opacity='.5' stroke-width='1'/%3E%3C/svg%3E");
  --pat-putz: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05' numOctaves='4' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23F5F2EA' surfaceScale='2.4'%3E%3CfeDistantLight azimuth='45' elevation='60'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23p)'/%3E%3C/svg%3E");
  --pat-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='30' viewBox='0 0 160 30'%3E%3Cpath fill='%23EE2A2B' d='M0 0H160V14C150 22 140 10 128 16S110 26 96 15 80 20 64 12 44 24 30 14 12 22 0 14Z'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.7vw, 2.9rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
p { margin: 0; }
a { color: var(--red-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-red :focus-visible, .on-dark :focus-visible { outline-color: #fff; }
.wrap { width: min(1180px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }
.sec { padding-block: clamp(4rem, 9vw, 7rem); }
.sec-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 38rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .7rem 1.4rem; border-radius: 12px; border: 2px solid transparent; font: 700 1.05rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--red-deep); }
.btn-red { background: var(--red-deep); color: #fff; }
.btn-red:hover { background: var(--ink); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--red); color: #fff; }
.top-row { display: flex; align-items: center; gap: 1.25rem; min-height: 76px; }
.brand { flex: none; display: block; }
.brand img { width: clamp(168px, 20vw, 226px); }
.nav { display: flex; gap: clamp(.9rem, 2vw, 1.75rem); margin-left: auto; }
.nav a { color: #fff; text-decoration: none; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.here { border-bottom-color: #fff; }
.top-tools { display: flex; align-items: center; gap: .9rem; }
.dmr-lang { display: flex; border: 2px solid #fff; border-radius: 10px; overflow: hidden; }
.dmr-lang button { font: 700 .9rem/1 var(--body); padding: .5rem .6rem; background: transparent; color: #fff; border: 0; cursor: pointer; }
.dmr-lang button[aria-pressed="true"] { background: #fff; color: var(--red-deep); }
.tel { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tel:hover { text-decoration: underline; }
.menu-btn { display: none; font: 700 .95rem/1 var(--body); padding: .6rem .8rem; background: #fff; color: var(--red-deep); border: 0; border-radius: 10px; cursor: pointer; }

/* Hero */
.hero { background: var(--red); color: #fff; padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-text { display: grid; gap: 1.5rem; }
h1 { font-size: clamp(2.4rem, 5vw, 3.85rem); font-weight: 900; line-height: .98; letter-spacing: -0.025em; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); font-weight: 500; line-height: 1.5; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Room you can repaint */

.chip { min-height: 40px; padding: .35rem .6rem; border-radius: 10px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 500 .95rem/1.2 var(--body); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fine { font-size: .9rem; color: var(--ink-soft); padding-inline: .25rem; padding-bottom: .15rem; }

/* Services as a fan of material samples */
.fan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.4rem); align-items: start; }
.fan-item { display: grid; gap: .7rem; align-content: start; }
.fan-item h3 { font-size: 1.1rem; hyphens: auto; overflow-wrap: anywhere; }
.fan-item p { color: var(--ink-soft); font-size: .98rem; line-height: 1.5; }
.strip { position: relative; --h: 270px; height: var(--h); margin-top: calc(330px - var(--h)); border-radius: 16px 16px 4px 4px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(38,43,47,.12); margin-bottom: .4rem; }
.strip::after { content: ""; position: absolute; top: 14px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.fan-item:nth-child(1) .strip { --h: 300px; }
.fan-item:nth-child(2) .strip { --h: 250px; }
.fan-item:nth-child(3) .strip { --h: 330px; }
.fan-item:nth-child(4) .strip { --h: 285px; }
.fan-item:nth-child(5) .strip { --h: 260px; }
.fan-item:nth-child(6) .strip { --h: 310px; }
.m-farbe { background: #F3F0E9; }
.m-farbe i { position: absolute; inset: 0 0 38% 0; background: var(--red); }
.m-farbe i::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 30px; background: var(--pat-edge) 0 0 / 160px 30px repeat-x; }
.m-lack { background: linear-gradient(104deg, #2B3237 0%, #364047 24%, #8C979E 33%, #4A545B 38%, #2F373D 52%, #23292E 78%, #3A444B 100%); }
.m-putz { background: var(--pat-putz) 0 0 / 240px 240px; }
.m-trocken { background:
    radial-gradient(circle at 30% 50%, #7B8287 0 3px, rgba(0,0,0,0) 3.6px) 0 20px / 100% 62px,
    radial-gradient(circle at 70% 50%, #7B8287 0 3px, rgba(0,0,0,0) 3.6px) 0 20px / 100% 62px,
    linear-gradient(to right, rgba(0,0,0,0) 43%, #F4F2EC 43% 57%, rgba(0,0,0,0) 57%),
    #D6D2C4; }
.m-boden { background: var(--pat-parkett) 0 0 / 80px 40px; }
/* Fassade im Schnitt: Daemmplatte, Armierungsgewebe, Oberputz */
.m-fassade { background: repeating-linear-gradient(94deg, rgba(120,88,14,.13) 0 2px, rgba(0,0,0,0) 2px 7px), repeating-linear-gradient(3deg, rgba(120,88,14,.08) 0 1px, rgba(0,0,0,0) 1px 5px), #E3C866; }
.m-fassade i { position: absolute; inset: 0 0 30% 0; background: linear-gradient(#8C9398 1px, rgba(0,0,0,0) 1px) 0 0 / 11px 11px, linear-gradient(90deg, #8C9398 1px, rgba(0,0,0,0) 1px) 0 0 / 11px 11px, #C3C8CA; box-shadow: 0 3px 5px rgba(0,0,0,.28); }
.m-fassade b { position: absolute; inset: 0 0 60% 0; background: var(--pat-putz) 0 0 / 240px 240px; box-shadow: 0 3px 5px rgba(0,0,0,.28); }

.extra { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; gap: 1.5rem; }
.extra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); max-width: 52rem; }
.extra-item { border-top: 4px solid var(--red); padding-top: 1rem; display: grid; gap: .5rem; align-content: start; }
.extra-item p { color: var(--ink-soft); }
.extra > h3 { font-size: 1.5rem; }

/* About */
.about { background: var(--wall); }
.about-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.photos { position: relative; padding: 0 0 14% 0; }
.photos .p1 { width: 68%; border-radius: var(--r-lg); aspect-ratio: 3 / 4; object-fit: cover; }
.photos .p2 { position: absolute; right: 0; bottom: 0; width: 58%; border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; border: 8px solid var(--wall); }
.about-text { display: grid; gap: 1.25rem; }
.about-text p { max-width: 36rem; }
.people { margin: .75rem 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.people div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.people dt { font: 800 1.15rem/1.3 var(--display); }
.people dd { margin: 0; color: var(--ink-soft); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .45rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); font: 900 3.4rem/1 var(--display); color: var(--red); }
.steps p { color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }

/* Service area */
.area { background: var(--ink); color: #fff; }
.area-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.area-text { display: grid; gap: 1.25rem; }
.area-text p { color: #D5DADD; max-width: 32rem; }
.area-text .fine { color: #AEB6BB; padding: 0; }
.map { width: 100%; height: auto; display: block; }
.map .ring { fill: none; stroke: #5C666D; stroke-width: 1; stroke-dasharray: 3 5; }
.map .ring-label { fill: #9AA3A9; font: 500 12px var(--body); }
.map .spoke { stroke: #4A535A; stroke-width: 1; }
.map .town { fill: #fff; }
.map .town-label { fill: #fff; font: 700 14px var(--body); }
.map .km { fill: #AEB6BB; font-weight: 400; font-size: 12.5px; }
.map .sea { fill: #6E7980; font: italic 500 14px var(--body); letter-spacing: .12em; }
.map .base { fill: var(--red); }
.map .base-halo { fill: none; stroke: var(--red); stroke-width: 2; }
.map .base-label { fill: #fff; font: 800 16px var(--display); }

/* Partners */
.partners-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.partners-text { display: grid; gap: 1.25rem; }
.partners-text p { color: var(--ink-soft); max-width: 34rem; }
.brands { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.brands li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.brands b { font: 800 1.5rem/1.2 var(--display); }
.brands span { color: var(--ink-soft); text-align: right; }

/* Contact */
.contact { background: var(--wall); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-info { display: grid; gap: 1.5rem; }
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.ways li { display: grid; gap: .1rem; }
.ways .k { color: var(--ink-soft); font-size: .95rem; }
.ways .v { font: 800 1.35rem/1.3 var(--display); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.ways a.v:hover { color: var(--red-deep); text-decoration: underline; }
.ways address { font-style: normal; font-weight: 500; }
.form { background: #fff; border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1.1rem; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(38,43,47,.45); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .98rem; }
.field input, .field select, .field textarea { width: 100%; font: 400 1.0625rem/1.4 var(--body); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: .7rem .8rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field textarea { min-height: 8rem; resize: vertical; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .95rem; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--red-deep); }
.form-msg { background: #FFF4D6; border-left: 4px solid #D9A400; padding: .8rem 1rem; border-radius: 6px; font-size: .98rem; }
.form-msg[hidden] { display: none; }

/* References page */
[hidden] { display: none !important; }
.page-head { background: var(--red); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-head .wrap { display: grid; gap: 1rem; }
.page-head p { font-size: 1.25rem; font-weight: 500; max-width: 36rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1rem, 2.4vw, 2rem); }
.ref { position: relative; display: grid; gap: .8rem; align-content: start; }
.ref-cover { aspect-ratio: 4 / 3; border-radius: 16px 16px 4px 4px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(38,43,47,.12); display: grid; place-items: center; }
.ref-cover img { width: 100%; height: 100%; object-fit: cover; }
.ref-cover.ph span { background: rgba(255,255,255,.92); padding: .3rem .7rem; border-radius: 8px; font-weight: 500; font-size: .95rem; color: var(--ink-soft); }
.ref-facts { margin: 0; border-top: 2px solid var(--ink); }
.ref-facts div { display: grid; gap: .05rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.ref-facts dt { color: var(--ink-soft); font-size: .9rem; }
.ref-facts dd { margin: 0; font-weight: 500; }
.ref-cta { margin-top: clamp(2.5rem, 6vw, 4rem); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; border-top: 4px solid var(--red); padding-top: 1.5rem; }
.ref-cta h3 { font-size: 1.5rem; }

/* Footer */
.foot { background: var(--red); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.5rem, 5vw, 4rem); align-items: end; }
.foot img { width: 150px; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot a, .foot button.linklike { color: #fff; font: 500 1rem/1.5 var(--body); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.foot small { font-size: .95rem; display: block; }

/* Dialog */
dialog { border: 0; border-radius: var(--r-lg); padding: 0; width: min(560px, calc(100% - 32px)); color: var(--ink); }
dialog::backdrop { background: rgba(38,43,47,.6); }
.dlg { padding: clamp(1.25rem, 4vw, 2rem); display: grid; gap: 1rem; }
.dlg h2 { font-size: 1.6rem; }
.dlg dl { margin: 0; display: grid; gap: .6rem; }
.dlg dt { font-weight: 700; font-size: .95rem; color: var(--ink-soft); }
.dlg dd { margin: 0; }
.dlg .btn { justify-self: start; }

/* Responsive */
@media (max-width: 1040px) {
  .tel { display: none; }
  .fan { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.25rem; }
  .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip, .fan-item:nth-child(n) .strip { --h: 220px; margin-top: 0; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .top-tools { margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--red); flex-direction: column; gap: 0; padding: .25rem clamp(16px, 4vw, 40px) 1rem; border-top: 1px solid rgba(255,255,255,.35); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.3); font-size: 1.1rem; }
  .hero-grid, .about-grid, .area-grid, .partners-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .extra-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 620px) {
  .fan { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }
  .refs { grid-template-columns: minmax(0, 1fr); }
  .fan-item h3 { font-size: 1.2rem; }
  .fan-item { grid-template-columns: 84px minmax(0, 1fr); column-gap: 1rem; row-gap: .3rem; }
  .fan-item .strip, .fan-item:nth-child(n) .strip { grid-row: 1 / span 2; height: auto; min-height: 120px; margin: 0; border-radius: 12px 12px 4px 4px; }
  .fan-item h3 { align-self: end; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }
  .steps li { grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: .5rem; }
  .steps li::before { grid-row: 1 / span 2; font-size: 2.6rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .people div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .brands li { flex-direction: column; gap: .1rem; }
  .brands span { text-align: left; }
  .cta-row .btn { flex: 1 1 100%; }
  .map .town-label { font-size: 22px; }
  .map .town-label.minor { display: none; }
  .map .km { font-size: 19px; }
  .map .ring-label, .map .sea { font-size: 17px; }
  .map .base-label { font-size: 21px; transform: translate(-46px, 8px); }
  .map .town { r: 5.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ===== Dark variant: anthracite ground, red only as accent ===== */
:root {
  color-scheme: dark;
  --paper: #1F2428;      /* Anthrazit, Grundflaeche */
  --wall: #262C31;       /* abgesetzte Baender */
  --panel: #2D343A;      /* Karten, Formular */
  --deep: #171B1E;       /* Karte, Fusszeile */
  --ink: #F2F3F1;
  --ink-soft: #AEB6BB;
  --line: #3C444B;
  --red: #FF3B3B;        /* helles Rot fuer Logo, Linien und Akzente auf dunklem Grund */
  --red-btn: #E0282C;    /* Buttons: etwas tiefer, damit weisse Schrift gut lesbar bleibt */
  --red-deep: #FF8078;   /* Links auf dunklem Grund */
}
.top { background: var(--paper); box-shadow: inset 0 4px 0 var(--red), 0 1px 0 var(--line); }
.dmr-lang button[aria-pressed="true"] { background: #fff; color: #1F2428; }
.menu-btn { color: #1F2428; }
.hero { background: var(--paper); padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem); }
.hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); align-items: end; }
.stroke { display: block; width: 132px; height: 16px; border-radius: 8px; background: var(--red); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
.lede { color: #D5DADD; }
.btn-red { background: var(--red-btn); color: #fff; }
.btn-red:hover { background: #fff; color: #1F2428; }
.btn-ghost:hover { background: #fff; color: #1F2428; }
.facts { background: var(--panel); border-top: 6px solid var(--red); border-radius: 4px 4px var(--r-lg) var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) clamp(.75rem, 2vw, 1.25rem); }
.facts h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.facts dl { margin: 0; }
.facts dl div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 500; }
.strip { box-shadow: none; }
.area { background: var(--deep); }
.form { background: var(--panel); box-shadow: none; }
.field input, .field select, .field textarea { background: var(--paper); }
.chip { background: transparent; }
.chip[aria-pressed="true"] { background: #F2F3F1; border-color: #F2F3F1; color: #1F2428; }
.ref-cover.ph span { color: #586067; }
.page-head { background: var(--deep); box-shadow: inset 0 -6px 0 var(--red); }
.foot { background: var(--deep); box-shadow: inset 0 6px 0 var(--red); }
dialog { background: var(--panel); }
@media (max-width: 860px) {
  .nav { background: var(--paper); border-top-color: var(--line); }
  .nav a { border-bottom-color: var(--line); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .facts dl div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}

/* ===== WordPress-Theme: zusaetzliche Bausteine ===== */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; clip-path: none; background: #fff; color: #1F2428; padding: .6rem 1rem; border-radius: 8px; }
.admin-bar .top { top: 32px; }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .top { top: 0; } }

/* Logo nimmt die Akzentfarbe an (Maske ueber die Logo-Datei) */
.brand-logo { display: block; width: clamp(168px, 20vw, 226px); aspect-ratio: 640 / 156; background: var(--red); -webkit-mask: url(assets/img/logo-wide.png) center / contain no-repeat; mask: url(assets/img/logo-wide.png) center / contain no-repeat; }
.brand .custom-logo { width: clamp(168px, 20vw, 226px); height: auto; }
.foot-logo { display: block; width: 150px; aspect-ratio: 481 / 384; background: var(--red); -webkit-mask: url(assets/img/logo-stacked.png) center / contain no-repeat; mask: url(assets/img/logo-stacked.png) center / contain no-repeat; }
.top { box-shadow: inset 0 4px 0 var(--red), 0 1px 0 var(--line); }
.nav a[aria-current="page"], .nav .current-menu-item > a, .nav a.current { border-bottom-color: #fff; }
/* Sprachumschalter. Eigener Klassenname, damit Cookie-Plugins ihn nicht ueberschreiben. */
.dmr-lang a { font: 700 .9rem/1 var(--body); padding: .5rem .6rem; color: #fff; text-decoration: none; }
.dmr-lang a[aria-current="true"] { background: #fff; color: #1F2428; }
/* Kopfzeile auf schmalen Handys: Logo, Sprache und Menue passen nebeneinander */
@media (max-width: 480px) {
  .top-row { gap: .6rem; min-height: 64px; }
  .brand-logo, .brand .custom-logo { width: clamp(118px, 36vw, 168px); }
  .top-tools { gap: .5rem; }
  .dmr-lang a { padding: .45rem .5rem; font-size: .85rem; }
  .menu-btn { padding: .55rem .65rem; font-size: .9rem; }
}
.foot a { text-decoration: underline; }

/* Seitenkopf mit Einleitung */
.page-head .crumb { font-size: .95rem; color: var(--ink-soft); }
.page-head .crumb a { color: var(--ink-soft); }
.page-head h1 { max-width: 20ch; }
.page-head.wide h1 { max-width: none; }

/* Inhalt aus dem WordPress-Editor */
.entry { max-width: 44rem; display: flow-root; }
.entry > * + * { margin-top: 1.15rem; }
.entry h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 2.5rem; }
.entry h3 { font-size: 1.25rem; margin-top: 2rem; }
.entry > :first-child { margin-top: 0; }
.entry ul, .entry ol { margin: 1.15rem 0 0; padding-left: 1.3rem; display: grid; gap: .45rem; }
.entry ul li::marker { color: var(--red); }
.entry a { color: var(--red-deep); }
.entry img { border-radius: var(--r-lg); }
.entry figure { margin-inline: 0; }
.entry figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .4rem; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { text-align: left; padding: .6rem .5rem .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry ol { list-style: decimal; }
.entry ol li::marker { color: var(--red); font-weight: 700; }
.entry .wp-block-table { overflow-x: auto; margin-top: 1.4rem; }
.entry .wp-block-table table { table-layout: auto; width: 100%; }
.entry .wp-block-table thead { border-bottom: 0; }
.entry .wp-block-table th, .entry .wp-block-table td { border: 0; border-bottom: 1px solid var(--line); padding: .7rem 1rem .7rem 0; word-break: normal; overflow-wrap: break-word; hyphens: auto; vertical-align: top; text-align: left; }
.entry .wp-block-table th:last-child, .entry .wp-block-table td:last-child { padding-right: 0; }
.entry .wp-block-table thead th { border-bottom: 2px solid var(--ink); font-family: var(--display); font-weight: 800; }
.entry .wp-block-table td:first-child { font-weight: 700; }
@media (max-width: 620px) {
  .entry .wp-block-table table { font-size: .92rem; }
  .entry .wp-block-table th, .entry .wp-block-table td { padding: .6rem .6rem .6rem 0; }
}
.entry h2 + h3 { margin-top: 1.25rem; }
.entry blockquote { margin-inline: 0; padding-left: 1.1rem; border-left: 4px solid var(--red); color: var(--ink-soft); }
.entry .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.entry .alignwide, .entry .alignfull { max-width: none; }
.entry-wide { max-width: none; }
.legal { overflow-wrap: anywhere; }

/* Leistungsseite */
.service-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.service-side { display: grid; gap: 1.5rem; position: sticky; top: 110px; }
.service-side .strip { --h: 240px; margin: 0; }
.cta-box { background: var(--panel); border-top: 6px solid var(--red); border-radius: 4px 4px var(--r-lg) var(--r-lg); padding: 1.4rem; display: grid; gap: .9rem; }
.cta-box p { color: var(--ink-soft); }
.cta-box .btn { width: 100%; }
.more { margin-top: clamp(3rem, 7vw, 5rem); display: grid; gap: 1.25rem; }
.more-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.more-list a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .9rem; border: 2px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.more-list a:hover { border-color: var(--ink); }
.fan-item h3 a { color: inherit; text-decoration: none; }
.fan-item h3 a:hover, .extra-item h3 a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.fan-item .strip-link { display: block; }
.extra-item h3 a { color: inherit; text-decoration: none; }
.sec-foot { margin-top: clamp(2rem, 5vw, 3rem); }
.textlink { font-weight: 700; color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 2px; }

.entry .wp-block-image img { width: auto; max-width: 100%; max-height: 34rem; }

/* Die Rollkante im Farbmuster folgt der Akzentfarbe */
.m-farbe i::after { background: var(--red); -webkit-mask: var(--pat-edge) 0 0 / 160px 30px repeat-x; mask: var(--pat-edge) 0 0 / 160px 30px repeat-x; }

@media (max-width: 620px) {
  .fan-item .strip-link { grid-row: 1 / span 2; align-self: stretch; display: grid; }
  .fan-item .strip-link .strip { height: 100%; }
}

/* Referenzen */
.ref-cover { position: relative; }
.refs-empty { background: var(--panel); border-left: 4px solid var(--red); padding: 1.1rem 1.25rem; border-radius: 6px; max-width: 40rem; }

/* Kontakt */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg.ok { background: #DDF3E4; border-left-color: #2E8B57; color: #14301F; }
.mapbox { margin-top: clamp(2.5rem, 6vw, 4rem); background: var(--deep); border-radius: var(--r-lg); overflow: hidden; min-height: 320px; display: grid; place-items: center; text-align: center; padding: 2rem; }
.mapbox.loaded { padding: 0; }
.mapbox iframe { width: 100%; height: 420px; border: 0; display: block; }
.mapbox-inner { display: grid; gap: .9rem; justify-items: center; max-width: 34rem; }
.mapbox-inner p { color: var(--ink-soft); font-size: .95rem; }
.ways .wa { font-weight: 500; }

@media (max-width: 860px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-side { position: static; grid-template-columns: minmax(0, 1fr); }
  .service-side .strip { display: none; }
}
