/* STUBNERpersonalservice – Stylesheet
   Farben aus dem Logo: Blau #1D3C85, Grau #656263 */
:root {
  --blue: #1D3C85;
  --blue-dark: #142B61;
  --navy: #14203A;
  --ink: #1B2A4A;
  --text: #3A4457;
  --muted: #4A5568;
  --grey: #656263;
  --line: #E1E5EB;
  --soft: #F3F5F9;
  --tint: #E8EEF8;
  --white: #fff;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted, .small { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 46em; }
.eyebrow { display: block; font-size: .85rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); margin-bottom: .5rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; }
:focus-visible { outline: 3px solid #F2A900; outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--blue); cursor: pointer; font: inherit; font-weight: 700; white-space: nowrap; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--blue); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.logo img { height: 52px; width: auto; }
.main-nav { margin-left: auto; display: flex; gap: 6px 14px; flex-wrap: nowrap; white-space: nowrap; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 10px 0; }
.main-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.header-cta { display: flex; gap: 8px; }
.nav-btn { display: none; }
@media (max-width: 1439px) {
  .header-row { flex-wrap: wrap; }
  .header-cta { display: none; }
  .nav-btn { display: flex; flex-direction: column; gap: 5px; padding: 14px 10px; margin-left: auto; background: none; border: 0; cursor: pointer; }
  .nav-btn span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; }
  .main-nav { flex-basis: 100%; flex-direction: column; gap: 0; padding-bottom: 12px; }
  .js .main-nav { display: none; }
  .js .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 14px; padding-bottom: 4px; }
.crumbs a { color: var(--muted); }

/* Sections */
section { padding: 64px 0; }
.bg-soft { background: var(--soft); }
.bg-dark { background: var(--ink); color: #E6E9EF; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .eyebrow { color: #A9BCE8; }
.page-hero { padding: 40px 0 48px; background: var(--soft); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.card h3 { margin-bottom: .4em; }
a.card { text-decoration: none; color: var(--ink); display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--blue); transform: translateY(-2px); }
a.card p { color: var(--text); margin: 0; }
.card-dark { background: #24365C; border-color: #24365C; color: #E6E9EF; }
.card-dark h3 { color: #fff; }
.card-dark a { color: #fff; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: .55em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/14px no-repeat; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.prose .steps { padding-left: 0; }
.narrow .steps { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .narrow .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 10px; }
.steps strong { display: block; color: var(--ink); }
.steps li { overflow-wrap: break-word; hyphens: auto; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose p { text-wrap: pretty; }

/* Hero */
.hero { background: var(--soft); padding: 56px 0 56px; }
.hero-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-img { border-radius: 20px; aspect-ratio: 4/3; object-fit: cover; object-position: 30% 40%; width: 100%; }
.quote-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 14px; }
.quote-card picture { flex: 0 0 56px; width: 56px; height: 56px; }
.quote-card img { width: 56px; height: 56px; min-width: 56px; max-width: none; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.quote-card p { margin: 0; font-size: .95rem; color: var(--text); }
.search-form { display: flex; flex-wrap: wrap; gap: 8px; background: #fff; padding: 8px; border-radius: 14px; border: 1px solid #D5DAE1; margin-top: 8px; }
.search-form label { flex: 1 1 160px; display: flex; flex-direction: column; padding: 4px 12px; }
.search-form label + label { border-left: 1px solid var(--line); }
.search-form span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.search-form input, .search-form select { border: 0; font: inherit; color: var(--ink); padding: 4px 0; background: transparent; min-height: 30px; }
.search-form input:focus, .search-form select:focus { outline: none; }
.search-form label:focus-within { box-shadow: inset 0 -2px 0 var(--blue); }
.search-form .btn { flex: 0 0 auto; min-height: 56px; }
@media (max-width: 600px) { .search-form label + label { border-left: 0; border-top: 1px solid var(--line); } .search-form .btn { width: 100%; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .95rem; margin-top: 14px; color: var(--text); }

/* Zwei Wege */
.two-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding-top: 48px; padding-bottom: 16px; }
.way { display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: 20px; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); min-height: 220px; }
.way-dark { background: var(--ink); color: #D9DEE7; }
.way-dark .eyebrow { color: #A9BCE8; }
.way-h { font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
.way-dark .way-h, .way-dark .way-go { color: #fff; }
.way-go { margin-top: auto; font-weight: 700; }
.way:hover .way-go { text-decoration: underline; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--soft); border-radius: var(--radius); padding: 22px; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.stat span { color: var(--text); font-size: .95rem; }

/* Jobs */
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.job-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: #fff; position: relative; transition: border-color .15s; }
.job-card:hover { border-color: var(--blue); }
.job-card h3 { font-size: 1.08rem; margin: .4em 0 .3em; }
.job-card h3 a { color: var(--ink); text-decoration: none; }
.job-card h3 a::after { content: ""; position: absolute; inset: 0; }
.job-meta { margin: 0; color: var(--text); font-size: .93rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--blue); }
.job-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.job-filter input, .job-filter select { font: inherit; padding: 10px 14px; border: 1px solid #C9D0DA; border-radius: 10px; min-height: 48px; background: #fff; color: var(--ink); }
.job-filter input { flex: 1 1 220px; }
.job-filter #f-ort { flex: 1 1 200px; }
.job-filter select { flex: 1 1 170px; }
.job-count { margin: 0 0 14px; color: var(--muted); }
.job-detail { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 900px) { .job-detail { grid-template-columns: 1fr; } }
.job-facts { position: sticky; top: 96px; }
.job-facts dl { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.job-facts dt { color: var(--muted); }
.job-facts dd { margin: 0; font-weight: 600; }

/* Bewertungen */
.reviews figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.stars { color: var(--blue); letter-spacing: 2px; }
.reviews blockquote { margin: 0; }
.reviews figcaption { color: var(--muted); font-size: .9rem; }

/* Standort */
.standort-card .person { display: flex; gap: 14px; align-items: center; margin: 14px 0; padding: 14px; background: var(--soft); border-radius: 12px; }
.standort-card .person p { margin: 0; }
.avatar { width: 64px; height: 64px; min-width: 64px; max-width: none; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; object-position: 50% 30%; flex: 0 0 64px; }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.2rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 1.5rem; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq-a { padding: 0 20px 18px; color: var(--text); }
.faq-a p:last-child { margin: 0; }

/* Formulare */
.form { display: grid; gap: 16px; max-width: 720px; }
.form .row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #B9C2CE; border-radius: 10px; background: #fff; color: var(--ink); min-height: 48px; }
.form textarea { min-height: 140px; resize: vertical; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.form .check input { min-height: 0; width: 20px; height: 20px; margin-top: 3px; flex: 0 0 20px; }
.form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 0; display: grid; gap: 14px; }
.form legend { font-weight: 700; padding: 0 6px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; background: var(--tint); }
.notice-error { background: #FCEBEB; color: #8A1F1F; }

/* Footer */
.site-footer { background: var(--navy); color: #C9D0DC; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #DCE3EE; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding-top: 48px; padding-bottom: 32px; }
.footer-h { color: #fff; font-weight: 700; margin-bottom: .4em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #2B3A5C; padding-top: 18px; padding-bottom: 90px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bottom p { margin: 0; }
@media (min-width: 1181px) { .footer-bottom { padding-bottom: 24px; } }

/* Mobile Leiste */
.mobile-cta { display: none; }
@media (max-width: 1439px) {
  .mobile-cta { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); z-index: 60; }
}
@media (max-width: 600px) { section { padding: 44px 0; } .way { padding: 24px; } body { font-size: 16px; } }
@media print { .site-header, .mobile-cta, .site-footer nav { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Talent360-Bewerbungsformular: am Bildschirm statt am Seitenende verankern */
.tts-application-container { position: fixed !important; z-index: 70 !important; }
@media (max-width: 1439px) {
  /* geschlossen: Symbol über der Handy-Leiste mit Bewerben/Anrufen */
  .tts-application-container { bottom: calc(80px + env(safe-area-inset-bottom)) !important; right: 12px !important; }
}
@media (max-width: 900px) {
  /* geöffnet: Vollbild über Kopf- und Fußleiste */
  .tts-application-container .tts-application-apply.tts-open {
    position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: auto !important; height: auto !important; box-sizing: border-box !important;
    padding: 64px 20px calc(24px + env(safe-area-inset-bottom)) !important;
    border-radius: 0 !important; box-shadow: none !important; overflow-y: auto !important;
    justify-content: flex-start !important; z-index: 10000 !important;
  }
  .tts-application-container .tts-application-cancel.tts-open {
    position: fixed !important; top: 14px !important; right: 14px !important; bottom: auto !important; left: auto !important;
    width: 40px !important; height: 40px !important; border-radius: 50% !important; z-index: 10001 !important;
  }
  .tts-application-container .tts-application-cancel.tts-open svg { width: 40px !important; height: 40px !important; }
  .tts-application-container .tts-application-person.tts-open { display: none !important; }
  .tts-application-container .tts-application-apply .tts-application-apply-title { font-size: 1.35rem !important; font-weight: 800 !important; }
  .tts-application-container .tts-application-apply .tts-application-apply-text { font-size: 1rem !important; line-height: 1.5 !important; }
  .tts-application-container .tts-application-apply .tts-application-apply-form input[type=text] { height: 3rem !important; font-size: 16px !important; }
  .tts-application-container .tts-application-apply .tts-application-apply-form .tts-privacy-policy { font-size: .85rem !important; line-height: 1.5 !important; }
  .tts-application-container .tts-application-apply .tts-application-apply-form button { height: 3.25rem !important; font-size: 1.05rem !important; font-weight: 700 !important; }
  .tts-application-container .tts-application-apply .tts-application-apply-error-text { width: auto !important; max-width: 80%; height: auto !important; font-size: 1rem !important; }
  .tts-application-container .tts-application-thank-you.tts-open {
    position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: auto !important; height: auto !important; border-radius: 0 !important; z-index: 10000 !important; overflow-y: auto !important;
  }
  body.tts-gesperrt { overflow: hidden; }
}

/* Merkliste */
.merk-btn { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.merk-btn svg { fill: none; stroke: currentColor; stroke-width: 2; }
.merk-btn:hover, .merk-btn:focus-visible { color: var(--blue); background: var(--soft); }
.merk-btn[aria-pressed="true"] { color: #C8102E; }
.merk-btn[aria-pressed="true"] svg { fill: currentColor; }
.job-card .tag { margin-right: 44px; }
.merk-btn-gross { position: static; width: auto; height: auto; min-height: 48px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 10px; color: var(--ink); font: inherit; font-weight: 700; gap: 8px; }
.merk-btn-gross[aria-pressed="true"] { border-color: #C8102E; color: #C8102E; }
.merk-btn[hidden], .nav-merk[hidden] { display: none; }
.merk-count { display: inline-block; min-width: 1.4em; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .8em; text-align: center; }
.merk-toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; max-width: calc(100vw - 32px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; }
.merk-toast.show { opacity: 1; transform: translate(-50%, 0); }
.merk-tabelle { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.merk-tabelle table { border-collapse: separate; border-spacing: 0; width: 100%; }
.merk-tabelle th, .merk-tabelle td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 200px; background: #fff; }
.merk-tabelle thead th { font-size: 1rem; }
.merk-tabelle tbody th, .merk-tabelle thead th:first-child { position: sticky; left: 0; z-index: 1; min-width: 120px; width: 120px; background: var(--soft); font-size: .9rem; color: var(--muted); }
.merk-tabelle tr:last-child > * { border-bottom: 0; }
.merk-aktionen .btn { width: 100%; margin-bottom: 8px; }
.merk-weg { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 6px 0; }
@media (max-width: 600px) {
  .merk-tabelle th, .merk-tabelle td { min-width: calc((100vw - 32px - 96px) / 2); padding: 10px; font-size: .92rem; }
  .merk-tabelle tbody th, .merk-tabelle thead th:first-child { min-width: 96px; width: 96px; }
}

/* Stellenkarte */
.ansicht-wahl { display: inline-flex; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; margin: 0 0 14px; }
.ansicht-wahl button { font: inherit; font-weight: 700; padding: 8px 18px; min-height: 44px; border: 0; background: #fff; color: var(--ink); cursor: pointer; }
.ansicht-wahl button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.jobkarte[hidden], .job-list[hidden] { display: none; }
.karte-rahmen { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #EEF2F7; }
.karte-rahmen svg { display: block; width: 100%; height: auto; max-height: 75vh; cursor: grab; user-select: none; }
.karte-rahmen svg:active { cursor: grabbing; }
.k-kreis { fill: #fff; stroke: #B8C2D1; stroke-width: 1; }
.k-kreis:hover { fill: #F6F8FB; }
.k-stadt circle { fill: #7A8699; }
.k-stadt text { font: 600 12px/1 var(--font); fill: #5B6474; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.k-stufe2 { display: none; }
svg.nah .k-stufe2 { display: inline; }
.k-job { cursor: pointer; }
.k-job circle { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.k-job text { font: 700 11px/1 var(--font); fill: #fff; text-anchor: middle; pointer-events: none; }
.k-job:hover circle, .k-job:focus circle { fill: var(--blue-dark); }
.k-job:focus { outline: none; }
.k-job:focus-visible circle { stroke: #F5B700; stroke-width: 3; }
.karte-knoepfe { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.karte-knoepfe button { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 700 1.2rem/1 var(--font); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.karte-popup { position: absolute; left: 10px; bottom: 10px; max-width: min(360px, calc(100% - 70px)); max-height: 70%; overflow: auto; background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.karte-popup ul { margin: 8px 0 12px; padding-left: 18px; }
.karte-popup li { margin: 4px 0; }
.karte-zu { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); width: 36px; height: 36px; }
.karte-info { margin-top: 8px; }
.route-dialog { max-width: 520px; width: calc(100vw - 32px); border: 0; border-radius: 14px; padding: 22px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.route-dialog::backdrop { background: rgba(20,28,45,.55); }
.route-dialog h2 { font-size: 1.3rem; }
.route-wahl { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.route-wahl .btn { flex: 1 1 180px; }

/* Brutto-Netto-Rechner */
.gr-raster { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .gr-raster { grid-template-columns: minmax(0, 1fr); } }
.gr-raster > *, .gr-zeile > *, .gr-form fieldset { min-width: 0; }
.gr-form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.gr-form legend { font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; color: var(--ink); }
.gr-form label { display: block; font-size: .92rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.gr-form select, .gr-form input[type=number] { display: block; width: 100%; max-width: 100%; min-width: 0; margin-top: 6px; font: inherit; color: var(--ink); padding: 10px 12px; min-height: 46px; border: 1px solid #C9D0DA; border-radius: 10px; background: #fff; box-sizing: border-box; }
.gr-zeile { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .gr-zeile { grid-template-columns: minmax(0, 1fr); } }
.gr-zeile[hidden], .gr-form [data-kv][hidden] { display: none; }
.gr-feld { position: relative; display: block; }
.gr-feld input { padding-right: 52px !important; }
.gr-feld span { position: absolute; right: 12px; top: 50%; transform: translateY(-20%); color: var(--muted); font-weight: 600; }
.gr-wahl { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.gr-wahl label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #C9D0DA; border-radius: 10px; padding: 10px 14px; margin: 0; color: var(--ink); cursor: pointer; }
.gr-wahl label:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.gr-ergebnis { position: sticky; top: 96px; }
@media (max-width: 900px) { .gr-ergebnis { position: static; } }
.gr-netto { font-size: 2.2rem; font-weight: 800; color: var(--blue); margin: 0 0 12px; }
.gr-netto small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.gr-tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 14px; }
.gr-tabelle th, .gr-tabelle td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: right; }
.gr-tabelle th[scope=row] { text-align: left; font-weight: 500; color: var(--text); }
.gr-tabelle thead th { font-size: .85rem; color: var(--muted); }
.gr-tabelle .gr-brutto th, .gr-tabelle .gr-brutto td, .gr-tabelle .gr-summe th, .gr-tabelle .gr-summe td { font-weight: 800; color: var(--ink); }
.gr-tabelle .gr-summe th, .gr-tabelle .gr-summe td { border-top: 2px solid var(--ink); border-bottom: 0; }
.gr-hinweis { font-size: .9rem; color: var(--muted); }
.gr-wichtig { font-size: .9rem; }
.gr-link { display: inline-block; margin-top: 6px; font-weight: 600; }

/* Handy-Leiste: Merkliste-Knopf nur sichtbar, wenn Stellen gemerkt sind */
.mobile-cta .nav-merk[hidden] { display: none; }
.mobile-cta .btn { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.merk-count { margin-left: 4px; }
/* Kopfzeile: breiter als der Inhalt, damit alle Menüpunkte Platz haben; Merkliste am PC als Herz mit Zahl */
.site-header .header-row { max-width: 1440px; }
.logo { flex-shrink: 0; }
@media (min-width: 1440px) {
  .main-nav .nav-merk .merk-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .main-nav .nav-merk::before { content: "\2665"; color: var(--red, #c8102e); margin-right: 2px; }
}
.gr-info { display: block; font-weight: 400; font-size: .85rem; line-height: 1.4; margin-top: 4px; }
.gr-i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 6px; padding: 0; border: 1.5px solid currentColor; border-radius: 50%; background: none; color: var(--blue); font: italic 700 12px/1 Georgia, serif; cursor: pointer; vertical-align: 1px; }
.gr-i[aria-expanded="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.gr-info[hidden] { display: none; }
/* Stellenkarte mit OpenStreetMap-Hintergrund */
.karte-osm { background: #E9EEF2; }
.karte-flaeche { width: 100%; height: min(70vh, 640px); min-height: 380px; }
.karte-osm .maplibregl-ctrl-group button { width: 36px; height: 36px; }
.karte-osm .karte-popup { z-index: 3; }

/* Formulare für Mitarbeiter */
.dl-liste { display: grid; gap: 16px; }
.dl-eintrag { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dl-eintrag p { margin: 0; color: var(--text); }
.dl-titel { font-size: 1.15rem; margin: 0 0 .3em; }
.dl-eintrag .btn .small { color: inherit; opacity: .8; font-weight: 400; margin-left: 6px; }

/* Merkliste-Leiste am PC (am Handy übernimmt die untere Schnellzugriff-Leiste) */
.merk-leiste { display: none; }
@media (min-width: 1440px) {
  .merk-leiste:not([hidden]) { display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 24px; bottom: 24px; z-index: 40;
    padding: 14px 22px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(15, 23, 42, .25); }
  .merk-leiste:hover { filter: brightness(1.1); }
  .merk-leiste .merk-herz { color: #ff8a8a; }
  .merk-leiste .merk-count { background: #fff; color: var(--blue); border-radius: 999px; min-width: 24px; padding: 1px 8px; text-align: center; }
}
