/* SecuPart local service sites: original, self-contained theme system. */
@layer reset, base, components, themes, responsive, print;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, select, textarea { font: inherit; }
  button, select { cursor: pointer; }
  ul, ol { padding-left: 1.35rem; }
  [hidden] { display: none !important; }
}

@layer base {
  :root {
    --ink: #132b36; --muted: #51646a; --paper: #f3f4ef; --surface: #fff;
    --accent: #f4a340; --accent-ink: #132b36; --line: #cbd3cf;
    --soft: #e7ece7; --deep: #132b36; --inverse: #fff;
    --radius: 14px; --radius-sm: 8px; --content: 1180px;
    --shadow: 0 16px 48px rgb(19 43 54 / .08);
    --body-font: Arial, Helvetica, sans-serif;
    --display-font: Arial, Helvetica, sans-serif;
  }
  body {
    min-width: 280px; color: var(--ink); background: var(--paper);
    font: 400 1rem/1.65 var(--body-font); text-rendering: optimizeLegibility;
  }
  a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-thickness: 2px; }
  button { color: inherit; }
  :focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
  .site-footer :focus-visible, .topbar :focus-visible { outline-color: var(--accent); }
  ::selection { color: var(--accent-ink); background: var(--accent); }
  h1, h2, h3, h4 { font-family: var(--display-font); line-height: 1.12; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
  h1 { font-size: clamp(2.35rem, 4.3vw, 4.55rem); letter-spacing: -.052em; max-width: 18ch; }
  h2 { font-size: clamp(1.75rem, 2.65vw, 2.7rem); letter-spacing: -.035em; max-width: 28ch; }
  h3 { font-size: 1.28rem; letter-spacing: -.017em; }
  h4 { font-size: 1.1rem; }
  p { max-width: 72ch; overflow-wrap: anywhere; }
  p + p { margin-top: 1rem; }
  code { overflow-wrap: anywhere; }
  .wrap { width: min(var(--content), calc(100% - 64px)); margin-inline: auto; }
  .skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 12px 18px; color: var(--accent-ink); background: var(--accent); border-radius: var(--radius-sm); transform: translateY(-160%); }
  .skip-link:focus { transform: translateY(0); }
  .eyebrow { display: block; color: var(--muted); font-size: .73rem; font-weight: 700; letter-spacing: .135em; line-height: 1.5; text-transform: uppercase; margin-bottom: 1.05rem; }
  .lead { color: var(--muted); font-size: clamp(1.05rem, 1.25vw, 1.17rem); line-height: 1.75; max-width: 55ch; }
  .small { font-size: .85rem; }
}

@layer components {
  .topbar { background: var(--deep); color: var(--inverse); font-size: .76rem; line-height: 1.45; padding-block: 9px; }
  .topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
  .topbar a { color: inherit; }
  .site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
  .header-inner { display: flex; align-items: center; gap: 26px; min-height: 100px; }
  .brand { display: block; text-decoration: none; flex: 0 0 auto; width: 240px; }
  .brand img, .brand svg { width: 100%; height: 54px; object-fit: contain; object-position: left center; }
  .site-nav { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 21px; }
  .site-nav a { text-decoration: none; font-size: .84rem; font-weight: 700; line-height: 1.5; padding-block: 7px; border-bottom: 2px solid transparent; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .header-phone { margin-left: 5px; flex-shrink: 0; font-size: .85rem; text-decoration: none; font-weight: 700; white-space: nowrap; }
  .nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface); padding: 10px 13px; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 700; }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 22px; min-height: 50px; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--accent-ink); background: var(--accent); font-size: .92rem; font-weight: 700; line-height: 1.4; text-decoration: none; text-align: center; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
  .button:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgb(0 0 0 / .1); }
  .button.outline, .outline.button { color: var(--ink); border-color: var(--line); background: transparent; }
  .button.outline:hover { background: var(--surface); }
  .button.small { padding: 10px 15px; min-height: 42px; font-size: .82rem; }
  .button svg, .call-link svg, .header-phone svg, .mobile-call svg { width: 18px; height: 18px; flex: 0 0 18px; }
  a[href^="tel:"] { align-items: center; gap: 8px; }
  a[href^="tel:"]::before {
    content: ""; display: inline-block; width: 17px; height: 17px; flex: 0 0 17px;
    background: currentColor; vertical-align: -3px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3 4 4c-1 1-1 3 0 6 2 5 5 8 10 10 3 1 5 1 6 0l1-3-5-3-2 2c-3-1-5-3-6-6l2-2-3-5Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3 4 4c-1 1-1 3 0 6 2 5 5 8 10 10 3 1 5 1 6 0l1-3-5-3-2 2c-3-1-5-3-6-6l2-2-3-5Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  /* Inline phone artwork takes precedence over the icon fallback. */
  a[href^="tel:"]:has(svg)::before { display: none; }
  .call-link { display: inline-flex; font-weight: 700; line-height: 1.45; }
  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(30px, 4.5vw, 70px); padding-block: 65px 72px; }
  .hero-copy { min-width: 0; }
  .hero-copy h1 + .lead, .hero-copy h1 + p { margin-top: 1.55rem; }
  .hero-visual { min-width: 0; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
  .hero-visual img, .hero-visual svg { width: 100%; height: auto; }
  .hero-visual figcaption { padding: 11px 16px; color: var(--muted); font-size: .75rem; }
  .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
  .trust-lines { display: grid; gap: 6px; color: var(--muted); font-size: .8rem; line-height: 1.55; margin-top: 1.45rem; }
  .trust-lines p, .trust-lines li { margin: 0; }
  .trust-lines ul { margin: 0; }
  .section { padding-block: clamp(46px, 6vw, 80px); border-top: 1px solid var(--line); }
  .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
  .section-heading .eyebrow { margin-bottom: 10px; }
  .section-heading p { color: var(--muted); max-width: 43ch; font-size: .96rem; }
  .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .service-card, .case-card, .article-card { position: relative; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .service-card h3, .case-card h3, .article-card h3 { margin-block: 16px 12px; }
  .service-card p, .case-card p, .article-card p { color: var(--muted); font-size: .94rem; line-height: 1.7; }
  .service-card > a, .case-card > a, .article-card > a, .service-card p + a, .case-card p + a, .article-card p + a { display: inline-block; margin-top: 20px; font-size: .86rem; font-weight: 700; }
  .service-card h3 a, .case-card h3 a, .article-card h3 a { text-decoration: none; }
  .card-icon { display: flex; justify-content: center; align-items: center; width: 46px; height: 46px; color: var(--ink); background: var(--soft); border-radius: 11px; font-size: 1.4rem; }
  .card-icon svg { width: 25px; height: 25px; }
  .badge { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 100px; padding: 4px 11px; font-size: .71rem; font-weight: 700; line-height: 1.5; }
  .split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .8fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
  .prose { min-width: 0; }
  .prose h1 { max-width: 25ch; }
  .prose h2 { margin-block: 2rem 1rem; font-size: clamp(1.65rem, 2.4vw, 2.15rem); }
  .prose h3 { margin-block: 1.5rem .75rem; }
  .prose > :first-child { margin-top: 0; }
  .prose ul, .prose ol { margin-block: 1rem; }
  .prose li { margin-bottom: .45rem; }
  .prose a { font-weight: 700; }
  .prose table { width: 100%; border-collapse: collapse; margin-block: 20px; font-size: .9rem; }
  .prose th, .prose td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
  .sidebar { min-width: 0; display: grid; gap: 20px; }
  .panel { border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); padding: 28px; min-width: 0; }
  .panel h2, .panel h3 { font-size: 1.3rem; margin-bottom: 14px; }
  .panel p { font-size: .92rem; }
  .panel .actions { margin-top: 20px; }
  .panel .button { width: 100%; padding-inline: 16px; }
  .checklist { list-style: none; padding: 0; margin: 18px 0 0; }
  .checklist li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: .92rem; }
  .checklist li::before { content: "✓"; position: absolute; top: 0; left: 0; font-weight: 700; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 30px; counter-reset: step; }
  .step { position: relative; padding: 22px 0 0; border-top: 2px solid var(--ink); min-width: 0; counter-increment: step; }
  .step::before { content: "0" counter(step); display: block; color: var(--muted); font: 700 .72rem/1.5 var(--body-font); letter-spacing: .12em; margin-bottom: 15px; }
  .step h3 { margin-bottom: 12px; }
  .step p { color: var(--muted); font-size: .91rem; }
  .location-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-block: 22px; }
  .location-facts > * { margin: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .79rem; line-height: 1.5; }
  .directory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
  .city-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 0; color: var(--ink); text-decoration: none; transition: border-color .15s ease, background .15s ease; }
  .city-card:hover { border-color: var(--ink); background: var(--soft); }
  .city-card h3 { font-size: 1.04rem; line-height: 1.3; }
  .city-card p, .city-card span, .city-card small { display: block; color: var(--muted); font-size: .75rem; margin-top: 6px; line-height: 1.55; }
  .city-card a { text-decoration: none; font-weight: 700; }
  .city-search { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
  .city-search label { font-size: .86rem; font-weight: 700; }
  .filter-input, input, select, textarea { min-width: 0; max-width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; line-height: 1.5; }
  .filter-input { width: min(390px, 100%); }
  input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
  .search-status { color: var(--muted); font-size: .82rem; margin-top: 11px; min-height: 1.4em; }
  .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; padding-block: 21px; color: var(--muted); font-size: .76rem; }
  .breadcrumbs a { color: var(--ink); }
  .breadcrumbs ol { display: flex; align-items: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 7px 10px; }
  .breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--muted); }
  .region-map, .local-map { width: 100%; min-width: 0; border-radius: var(--radius); overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
  .region-map svg, .local-map svg, .region-map img, .local-map img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }
  .region-map svg text, .local-map svg text { font-family: var(--body-font); }
  .region-map a:focus-visible, .local-map a:focus-visible { outline: none; }
  .region-map a:focus-visible > *, .local-map a:focus-visible > * { stroke: var(--ink); stroke-width: 3px; }
  .source-note { margin-top: 12px; color: var(--muted); font-size: .73rem; line-height: 1.6; }
  .toolbox { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--surface); }
  .toolbox h2, .toolbox h3 { margin-bottom: 14px; }
  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block: 24px; }
  .form-grid label { display: grid; gap: 7px; font-size: .84rem; font-weight: 700; min-width: 0; }
  .form-grid input, .form-grid select, .form-grid textarea { width: 100%; font-size: .92rem; font-weight: 400; }
  .form-grid .full { grid-column: 1 / -1; }
  .form-grid fieldset { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
  .form-grid legend { padding-inline: 6px; font-size: .85rem; font-weight: 700; }
  .form-grid input[type="checkbox"], .form-grid input[type="radio"] { width: 18px; height: 18px; padding: 0; accent-color: var(--ink); }
  .call-prep { min-width: 0; }
  .tool-result { padding: 23px; background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: var(--radius-sm); margin-top: 22px; }
  .tool-result h3 { margin-bottom: 12px; }
  .tool-result p, .tool-result li { font-size: .92rem; }
  .disclaimer { color: var(--muted); font-size: .81rem; line-height: 1.65; margin-top: 20px; }
  .site-footer { margin-top: 40px; padding-block: 54px 27px; background: var(--deep); color: var(--inverse); }
  .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
  .footer-grid h2, .footer-grid h3 { font-size: 1rem; margin-bottom: 16px; }
  .footer-grid p { color: inherit; opacity: .88; font-size: .81rem; line-height: 1.8; max-width: 44ch; }
  .footer-grid ul { padding: 0; list-style: none; margin: 0; }
  .footer-grid li { margin-block: 7px; }
  .footer-grid a { font-size: .82rem; text-decoration: none; }
  .footer-grid a:hover { text-decoration: underline; }
  .site-footer .brand { margin-bottom: 20px; }
  .site-footer .brand img { background: var(--paper); border-radius: var(--radius-sm); padding: 8px; height: 65px; }
  .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border-top: 1px solid rgb(255 255 255 / .2); margin-top: 37px; padding-top: 22px; font-size: .72rem; }
  .footer-bottom p { color: inherit; opacity: .8; }
  .footer-bottom a { text-decoration: none; }
  .footer-bottom div { display: flex; flex-wrap: wrap; gap: 18px; }
  .mobile-call { display: none; }
  .cookie-notice { position: fixed; z-index: 100; left: 20px; right: 20px; bottom: 20px; margin-inline: auto; max-width: 760px; display: flex; align-items: center; gap: 18px; padding: 17px 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 35px rgb(0 0 0 / .14); }
  .cookie-notice p { flex: 1; font-size: .77rem; line-height: 1.6; }
  .cookie-close { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 auto; width: 34px; height: 34px; padding: 0; background: var(--soft); border: 1px solid var(--line); border-radius: 50%; font-size: 1.25rem; line-height: 1; }
}

@layer themes {
  /* Jaenicke: confident navy, generous orange, asymmetric utility. */
  .theme-jaenicke { --radius: 14px; --radius-sm: 7px; }
  .theme-jaenicke .hero-visual { box-shadow: 14px 14px 0 var(--accent); margin-right: 14px; }
  .theme-jaenicke .hero .eyebrow { color: var(--ink); border-left: 4px solid var(--accent); padding-left: 12px; }
  .theme-jaenicke .service-card { border-top: 4px solid var(--ink); }
  .theme-jaenicke .service-card:first-child { border-top-color: var(--accent); }
  .theme-jaenicke .panel { background: var(--ink); color: white; border-color: var(--ink); }
  .theme-jaenicke .panel .disclaimer, .theme-jaenicke .panel .eyebrow { color: #dce4e4; }
  .theme-jaenicke .panel .button.outline { color: white; border-color: #73848c; }
  .theme-jaenicke .panel .button.outline:hover { color: var(--ink); }
  .theme-jaenicke .panel :focus-visible { outline-color: var(--accent); }
  /* Saller: cool blue, editorial typography, open rules and flowing form. */
  .theme-saller { --ink: #113c4a; --muted: #426977; --paper: #eef8f8; --accent: #37b6c3; --accent-ink: #073b46; --soft: #daf0f1; --line: #b9d7d9; --deep: #113c4a; --radius: 2px; --radius-sm: 2px; --display-font: Georgia, 'Times New Roman', serif; --content: 1150px; }
  .theme-saller h1 { font-weight: 400; font-size: clamp(2.6rem, 4.8vw, 5rem); line-height: 1.08; letter-spacing: -.045em; }
  .theme-saller h2, .theme-saller h3 { font-weight: 400; }
  .theme-saller .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; padding-block: 76px 65px; }
  .theme-saller .hero-visual { border-radius: 48% 48% 2px 2px; border: 1px solid var(--line); }
  .theme-saller .hero-copy .eyebrow { padding-top: 18px; border-top: 1px solid var(--ink); display: inline-block; }
  .theme-saller .section-heading { padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
  .theme-saller .service-card, .theme-saller .case-card, .theme-saller .article-card { padding: 25px 22px; background: transparent; border-width: 0 0 1px; }
  .theme-saller .service-card + .service-card, .theme-saller .case-card + .case-card { border-left: 1px solid var(--line); }
  .theme-saller .card-icon { border: 1px solid var(--line); border-radius: 50%; background: transparent; }
  .theme-saller .city-card { background: transparent; }
  .theme-saller .button { border-radius: 2px; }
  /* Tiede: charcoal / electric yellow, crisp technical geometry. */
  .theme-tiede { --ink: #20272c; --muted: #566168; --paper: #f1f2ec; --accent: #e9f366; --accent-ink: #20272c; --soft: #e5e8de; --line: #c4cac1; --deep: #20272c; --radius: 0px; --radius-sm: 0px; --content: 1220px; }
  .theme-tiede h1 { text-transform: uppercase; font-size: clamp(2.3rem, 4.1vw, 4.1rem); font-weight: 800; letter-spacing: -.045em; }
  .theme-tiede h2 { font-weight: 800; }
  .theme-tiede .topbar { border-bottom: 4px solid var(--accent); }
  .theme-tiede .hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: 48px; }
  .theme-tiede .hero-visual { border: 1px solid var(--ink); }
  .theme-tiede .eyebrow { font-family: 'Courier New', monospace; color: var(--ink); font-weight: 700; }
  .theme-tiede .hero .eyebrow::before { content: "+ "; color: var(--ink); }
  .theme-tiede .trust-lines { border-top: 1px solid var(--line); padding-top: 16px; }
  .theme-tiede .service-card, .theme-tiede .case-card, .theme-tiede .article-card { border-color: var(--ink); box-shadow: 4px 4px 0 var(--soft); }
  .theme-tiede .card-icon { border: 1px solid var(--ink); background: var(--accent); border-radius: 0; }
  .theme-tiede .badge { border-radius: 0; background: var(--accent); border-color: var(--ink); }
  .theme-tiede .steps { gap: 0; border: 1px solid var(--ink); }
  .theme-tiede .step { padding: 24px; border: 0; }
  .theme-tiede .step + .step { border-left: 1px solid var(--ink); }
  .theme-tiede .step::before { color: var(--ink); font-family: 'Courier New', monospace; }
  .theme-tiede .tool-result { border-left: 6px solid var(--ink); background: #eef0c9; }
  .theme-tiede .button:hover { box-shadow: 4px 4px 0 var(--ink); }
  /* Winzer: restrained wine, warm light, calm rounded spaces. */
  .theme-winzer { --ink: #492e39; --muted: #775966; --paper: #faf5ef; --accent: #d58974; --accent-ink: #39222c; --soft: #f0e4dc; --line: #dec8bc; --deep: #492e39; --radius: 28px; --radius-sm: 100px; --display-font: Georgia, 'Times New Roman', serif; --content: 1120px; }
  .theme-winzer h1 { font-weight: 400; letter-spacing: -.045em; font-size: clamp(2.45rem, 4.8vw, 4.6rem); }
  .theme-winzer h2, .theme-winzer h3 { font-weight: 400; }
  .theme-winzer .site-header { border-bottom: 0; }
  .theme-winzer .header-inner { min-height: 112px; }
  .theme-winzer .hero { gap: 58px; padding-top: 48px; }
  .theme-winzer .hero-visual { border-radius: 220px 220px 28px 28px; background: #f0e1d5; }
  .theme-winzer .hero-copy { padding-block: 24px; }
  .theme-winzer .service-card, .theme-winzer .case-card, .theme-winzer .article-card { border: 0; padding: 30px; box-shadow: 0 6px 32px rgb(73 46 57 / .035); }
  .theme-winzer .card-icon { border-radius: 50%; background: #f4e4dd; }
  .theme-winzer .step { border-top-color: var(--line); }
  .theme-winzer .step::before { color: var(--ink); }
  .theme-winzer .city-card { border-radius: 18px; }
  .theme-winzer .panel { border: 0; }
  .theme-winzer .filter-input, .theme-winzer input, .theme-winzer select, .theme-winzer textarea { border-radius: 12px; }
  .theme-winzer .section { border-color: #e9dbd1; }
  /* Dieterich: structured petrol service hub, practical orange accents. */
  .theme-dieterich { --ink: #174743; --muted: #4a6861; --paper: #f4f6ed; --accent: #f5b768; --accent-ink: #173c37; --soft: #e1e9dc; --line: #c5d3c2; --deep: #174743; --radius: 12px; --radius-sm: 6px; --content: 1240px; }
  .theme-dieterich .hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: 44px; }
  .theme-dieterich h1 { font-size: clamp(2.5rem, 4.4vw, 4.55rem); font-weight: 800; }
  .theme-dieterich .hero-visual { background: var(--deep); }
  .theme-dieterich .hero .eyebrow { display: inline-block; padding: 7px 10px; background: var(--soft); border-radius: 5px; color: var(--ink); }
  .theme-dieterich .grid3 { gap: 15px; }
  .theme-dieterich .service-card { display: flex; flex-direction: column; border-color: transparent; padding: 25px; box-shadow: 0 4px 20px rgb(23 71 67 / .05); }
  .theme-dieterich .service-card > a:last-child { margin-top: auto; padding-top: 22px; }
  .theme-dieterich .card-icon { background: var(--accent); }
  .theme-dieterich .section-heading h2 { max-width: 24ch; }
  .theme-dieterich .city-card { border-left: 4px solid var(--accent); }
  .theme-dieterich .panel { background: var(--surface); border-top: 5px solid var(--accent); }
  /* Haider: sand / terracotta, spacious homely material shapes. */
  .theme-haider { --ink: #4c3327; --muted: #7b6254; --paper: #faf4e9; --accent: #ad542f; --accent-ink: #fff; --soft: #eee0cc; --line: #d9c7ad; --deep: #4c3327; --radius: 18px; --radius-sm: 4px; --display-font: Georgia, 'Times New Roman', serif; --content: 1140px; }
  .theme-haider h1 { font-size: clamp(2.45rem, 4.6vw, 4.6rem); letter-spacing: -.045em; font-weight: 400; }
  .theme-haider h2, .theme-haider h3 { font-weight: 400; }
  .theme-haider .topbar { background: var(--soft); color: var(--ink); border-bottom: 1px solid var(--line); }
  .theme-haider .site-header { border-bottom-style: dashed; }
  .theme-haider .hero { gap: 52px; padding-top: 56px; }
  .theme-haider .hero-visual { border-radius: 12px 100px 12px 12px; border: 1px solid var(--line); }
  .theme-haider .hero .eyebrow { color: var(--ink); }
  .theme-haider .hero .eyebrow::before { content: ""; display: inline-block; width: 20px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
  .theme-haider .service-card, .theme-haider .case-card, .theme-haider .article-card { background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 27px; }
  .theme-haider .card-icon { background: var(--soft); color: var(--ink); border-radius: 50% 50% 4px 4px; }
  .theme-haider .panel { border-radius: 70px 70px 8px 8px; padding: 37px 29px 29px; background: var(--soft); }
  .theme-haider .step { border-top-style: dashed; border-top-color: var(--accent); }
  .theme-haider .city-card { background: #fffaf2; border-radius: 4px; }
  .theme-haider .site-footer { background: #4c3327; }
}

@layer responsive {
  @media (min-width: 901px) {
    .site-nav { display: flex !important; }
  }
  @media (max-width: 1100px) {
    .header-inner { gap: 17px; }
    .brand { width: 210px; }
    .site-nav { gap: 5px 14px; }
    .site-nav a { font-size: .78rem; }
    .header-phone { font-size: .77rem; }
    .hero, .theme-saller .hero, .theme-tiede .hero, .theme-winzer .hero, .theme-dieterich .hero, .theme-haider .hero { gap: 36px; }
    .service-card, .case-card, .article-card { padding: 23px; }
    .directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (max-width: 900px) {
    .wrap { width: min(var(--content), calc(100% - 40px)); }
    .header-inner, .theme-winzer .header-inner { min-height: 84px; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 12px; }
    .brand { width: 215px; margin-right: auto; }
    .nav-toggle { display: inline-flex; align-items: center; gap: 7px; }
    .header-phone { display: none; }
    .site-nav { display: none; width: 100%; flex: 0 0 100%; padding-block: 13px 5px; border-top: 1px solid var(--line); justify-content: flex-start; }
    .site-nav.open, .site-nav.is-open, .site-nav[data-open="true"], .site-nav:not([hidden]):has(~ .nav-toggle[aria-expanded="true"]), .header-inner:has(.nav-toggle[aria-expanded="true"]) .site-nav:not([hidden]) { display: flex; }
    .site-nav a { font-size: .9rem; padding: 8px 9px; }
    .hero, .theme-saller .hero, .theme-tiede .hero, .theme-winzer .hero, .theme-dieterich .hero, .theme-haider .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 27px; padding-block: 44px 55px; }
    h1, .theme-saller h1, .theme-tiede h1, .theme-winzer h1, .theme-dieterich h1, .theme-haider h1 { font-size: clamp(2.1rem, 4.8vw, 3.3rem); }
    .lead { font-size: 1rem; }
    .hero-copy h1 + .lead, .hero-copy h1 + p { margin-top: 1.1rem; }
    .hero .button { padding: 12px 16px; font-size: .82rem; }
    .hero .actions { gap: 9px; margin-top: 1.3rem; }
    .hero .trust-lines { font-size: .73rem; }
    .grid3 { gap: 14px; }
    .service-card, .case-card, .article-card, .theme-winzer .service-card, .theme-haider .service-card, .theme-dieterich .service-card { padding: 20px; }
    .section-heading { align-items: flex-start; }
    .section-heading p { max-width: 33ch; font-size: .85rem; }
    .split { grid-template-columns: minmax(0, 1fr) minmax(220px, .68fr); gap: 25px; }
    .panel { padding: 23px; }
    .footer-grid { gap: 28px; }
  }
  @media (max-width: 680px) {
    body { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
    .wrap { width: calc(100% - 36px); }
    .topbar { font-size: .68rem; padding-block: 8px; }
    .topbar .wrap { gap: 4px; }
    .topbar .wrap > *:nth-child(2) { display: none; }
    .brand { width: min(210px, calc(100% - 80px)); }
    .brand img, .brand svg { height: 50px; }
    .nav-toggle { padding: 9px 11px; }
    .hero, .theme-saller .hero, .theme-tiede .hero, .theme-winzer .hero, .theme-dieterich .hero, .theme-haider .hero { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 36px 43px; gap: 30px; }
    h1, .theme-saller h1, .theme-tiede h1, .theme-winzer h1, .theme-dieterich h1, .theme-haider h1 { font-size: clamp(2.1rem, 8.9vw, 3.35rem); max-width: 20ch; }
    h2 { font-size: clamp(1.7rem, 6vw, 2.25rem); }
    .hero-visual { width: min(100%, 480px); margin-inline: auto; }
    .theme-jaenicke .hero-visual { width: calc(100% - 10px); margin-right: 10px; box-shadow: 10px 10px 0 var(--accent); }
    .theme-saller .hero-visual { border-radius: 42% 42% 2px 2px; }
    .theme-winzer .hero-copy { padding: 0; }
    .theme-winzer .hero-visual { border-radius: 180px 180px 22px 22px; }
    .theme-haider .hero-visual { border-radius: 10px 75px 10px 10px; }
    .eyebrow { font-size: .67rem; margin-bottom: 14px; }
    .theme-dieterich .hero .eyebrow { font-size: .61rem; }
    .hero .actions { margin-top: 23px; }
    .hero .button { font-size: .87rem; padding: 13px 18px; }
    .trust-lines, .hero .trust-lines { font-size: .77rem; }
    .section { padding-block: 42px; }
    .section-heading { display: block; margin-bottom: 24px; }
    .section-heading p { max-width: none; margin-top: 15px; font-size: .94rem; }
    .grid3 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .service-card, .case-card, .article-card, .theme-winzer .service-card, .theme-winzer .case-card, .theme-winzer .article-card, .theme-haider .service-card, .theme-haider .case-card, .theme-haider .article-card, .theme-dieterich .service-card { padding: 25px; }
    .theme-saller .service-card + .service-card, .theme-saller .case-card + .case-card { border-left: 0; }
    .split { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .sidebar { margin-top: 5px; }
    .panel { padding: 26px; }
    .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .step { padding-top: 18px; }
    .step::before { margin-bottom: 9px; }
    .theme-tiede .step { padding: 23px; }
    .theme-tiede .step + .step { border-left: 0; border-top: 1px solid var(--ink); }
    .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .city-card { padding: 17px 14px; }
    .city-card h3 { font-size: .97rem; }
    .city-search { display: grid; gap: 9px; }
    .filter-input { width: 100%; }
    .breadcrumbs { padding-block: 17px; font-size: .7rem; }
    .toolbox { padding: 23px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
    .tool-result { padding: 20px; }
    .site-footer { margin-top: 15px; padding-block: 40px 28px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 28px; padding-top: 22px; }
    .mobile-call { display: flex; position: fixed; z-index: 80; bottom: 0; left: 0; right: 0; justify-content: center; align-items: center; gap: 9px; min-height: 61px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--accent); color: var(--accent-ink); border-top: 1px solid rgb(0 0 0 / .13); font-size: .95rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
    .cookie-notice { left: 10px; right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); padding: 14px; gap: 12px; border-radius: 12px; }
    .cookie-notice p { font-size: .72rem; }
    .cookie-close { width: 30px; height: 30px; }
  }
  @media (max-width: 360px) {
    .wrap { width: calc(100% - 30px); }
    .header-inner { min-height: 78px; }
    .brand { width: calc(100% - 75px); }
    .nav-toggle { padding-inline: 9px; font-size: .75rem; }
    .hero .actions { align-items: stretch; }
    .hero .actions .button { width: 100%; }
    .directory { grid-template-columns: minmax(0, 1fr); }
    .service-card, .case-card, .article-card, .theme-winzer .service-card, .theme-haider .service-card, .theme-dieterich .service-card { padding: 22px; }
    .footer-grid { gap: 25px 15px; }
    .footer-grid h3 { font-size: .92rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .button:hover { transform: none; }
  }
  @media (forced-colors: active) {
    .button, .card-icon, .panel, .city-card, .cookie-notice { border: 1px solid ButtonText; }
    a[href^="tel:"]::before { background: LinkText; }
    .hero-visual { border: 1px solid CanvasText; }
  }
}

@layer print {
  @media print {
    :root { --ink: #000; --muted: #333; --paper: #fff; --surface: #fff; --line: #bbb; --soft: #fff; }
    body { padding: 0 !important; font-size: 10pt; background: #fff !important; color: #000 !important; }
    .wrap { width: 100%; max-width: none; }
    .topbar, .site-nav, .nav-toggle, .header-phone, .mobile-call, .cookie-notice, .city-search, .search-status, .hero-visual, .toolbox button, .actions, .site-footer { display: none !important; }
    .site-header { border-bottom: 1px solid #bbb; }
    .header-inner { min-height: 70px; padding: 0; }
    .hero, .theme-saller .hero, .theme-tiede .hero, .theme-winzer .hero, .theme-dieterich .hero, .theme-haider .hero { display: block; padding-block: 22px; }
    h1, .theme-saller h1, .theme-tiede h1, .theme-winzer h1, .theme-dieterich h1, .theme-haider h1 { font-size: 26pt; max-width: none; color: #000; }
    h2 { font-size: 18pt; color: #000; }
    .lead, .eyebrow, .trust-lines, .disclaimer, .source-note { color: #333 !important; }
    .section { padding-block: 22px; }
    .split { display: block; }
    .grid3 { gap: 12px; }
    .service-card, .case-card, .article-card, .panel { background: #fff !important; box-shadow: none !important; color: #000 !important; break-inside: avoid; padding: 14px !important; border: 1px solid #bbb !important; }
    .service-card p, .case-card p, .article-card p { color: #333 !important; }
    .sidebar { margin-top: 20px; }
    .directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .city-card { padding: 10px; break-inside: avoid; background: #fff !important; }
    .breadcrumbs { padding-block: 12px; }
    .region-map, .local-map { max-width: 430px; margin-inline: auto; break-inside: avoid; background: #fff !important; }
    .steps { gap: 16px; }
    .step { break-inside: avoid; }
    .brand { width: 225px; }
    a { text-decoration: underline; }
    a[href^="tel:"]::after { content: " (" attr(href) ")"; font-size: 8pt; }
  }
}
