/* san-tax.de – Aufbau wie die bisherige Seite: großes Foto mit Logo und Menü, blaue Städteleiste, weiße Inhaltsbereiche mit Versal-Überschriften, hellgrauer Fuß. */
@font-face { font-family: "Rubik"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/rubik-400.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/rubik-500.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/rubik-700.woff2") format("woff2"); }

:root {
  --navy: #24328B;       /* Logo-Blau, auch Textfarbe wie auf der alten Seite */
  --navy-deep: #1B2670;
  --orange: #FF752C;     /* Logo-Orange */
  --ink: #24328B;
  --grey: #666666;
  --line: #DADDEB;
  --paper: #FFFFFF;
  --tint: #F2F3F8;
  --foot: #EEEEEE;
  --font: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --t-body: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
  --t-h3: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  --t-h2: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem);
  --t-h1: clamp(1.8rem, 1.35rem + 1.9vw, 2.9rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--t-body); line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; color: var(--navy); }
p, ul, ol, figure { margin: 0; padding: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--orange); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--grey); }
.sec-title { font-size: var(--t-h2); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.sec-title.big { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }

/* Platzhalter für Bilder, die noch fehlen */
.ph { background: repeating-linear-gradient(135deg, #E6E8F2 0 12px, #EEF0F7 12px 24px); color: #6A72A0; display: grid; place-items: center; text-align: center; font-size: 0.85rem; min-height: 120px; }
.ph small { font-size: 0.72rem; opacity: 0.8; word-break: break-all; }

/* Kopf mit Foto */
.site-head { position: relative; color: #fff; }
.head-photo { position: absolute; inset: 0; overflow: hidden; background: var(--navy); }
.head-photo .head-img { width: 100%; height: 100%; object-fit: cover; }
.head-photo .ph { height: 100%; }
.site-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,20,60,0.55) 0%, rgba(14,20,60,0.05) 45%, rgba(14,20,60,0.15) 100%); pointer-events: none; }
.head-bar { position: relative; z-index: 3; padding-top: env(safe-area-inset-top, 0px); }
.head-inner { display: flex; align-items: flex-start; gap: 20px; padding-block: 22px; }
.logo { display: block; margin-right: auto; background: rgba(255,255,255,0.92); padding: 10px 14px; border-radius: 4px; }
.logo img { width: 200px; height: auto; }
.badge-wrap { position: relative; z-index: 2; min-height: 150px; }
.site-head.home .badge-wrap { min-height: clamp(260px, 32vw, 420px); }
.badge { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); bottom: -40px; width: clamp(150px, 17vw, 210px); aspect-ratio: 1; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; text-align: center; padding: 22px; font-size: clamp(0.85rem, 0.75rem + 0.35vw, 1.05rem); line-height: 1.3; box-shadow: 0 8px 24px rgba(0,0,0,0.25); max-width: 100%; }

.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav > li { position: relative; }
.nav-top { display: flex; align-items: center; gap: 6px; font: inherit; font-weight: 500; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; background: none; border: 0; padding: 10px 12px; cursor: pointer; text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.nav-top:hover, .nav-top[aria-expanded="true"] { color: var(--orange); }
.nav-top[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
.chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub { list-style: none; margin: 0; position: absolute; top: 100%; right: 0; min-width: 240px; background: var(--paper); border-radius: 4px; box-shadow: 0 12px 30px rgba(14,20,60,0.25); padding: 8px; display: none; z-index: 60; }
.sub.sub-cols { grid-template-columns: repeat(2, minmax(130px, 1fr)); min-width: 320px; }
.has-sub > button[aria-expanded="true"] + .sub { display: block; }
.has-sub > button[aria-expanded="true"] + .sub.sub-cols { display: grid; }
.sub a { display: block; padding: 8px 12px; color: var(--navy); text-decoration: none; border-radius: 3px; text-shadow: none; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--tint); color: var(--navy); }
.menu-btn { display: none; align-items: center; gap: 10px; font: inherit; font-weight: 500; color: var(--navy); background: rgba(255,255,255,0.92); border: 0; border-radius: 4px; padding: 10px 14px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }

/* Städteleiste */
.citybar { background: var(--navy); position: relative; z-index: 1; }
.citybar ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; padding-block: 12px; }
.citybar a { color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 500; letter-spacing: 0.04em; font-size: 0.98rem; }
.citybar a:hover, .citybar a[aria-current="page"] { color: var(--orange); }
.site-head.home + .citybar ul { padding-top: 56px; }

/* Abschnitte */
.section { padding-block: clamp(44px, 6vw, 76px); }
.section.tint { background: var(--tint); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.intro-text { display: grid; gap: 1rem; max-width: 68ch; }
.intro-text h1 { margin-bottom: 0.5rem; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.duo figcaption { margin-top: 12px; display: grid; font-size: 0.92rem; color: var(--grey); }
.duo figcaption strong { color: var(--navy); font-size: 1rem; }

/* Tropfenform wie im Logo */
.drop { aspect-ratio: 1; border-radius: 50% 0 50% 50%; overflow: hidden; background: var(--tint); max-width: 100%; }
.drop img, .drop .ph { width: 100%; height: 100%; object-fit: cover; min-height: 0; }

/* Notruf */
.notruf { background: var(--orange); color: #fff; }
.notruf-inner { padding-block: 34px; text-align: center; display: grid; gap: 6px; justify-items: center; }
.notruf h2 { color: #fff; font-size: var(--t-h3); text-transform: uppercase; letter-spacing: 0.06em; }
.nr-num { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 700; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.nr-num a { color: #fff; text-decoration: none; }
.nr-hint { font-size: 0.95rem; }

/* Leistungen als Reihen */
.svc-list { display: grid; gap: 14px; }
.svc-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 32px; gap: 24px; align-items: center; padding: 22px 26px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; transition: border-color .15s, background .15s; }
.svc-row:hover { border-color: var(--navy); background: var(--tint); color: var(--navy); }
.svc-icon { width: 84px; height: 84px; border-radius: 50% 0 50% 50%; background: var(--orange); display: grid; place-items: center; }
.svc-icon .ic { width: 56px; height: 56px; }
.svc-txt { display: grid; gap: 4px; }
.svc-title { font-weight: 700; font-size: var(--t-h2); text-transform: uppercase; color: var(--navy); }
.svc-sub { color: var(--grey); }
.svc-arrow { width: 14px; height: 14px; border-top: 3px solid var(--orange); border-right: 3px solid var(--orange); transform: rotate(45deg); }

/* Niederlassungen */
.nl-list { list-style: none; margin-top: 1.8rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nl-list a { display: grid; padding: 14px 18px; background: var(--paper); border-left: 4px solid var(--orange); text-decoration: none; }
.nl-region { font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.nl-ort { color: var(--grey); font-size: 0.92rem; }
.nl-list a:hover .nl-region { color: var(--orange); }

/* Interview */
.interview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.iv-head { display: grid; gap: 20px; }
.iv-head .drop { width: min(260px, 100%); }
.qa-list { display: grid; gap: 26px; }
.qa { display: grid; gap: 8px; }
.qa h3 { font-size: var(--t-h3); text-transform: uppercase; letter-spacing: 0.02em; }
.qa p { color: var(--ink); }

.band { background: var(--navy); color: #fff; text-align: center; }
.band .wrap { padding-block: clamp(44px, 6vw, 72px); display: grid; gap: 10px; justify-items: center; }
.band h2 { color: #fff; font-size: var(--t-h2); text-transform: uppercase; }
.band p { max-width: 60ch; color: #DDE2F5; }

/* Logos */
.logo-row { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; margin-top: 1.8rem; }
.logo-row .lg { height: 80px; width: auto; max-width: 260px; object-fit: contain; }
.logo-row .ph { width: 200px; height: 80px; min-height: 0; }
.kids-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.kids .plan { height: 90px; width: auto; }

/* Leistungs-Panels mit Foto */
.panels { padding-bottom: clamp(44px, 6vw, 76px); }
.panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.panel { position: relative; border-radius: 4px; overflow: hidden; background: var(--navy); color: #fff; display: grid; grid-template-rows: 200px auto; }
.panel-img { width: 100%; height: 200px; object-fit: cover; }
.panel .ph { height: 200px; }
.panel-body { padding: 22px; display: grid; gap: 10px; align-content: start; }
.panel h3 { font-size: var(--t-h3); text-transform: uppercase; }
.panel h3 a { color: #fff; text-decoration: none; }
.panel h3 a::after { content: ""; position: absolute; inset: 0; }
.panel h3 a:hover { color: var(--orange); }
.panel p { color: #DDE2F5; font-size: 0.95rem; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { font-size: 0.8rem; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 2px 10px; }

/* Unterseiten */
.page-top { padding-bottom: 0; }
.pt-head { display: flex; align-items: center; gap: 20px; }
.pt-icon { width: 72px; height: 72px; flex: none; border-radius: 50% 0 50% 50%; background: var(--orange); display: grid; place-items: center; }
.pt-icon .ic { width: 48px; height: 48px; }
.lead { margin-top: 1.2rem; max-width: 70ch; font-size: var(--t-h3); line-height: 1.5; }
.pt-sec { padding-top: clamp(32px, 4vw, 48px); }
.pt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.pt { display: grid; gap: 10px; align-content: start; }
.pt-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.pt .ph { aspect-ratio: 4 / 3; border-radius: 4px; }
.pt h2 { font-size: var(--t-h3); text-transform: uppercase; }
.closing { margin-top: 3rem; padding: 28px; background: var(--tint); display: grid; gap: 8px; }
.downloads { margin-top: 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.downloads p { background: var(--tint); padding: 20px 22px; border-left: 4px solid var(--orange); }

.loc { display: grid; gap: 1.4rem; }
.addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.addr-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.addr { border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px; display: grid; gap: 10px; align-content: start; }
.addr h2 { font-size: var(--t-h3); text-transform: uppercase; }
.addr h3 { font-size: 1.05rem; }
.addr h4 { margin-top: 6px; font-size: 1rem; }
.firm { font-weight: 500; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0; }
.kv dt { color: var(--grey); }
.kv dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.dash { list-style: none; display: grid; gap: 6px; }
.dash li { padding-left: 20px; position: relative; }
.dash li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 2px; background: var(--orange); }
.dash.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.person { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: start; }
.person h3 { font-size: 1.05rem; }
.role { color: var(--grey); font-size: 0.92rem; margin-bottom: 6px; }
.person .drop .ph { font-size: 0.7rem; }

.about-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: 2rem; }
.about-grid .drop { width: min(300px, 100%); justify-self: end; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline > li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline h2 { font-size: var(--t-h2); color: var(--orange); font-variant-numeric: tabular-nums; }
.prose { display: grid; gap: 1rem; max-width: 75ch; }
.prose h2 { font-size: var(--t-h3); text-transform: uppercase; margin-top: 1rem; }
.prose h3 { font-size: 1.05rem; margin-top: 0.4rem; }
.lead-prose { margin-bottom: 2rem; }

/* Jobs */
.job-group { margin-top: 2.6rem; }
.job-group h2 { font-size: var(--t-h3); margin-bottom: 1rem; }
.job { border: 1px solid var(--line); border-radius: 4px; margin-bottom: 12px; overflow: hidden; }
.job[open] { border-color: var(--navy); }
.job summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding-right: 18px; }
.job summary::-webkit-details-marker { display: none; }
.job-img { width: 120px; height: 90px; object-fit: cover; }
.job summary .ph { width: 120px; height: 90px; min-height: 0; font-size: 0.7rem; }
.j-txt { display: grid; gap: 2px; padding-block: 10px; }
.j-title { font-weight: 700; color: var(--navy); }
.j-meta { color: var(--grey); font-size: 0.9rem; }
.j-btn { background: var(--orange); color: #fff; font-weight: 500; padding: 6px 14px; border-radius: 3px; font-size: 0.9rem; }
.job[open] .j-btn { background: var(--navy); }
.job-body { padding: 22px; display: grid; gap: 20px; border-top: 1px solid var(--line); }
.employer h4, .job-cols h4, .apply h4 { font-size: 1rem; text-transform: uppercase; margin-bottom: 8px; }
.employer p { color: var(--grey); }
.job-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.apply { background: var(--tint); padding: 18px 20px; }
.apply a { overflow-wrap: anywhere; }

/* Fuß */
.site-foot { background: var(--foot); color: var(--grey); font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.5fr 1fr; gap: 36px; padding-block: 44px; }
.site-foot h2 { color: var(--grey); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.site-foot a { color: var(--grey); text-decoration: none; }
.site-foot a:hover { color: var(--orange); }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand img { width: 170px; }
.foot-brand strong { color: var(--navy); }
.foot-list { list-style: none; display: grid; gap: 4px; }
.foot-list.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  #hauptnav { display: none; position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); top: calc(100% - 8px); background: var(--paper); border-radius: 4px; box-shadow: 0 16px 30px rgba(14,20,60,0.25); max-height: 75vh; overflow-y: auto; z-index: 70; }
  #hauptnav.open { display: block; }
  .head-inner { position: relative; align-items: center; }
  .nav { flex-direction: column; align-items: stretch; padding: 8px 14px 14px; gap: 0; }
  .nav-top { color: var(--navy); text-shadow: none; width: 100%; justify-content: space-between; padding: 13px 6px; border-bottom: 1px solid var(--line); }
  .nav-top[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 12px; }
  .sub, .sub.sub-cols { position: static; box-shadow: none; min-width: 0; padding: 4px 0 8px 10px; }
  .sub.sub-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo img { width: 150px; }
  .intro-grid, .interview, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-grid .drop { justify-self: start; }
  .nl-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel-grid, .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .addr-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-cols { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .badge-wrap { min-height: 110px; }
  .site-head.home .badge-wrap { min-height: 230px; }
  .badge { width: 140px; padding: 16px; font-size: 0.8rem; bottom: -30px; }
  .site-head.home + .citybar ul { padding-top: 44px; }
  .citybar ul { gap: 2px 14px; }
  .citybar a { font-size: 0.85rem; }
  .svc-row { grid-template-columns: 60px minmax(0, 1fr); padding: 16px; gap: 16px; }
  .svc-icon { width: 60px; height: 60px; }
  .svc-icon .ic { width: 40px; height: 40px; }
  .svc-arrow { display: none; }
  .nl-list, .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-grid, .pt-grid, .addr-grid, .addr-grid.three, .dash.cols2 { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline > li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .job summary { grid-template-columns: 80px minmax(0, 1fr); }
  .job-img, .job summary .ph { width: 80px; height: 80px; }
  .j-btn { display: none; }
  .person { grid-template-columns: 80px minmax(0, 1fr); }
  .logo-row .lg { height: 60px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Unterseiten-Kopf mit Bild rechts */
.pt-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pt-side { justify-self: end; width: 100%; max-width: 420px; }
.pt-side .ov { width: 100%; height: auto; }
.pt-side .drop { width: min(300px, 100%); margin-left: auto; }
@media (max-width: 760px) {
  .pt-split { grid-template-columns: minmax(0, 1fr); }
  .pt-side { justify-self: start; max-width: 320px; }
  .pt-side .drop { margin-left: 0; width: 200px; }
}
.sec-title, .svc-title, .qa h3, .pt h2 { overflow-wrap: break-word; }
@media (max-width: 640px) { .sec-title, .svc-title, .qa h3, .pt h2 { hyphens: auto; -webkit-hyphens: auto; } }
.intro-text, .intro-grid > * { min-width: 0; }
@media (max-width: 640px) { .sec-title.big { font-size: 1.55rem; } }
.person.no-photo { grid-template-columns: minmax(0, 1fr); }
.about-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.page-top:has(+ .notruf) { padding-bottom: clamp(28px, 3vw, 44px); }

/* Optimierte Bildausschnitte */
.badge-wrap { min-height: clamp(130px, 19vw, 290px); }
.site-head.home .badge-wrap { min-height: clamp(260px, 34vw, 470px); }
.pt-img, .pt .ph { aspect-ratio: 16 / 10; }
.job summary { grid-template-columns: 150px minmax(0, 1fr) auto; }
.job-img, .job summary .ph { width: 150px; height: 100px; object-fit: cover; }
.panel-img { object-fit: cover; }
.drop img { object-fit: cover; }
@media (max-width: 640px) {
  .badge-wrap { min-height: 140px; }
  .site-head.home .badge-wrap { min-height: 240px; }
  .job summary { grid-template-columns: 96px minmax(0, 1fr); }
  .job-img, .job summary .ph { width: 96px; height: 80px; }
}
