/* R40 basis – Korrekturen (Paket „basis“). Läuft nach site-r34.css; späteres CSS gewinnt. */

/* ---------- 4. Ticket: das normale Porträt, der runde Rahmen sitzt genau auf dem Bild (ein Ring aus box-shadow, keine Kante) */
.tk-who img{border:0!important;border-radius:50%;box-shadow:0 0 0 2px var(--tk-panel,#fff),0 0 0 3.5px #3c5a8f!important}
.tk-card[data-state=assigned] .tk-who img{box-shadow:0 0 0 2px var(--tk-panel,#fff),0 0 0 3.5px #3fbf73!important}
.tk-who .tk-smile{display:none!important}

/* ---------- 6. Start, „Nach Feierabend“: „ehrenamtlich“ als volle Tonfläche (kräftiger), „privat“ nur als Kontur (ruhiger),
   beide gleich groß. Kontrast: ehrenamtlich #5a3503 auf #f3cf8e 7,3:1; privat #74684d auf dem Kartenpapier 4,9–5,4:1 (vorher 2,5:1 durch opacity .62) */
.ft-tag b{display:inline-block;padding:2px 8px!important;border-radius:999px!important;font-size:10px!important;font-weight:700!important;line-height:1.35;opacity:1!important}
.ft-tag b:not(.is-vol){background:transparent!important;color:#74684d!important;box-shadow:inset 0 0 0 1px rgba(116,104,77,.5)}
.ft-tag b.is-vol{background:#f3cf8e!important;color:#5a3503!important;box-shadow:inset 0 0 0 1px #f3cf8e}

/* ---------- 8. Start, 17:00 bei „Licht aus“ – R40 abend: die Nacht-Regeln liegen jetzt in abend.css (die Karte liegt im warmen
   Licht der Lampe, „erledigt“/„zugewiesen“ in ihren Tagesfarben; der alte Knopf mit dem Lampen-Zeichen ist unsichtbar) */

/* ---------- Designer-Hinweis 5: Rot gehört dem Faden – die dunklen Kontaktblöcke (Start, /profil) nehmen das helle Blau der Seite
   statt Lachsrosa #ffb7a8; /projekt (.pj-cta) behält sein Rot */
.j-contact .eyebrow{color:#c3ccff!important}
.j-contact .contact-email em{color:#c3ccff!important}
body:not(.page-projekt) :is(.contact-section h2 .serif,.contact-section .contact-arrow,.resume-box>a span,.contact-section .contact-head,.contact-section .contact-head .index){color:#c3ccff!important}
body:not(.page-projekt) .contact-section .resume-box>a:hover{color:#c3ccff!important}
body:not(.page-projekt) .contact-arrow-link{color:#c3ccff!important}
body:not(.page-projekt) :is(.contact-arrow-link:hover,.contact-arrow-link:focus-visible){background:#c3ccff!important;color:#203033!important}

/* ---------- 3. Status-Verlauf: echte Kreise (32 px), alle auf einer senkrechten Linie, jeder Kreis senkrecht mittig zu seinem
   Eintrag, das Zeichen genau in der Kreismitte (Grid-Zentrierung, kein Zeilen-Grundlinien-Versatz) */
.history li:has(.h-mark){align-items:start}
.history li:has(.h-mark)>.h-mark{box-sizing:border-box;display:grid!important;place-items:center;width:32px!important;height:32px!important;min-width:0!important;padding:0!important;margin:0!important;border-radius:50%!important;align-self:center!important;justify-self:center;line-height:0}
.history .h-mark>.mark{display:grid!important;place-items:center;width:100%;height:100%;margin:0!important;position:relative;line-height:0}
.history .h-mark>.mark>*{grid-area:1/1;margin:0!important}
.history .h-mark .mark img,.history .h-mark .mark svg{display:block;max-width:20px!important}
.history .h-mark .mark-ms svg.ms-color{position:static!important;width:var(--mark-h)!important;height:var(--mark-h)!important;inset:auto!important}
.history .h-mark .mark-sbs{--mark-h:7px}
@media (max-width:760px){.history li:has(.h-mark)>.h-mark{grid-row:1/span 3!important}}

/* ---------- 7. Lesemodus: kein glattes Einfarbig mehr, sondern ruhiges, fein gekörntes Papier (wie der Lesemodus am Handy),
   je Seite im eigenen Grundton. Muster, Texturen und Bewegung bleiben aus. Korn = kleines eingebettetes SVG-Rauschen
   (feTurbulence, ~3 % Deckung) – liegt später src/assets/images/textur-korn-v40.webp vor, nur --rd-grain tauschen.
   Damit der Kontrast nicht schlechter wird als vorher (#1c2427 auf #faf7f0 = 15,1:1), ist die Lesefarbe etwas dunkler (#0f1719). */
:root{--rd-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .17 0 0 0 0 .12 0 0 0 .9 -.28'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");--rd-bg:#f8f6ef}
html[data-read=on]:root body{background:var(--rd-bg) var(--rd-grain) repeat 0 0/180px 180px!important;background-attachment:scroll!important}
html[data-read=on]:root body.page-status{--rd-bg:#f6f7f1}
html[data-read=on]:root body.page-profil{--rd-bg:#f8f5ee}
html[data-read=on]:root body:is(.page-kundenservice,.page-kontakt){--rd-bg:#f7f5ee}
html[data-read=on]:root body.page-fuchsware{--rd-bg:#f4ede0}
html[data-read=on]:root body.page-projekt{--rd-bg:#f6f2ea}
html[data-read=on]:root :is(.j-header,.site-header){background:color-mix(in srgb,var(--rd-bg) 96%,transparent) var(--rd-grain) repeat 0 0/180px 180px!important}
html[data-read=on]:root body{color:#0f1719}
html[data-read=on]:root main :is(p,li,dd,small,span):not([class*=eyebrow]):not(.index){color:#0f1719}
html[data-read=on]:root :is(.j-finale,.dark-section,.contact-section,.pj-cta,.family-close,.j-contact,.case-next,.wd-night) :is(p,li,dd,small,span):not([class*=eyebrow]):not(.index){color:inherit}
/* the ticket page keeps its own dark helpdesk tone in read mode – light grain, light text (before, dark text landed on the dark card) */
html[data-read=on]:root body.page-ticket{--rd-bg:#0d1619;--rd-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 -.28'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");color:#eef3f1}
html[data-read=on]:root body.page-ticket main :is(p,li,dd,small,span,h1,h2,h3,b,strong,em,time,label,div){color:#eef3f1!important}
html[data-read=on]:root body.page-ticket main :is(.tk-label,.tk-log time,.tk-meta,.tk-meta span){color:#c9d6ff!important}
html[data-read=on]:root :is(.hero-invite,.hero-meta,.profile-heading>p,.profile-facts p,.deeper-links span,.experience-note,.family-ticket p){color:#253238!important}
html[data-read=on]:root main .index{color:#34403e}

/* ---------- 1. Sprach-Schieberegler, neu (gehört zu §21): Spur 40 px hoch, ringsum 3 px Innenabstand (1 px Rand + 2 px Polster),
   zwei gleich große runde Felder 34 × 34, der Knopf 34 × 34 liegt exakt auf dem Feld (left:0 + translate = offsetLeft des Felds) */
html body .language-switch.is-slider{box-sizing:border-box;position:relative;display:inline-flex!important;align-items:center;gap:4px!important;height:40px!important;min-height:0!important;width:auto!important;max-width:none!important;padding:2px!important;margin:0!important;border:1px solid rgba(28,53,70,.16)!important;border-radius:99px!important;background:rgba(255,255,255,.35);font:700 10px/1 Manrope,Arial,sans-serif!important;letter-spacing:.04em!important;flex:none}
html body .language-switch.is-slider a{box-sizing:border-box;display:grid!important;place-items:center;width:34px!important;height:34px!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border-radius:50%!important;line-height:1!important;text-align:center}
html body .language-switch.is-slider .ls-knob{position:absolute;left:0!important;top:0!important;bottom:auto!important;width:34px!important;height:34px!important;border-radius:50%!important;background:#203c4b;box-shadow:0 2px 5px -1px rgba(21,45,56,.45);pointer-events:none;will-change:translate}
html body .language-switch.is-slider .ls-knob.is-moving{transition:translate .26s cubic-bezier(.3,1.25,.5,1)!important}
html body .language-switch.is-slider:has(a:focus-visible) .ls-knob{box-shadow:0 0 0 2px #fff,0 0 0 4px #3155ed}
html body .language-switch.is-slider a:focus-visible{outline:0!important}
html[data-read=on] body .language-switch.is-slider .ls-knob,html.motion-paused body .language-switch.is-slider .ls-knob{transition:none!important}
@media (prefers-reduced-motion:reduce){html body .language-switch.is-slider .ls-knob{transition:none!important}}

/* ---------- 2. Eine Kopfzeile auf allen Seiten (Maßstab Startseite): gleiche Höhe (82 px), gleicher Rand, gleiche Reihenfolge,
   gleiche Schriftgrößen und Knöpfe. Gilt für .j-header (Start) und .site-header (alle anderen, auch Ticket und 404).
   Desktop: eine Zeile. Handy (≤ 760 px): zwei kompakte Zeilen – oben Logo · Ton · DE/EN, darunter Seiten · Lebensläufe · Kontakt ·
   Dunkel · Lesen; zusammen ~93 px (≤ 12 % von 844 px). Das „Menü +“ der Unterseiten entfällt, alles steht direkt da. */
html body :is(header.j-header,header.site-header){--ba-ink:#152d38;--ba-w:min(1180px,calc(100% - 130px));box-sizing:border-box;position:sticky;top:0;z-index:40;display:block;width:auto;height:82px;margin:0;padding:0;background:rgba(247,246,239,.95);border-bottom:1px solid rgba(21,45,56,.15);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);color:var(--ba-ink);font-family:Manrope,Arial,sans-serif;font-size:16px}
html body :is(header.j-header>.header-row,header.site-header>.header-inner){box-sizing:border-box;display:flex!important;flex-wrap:nowrap;align-items:center;justify-content:flex-start!important;gap:20px!important;width:var(--ba-w)!important;max-width:none!important;height:100%!important;min-height:0!important;margin:0 auto!important;padding:0!important}
/* the brand */
html body :is(.j-brand,header.site-header .brand){font-weight:400!important;display:flex!important;align-items:center;gap:13px!important;flex:none;margin:0!important;color:var(--ba-ink)!important;text-decoration:none;font-size:16px!important;line-height:1}
html body :is(.j-brand>b,header.site-header .brand>span:first-child){display:block;font:700 34px/34px Manrope,Arial,sans-serif!important;letter-spacing:-.09em!important;color:var(--ba-ink)!important}
html body :is(.j-brand>b>i,header.site-header .brand>span:first-child>.blue){font-style:normal;color:#3149ed!important}
html body :is(.j-brand>span,header.site-header .brand>span:last-child){display:block;font:800 10px/14px Manrope,Arial,sans-serif!important;letter-spacing:0!important;color:var(--ba-ink)!important}
/* the navigation group: pushed to the right, one gap everywhere (on the start page contact + view buttons sit inside the nav) */
html body :is(header.j-header .header-links,header.site-header .main-nav){display:flex!important;align-items:center;gap:20px!important;margin:0 0 0 auto!important;padding:0!important;font-size:12px!important;flex:none}
html body header :is(.header-contact,.view-controls,.sound-toolbar,.language-switch){margin:0!important}
html body header .language-switch{margin-left:12px!important}
html body header .nav-pages>summary{font:700 12px/1 Manrope,Arial,sans-serif!important;color:var(--ba-ink)!important;padding:4px 2px!important;min-height:36px}
html body header :is(.header-links,.main-nav)>a:not(.nav-contact){display:inline-flex!important;align-items:center;min-height:36px;padding:0!important;font:700 12px/1 Manrope,Arial,sans-serif!important;color:var(--ba-ink)!important;text-decoration:none;transition:color .2s}
html body header :is(.header-links,.main-nav)>a:not(.nav-contact):hover{color:#3149ed!important}
/* "Lebensläufe": the same blue as on the start page when pointed at, focused or current */
html body header :is(.header-links,.main-nav)>a[href$="#lebenslaeufe"]:is(:hover,:focus-visible){color:#3149ed!important}
html body header :is(.nav-contact,.header-contact){box-sizing:border-box;display:inline-flex!important;align-items:center;gap:20px!important;height:42px;min-height:0!important;padding:0 16px!important;border:1px solid #aeb8b5!important;border-radius:3px!important;background:transparent!important;color:var(--ba-ink)!important;font:600 12px/1 Manrope,Arial,sans-serif!important;text-decoration:none;transition:background .2s,color .2s}
html body header :is(.nav-contact,.header-contact):is(:hover,[aria-current]){background:var(--ba-ink)!important;color:#fff!important;border-color:var(--ba-ink)!important}
html body header :is(.nav-contact,.header-contact)>span{font-size:12px!important}
html body header .view-controls{display:flex!important;gap:6px!important;align-items:center}
html body header .sound-toolbar{display:flex!important;align-items:center;gap:2px!important;padding:0!important;border:0!important;background:none!important}
html body header .scene-sound-toggle{box-sizing:border-box;display:flex!important;align-items:center;gap:7px!important;height:34px!important;min-height:34px!important;margin:0!important;padding:4px 11px 4px 9px!important;border:0!important;border-radius:999px!important;background:#eaeeff!important;box-shadow:inset 0 0 0 1px #b9c5fb!important;color:#2b46c9!important;font:800 10px/1 Manrope,Arial,sans-serif!important;letter-spacing:normal!important;text-transform:none!important;cursor:pointer}
html body.page-ticket header .scene-sound-toggle[aria-pressed=false]{background:#eaeeff!important;box-shadow:inset 0 0 0 1px #b9c5fb!important;color:#2b46c9!important}
html body header .scene-sound-toggle[aria-pressed=true]{background:#2b46c9!important;color:#fff!important;box-shadow:none!important}
html body header .scene-sound-toggle svg{display:block;width:18px!important;height:18px!important;fill:none;stroke:currentColor;stroke-width:1.8}
html body header .sound-settings-toggle{box-sizing:border-box;display:grid!important;place-items:center;width:38px!important;min-width:38px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:8px!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#69777e!important;font-size:16px!important}
html body header .sound-settings-toggle svg{width:16px!important;height:16px!important;fill:none;stroke:currentColor;stroke-width:1.5}
html body header .menu-toggle,html body header~.mobile-nav,html body #mobile-nav{display:none!important}
html body header #motion-toggle[hidden]{display:none!important}
/* current page in the "Seiten" panel: a blue bar and the word "hier" (the panel marks it already; make it visible on every page) */
html body header .nav-pages-panel a[aria-current]{background:#eef1fd!important;box-shadow:inset 3px 0 0 #3149ed}
@media (max-width:1100px){
  html body :is(header.j-header>.header-row,header.site-header>.header-inner){gap:14px!important}
  html body :is(header.j-header .header-links,header.site-header .main-nav){gap:14px!important}
  html body header .view-read>span{display:none!important}
  html body header .view-read{width:36px!important;padding:0!important}
  html body header .sound-toolbar [data-sound-label]{display:none!important}
  html body header :is(.nav-contact,.header-contact){gap:10px!important;padding:0 12px!important}
}
@media (max-width:850px){html body :is(header.j-header,header.site-header){--ba-w:calc(100% - 84px)}}
@media (max-width:760px){
  html body :is(header.j-header,header.site-header){--ba-w:calc(100% - 32px);height:auto!important}
  html body :is(header.j-header>.header-row,header.site-header>.header-inner){flex-wrap:wrap!important;justify-content:space-between!important;gap:4px 6px!important;height:auto!important;padding:6px 0!important}
  html body :is(header.j-header>.header-row,header.site-header>.header-inner)::after{content:"";order:3;flex:0 0 100%;height:0}
  html body :is(header.j-header .header-links,header.site-header .main-nav){display:contents!important}
  html body :is(.j-brand,header.site-header .brand){order:0;margin-right:auto!important;gap:9px!important}
  html body :is(.j-brand>b,header.site-header .brand>span:first-child){font-size:31px!important;line-height:31px!important}
  html body :is(.j-brand>span,header.site-header .brand>span:last-child){font-size:9px!important;line-height:12px!important}
  html body header .sound-toolbar{order:1}
  html body header .language-switch{order:2;margin-left:2px!important}
  html body header .nav-pages{order:4}
  html body header :is(.header-links,.main-nav)>a:not(.nav-contact){order:5;font-size:11px!important;padding:0 4px!important}
  html body header :is(.nav-contact,.header-contact){order:6;height:36px;gap:8px!important;padding:0 10px!important;font-size:11px!important}
  html body header .view-controls{order:7}
  html body header .nav-pages>summary{font-size:11px!important}
  html body header .sound-settings-toggle{width:30px!important;min-width:30px!important;padding:6px!important}
  html body header .scene-sound-toggle{gap:5px!important}
  html body header .sound-settings-toggle{height:40px!important;min-height:40px!important}
}
@media (max-width:360px){html body :is(.j-brand>span,header.site-header .brand>span:last-child){display:none!important}}
/* ticket: the header lies over the full width (the helpdesk rail starts below it); dark mode turns the header dark like elsewhere */
body.page-ticket>header.site-header{margin-left:-76px}
@media (min-width:721px){body.page-ticket .tk-rail{top:83px}}
@media (max-width:720px){body.page-ticket>header.site-header{margin-left:0}}
html[data-theme=dark] body.page-ticket>header.site-header{filter:invert(1) hue-rotate(180deg) contrast(.88)}
html[data-theme=dark] body.page-ticket>header.site-header :is(img,video,canvas){filter:invert(1) hue-rotate(180deg)!important}
/* 404: its own small stylesheet styles bare header/footer – the shared ones win */
body.page-404>header.site-header{padding:0!important;display:block!important}
body.page-404>footer.ba-footer{display:block}

/* ---------- 2b. Eine Fußzeile auf allen Seiten (Maßstab Startseite): gleiche Fläche, gleiche Breite, gleicher Text und Links,
   „Datenschutz“ steht überall im Hinweis-Knopf */
html body :is(footer.j-footer,footer.ba-footer){box-sizing:border-box;display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:25px 0!important;background:#edf0e9!important;color:#566970!important;opacity:1!important;font-family:Manrope,Arial,sans-serif}
html body footer.ba-footer{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 25px!important;padding-inline:max(65px,calc((100% - 1180px) / 2))!important;grid-template-columns:none!important}
html body footer.j-footer>.j-shell{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 25px!important;width:min(1180px,calc(100% - 130px))!important;margin:0 auto}
html body :is(footer.j-footer>.j-shell,footer.ba-footer)>*{grid-column:auto!important;justify-self:auto!important;margin:0!important;font-size:11px!important;font-weight:650;color:#566970!important;text-decoration:none}
html body :is(footer.j-footer>.j-shell,footer.ba-footer)>span{font-weight:500}
html body :is(footer.j-footer>.j-shell,footer.ba-footer) :is(a,button){display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0!important;border:0;background:none;cursor:pointer;font:inherit;font-size:11px!important;color:#566970!important}
html body :is(footer.j-footer>.j-shell,footer.ba-footer) :is(a,button):hover{color:#3149ed!important}
html body :is(footer.j-footer>.j-shell,footer.ba-footer) .li-icon{width:15px;height:15px}
@media (max-width:850px){html body footer.ba-footer{padding-inline:42px!important}html body footer.j-footer>.j-shell{width:calc(100% - 84px)!important}}
@media (max-width:760px){html body :is(footer.j-footer,footer.ba-footer){padding:15px 0!important}html body footer.ba-footer{padding-inline:16px!important;justify-content:flex-start}html body footer.j-footer>.j-shell{width:calc(100% - 32px)!important;justify-content:flex-start}html body :is(footer.j-footer>.j-shell,footer.ba-footer){column-gap:20px!important}html body :is(footer.j-footer>.j-shell,footer.ba-footer) :is(a,button){min-height:36px}}
body.page-ticket>footer.ba-footer{margin-left:-76px!important;position:relative;z-index:6;padding-inline:max(65px,calc((100% + 76px - 1180px) / 2))!important}
@media (max-width:850px){body.page-ticket>footer.ba-footer{padding-inline:42px!important}}
@media (max-width:760px){body.page-ticket>footer.ba-footer{padding-inline:16px!important}}
@media (max-width:720px){body.page-ticket>footer.ba-footer{margin-left:0!important}}

/* ---------- 2c. Handy, Startseite (Designer-Hinweis 6): mit der kompakteren Kopfzeile stehen „Meinen Tag starten“ und die Zeile
   darunter beim Erstbesuch ganz im Bild (Knopf-Unterkante ≤ 760 px bei 390 × 844) – Bild etwas flacher, Überschrift knapper,
   der Einladungssatz rückt unter die Knöpfe (nichts gestrichen) */
@media (max-width:600px){
  .j-hero .hero-copy{display:flex;flex-direction:column}
  .j-hero .hero-art{height:232px!important;min-height:232px!important;margin-bottom:0!important}
  .j-hero .hero-copy h1{font-size:clamp(44px,12.4vw,58px)!important;margin-top:10px!important;margin-bottom:12px!important}
  .j-hero .hero-copy .hero-lead{font-size:15.5px!important;line-height:1.5!important}
  .j-hero .hero-copy .hero-actions{order:3;margin-top:14px!important}
  .j-hero .hero-copy .hero-invite{order:4;margin-top:14px!important}
  .j-hero .hero-copy :is(.hero-glance,.hero-meta){order:5}
  .j-hero .hero-copy .hero-meta{order:6}
}
body.page-ticket>header.site-header{background:#f7f6ef!important}
