
:root{
  --paper:#f6f9ff;
  --paper-2:#eef5ff;
  --surface:#ffffff;
  --surface-2:#f9fbff;
  --ink:#0a1224;
  --ink-soft:#23314f;
  --muted:#61738d;
  --line:#d8e5f5;
  --line-strong:#bfd2eb;
  --blue:#1237ff;
  --cyan:#18c6f1;
  --green:#b8f60d;
  --green-2:#9feb16;
  --silver:#cfd4dd;
  --navy:#0f1b3d;
  --gradient:linear-gradient(94deg,var(--cyan) 0%, var(--blue) 44%, #1cbbe8 68%, var(--green) 100%);
  --gradient-soft:linear-gradient(135deg,rgba(24,198,241,.16),rgba(18,55,255,.10) 48%,rgba(184,246,13,.14));
  --shadow:0 18px 50px rgba(16,39,82,.10);
  --shadow-soft:0 12px 34px rgba(16,39,82,.08);
  --radius:28px;
  --radius-sm:18px;
  --max:1440px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:linear-gradient(180deg,var(--paper) 0%, #f9fbff 100%);
  color:var(--ink);
  font-family:"Avenir Next","Inter","Helvetica Neue",Arial,sans-serif;
  line-height:1.5;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
.shell{width:min(var(--max),calc(100% - 56px));margin:0 auto}

header{position:relative;z-index:15;padding:24px 0 10px}
.topbar{
  display:grid;
  grid-template-columns:minmax(200px,320px) 1fr auto;
  align-items:center;
  gap:20px;
}
.logo{display:inline-flex;align-items:center;max-width:min(300px,42vw)}
.logo img{width:100%;height:auto;object-fit:contain}
nav{
  display:flex;
  justify-content:center;
  gap:28px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.05em;
  text-transform:lowercase;
  color:var(--ink-soft);
}
nav a{opacity:.9;transition:opacity .2s ease,color .2s ease}
nav a:hover{opacity:1;color:var(--blue)}
.header-contact{justify-self:end;font-size:14px;font-weight:600;color:var(--ink-soft)}
.header-contact a{display:inline-flex;align-items:center;gap:10px}
.header-contact a::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--gradient);box-shadow:0 0 0 6px rgba(24,198,241,.10)}

.menu-btn{
  display:none;
  border:1px solid rgba(13,31,74,.08);
  background:rgba(255,255,255,.22);
  font:700 13px/1 "Avenir Next","Helvetica Neue",Arial,sans-serif;
  letter-spacing:.06em;
  text-transform:lowercase;
  color:var(--ink);
  padding:0 14px;
  min-width:56px;
  min-height:56px;
  border-radius:999px;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 6px 24px rgba(8,18,36,.06);
  cursor:pointer;
  transition:opacity .32s ease, transform .32s ease, background .2s ease, box-shadow .2s ease;
  position:fixed;
  top:max(18px, env(safe-area-inset-top));
  right:max(18px, env(safe-area-inset-right));
  z-index:9999;
}
.menu-btn:hover{background:rgba(255,255,255,.48);box-shadow:0 10px 26px rgba(8,18,36,.09)}
body.home-page.intro-active .menu-btn{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-10px)}
body.home-page:not(.intro-active) .menu-btn,
body:not(.home-page) .menu-btn{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}

.hero{min-height:78vh;padding:68px 0 36px;display:flex;align-items:flex-end;position:relative}
.hero::before{
  content:"";
  position:absolute;
  inset:auto 0 16% auto;
  width:min(38vw,560px);
  height:min(38vw,560px);
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(24,198,241,.22), rgba(18,55,255,.08) 50%, transparent 70%);
  filter:blur(6px);
  pointer-events:none;
}
.hero-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:52px;align-items:end;position:relative;z-index:1}
.kicker,.small-label{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:var(--muted);
}
.kicker{margin-bottom:18px}
.hero h1,.statement h2,.services-head h2,.approach h2,.contact-line h2,.page-hero h1,.service h3,.cred-card .big,.contact-big,.contact-item strong,.prose h2,.prose h3{
  font-family:"Avenir Next","Inter","Helvetica Neue",Arial,sans-serif;
  font-weight:700;
  letter-spacing:-.06em;
  line-height:.92;
  margin:0;
}
.hero h1{font-size:clamp(4rem,10vw,9rem)}
.hero h1 em{font-style:normal;background:var(--gradient);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-copy p{font-size:clamp(1.05rem,1.5vw,1.28rem);margin:0;max-width:34ch;color:var(--ink-soft)}
.rule{border-top:1px solid var(--line);opacity:.9}

.statement,.services,.approach,.credentials{padding:100px 0}
.statement-grid,.services-head,.approach-grid,.contact-line{display:grid;gap:64px}
.statement-grid{grid-template-columns:.56fr 1.44fr}
.statement h2{font-size:clamp(2.7rem,5.9vw,6.2rem)}
.statement h2 em{font-style:normal;color:var(--blue)}

.visual-band{display:grid;grid-template-columns:1.1fr .9fr;gap:20px;margin:8px 0 104px}
.visual-a,.visual-b{
  min-height:460px;
  position:relative;
  overflow:hidden;
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
}
.visual-a{
  background:linear-gradient(145deg,#132552 0%,#0b1636 42%, #1336cf 100%);
}
.visual-a::before{
  content:"";
  position:absolute;
  inset:12% auto auto 7%;
  width:min(48%,240px);
  aspect-ratio:495/579;
  background:url('logo-mark.png') center/contain no-repeat;
  opacity:.20;
}
.visual-a::after{
  content:"ARBEITSSCHUTZ · GEFAHRSTOFFE · PRAXIS";
  position:absolute;
  left:8%;bottom:8%;
  color:rgba(255,255,255,.86);
  font-size:clamp(.78rem,1vw,.95rem);
  letter-spacing:.18em;
  font-weight:700;
}
.visual-b{
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(246,250,255,.96));
  border:1px solid var(--line);
}
.visual-b::before{
  content:"";
  position:absolute;
  inset:11% 8% auto auto;
  width:min(52%,260px);
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(184,246,13,.90), rgba(24,198,241,.85) 42%, rgba(18,55,255,.94) 68%, rgba(207,212,221,.98) 100%);
  filter:blur(0.2px);
  opacity:.92;
}
.visual-b::after{
  content:"TECHNIK\A REGELWERK\A UMSETZUNG";
  white-space:pre;
  position:absolute;
  left:9%;bottom:9%;
  color:var(--ink);
  font-size:clamp(1.8rem,4vw,3.5rem);
  line-height:.95;
  letter-spacing:-.05em;
  font-weight:700;
}

.services-head{grid-template-columns:.8fr 1.2fr;margin-bottom:56px}
.services-head h2{font-size:clamp(3rem,5.5vw,5.8rem)}
.services-intro{font-size:1.08rem;max-width:50ch;color:var(--ink-soft)}
.service-list{border-top:1px solid var(--line)}
.service{
  display:grid;
  grid-template-columns:100px minmax(220px,.9fr) minmax(0,1.1fr);
  gap:26px;
  align-items:start;
  padding:28px 0 32px;
  border-bottom:1px solid var(--line);
}
.service .n{font-size:1rem;font-weight:800;color:var(--blue);letter-spacing:.08em;padding-top:.45rem}
.service h3{font-size:clamp(2rem,3vw,3.2rem);overflow-wrap:normal;word-break:normal;hyphens:none}
.service p{margin:0;color:var(--ink-soft);max-width:62ch}
.tags{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}
.tag{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--line-strong);
  background:rgba(255,255,255,.75);
  color:var(--ink-soft);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  box-shadow:0 4px 10px rgba(16,39,82,.04);
}

.approach{background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(239,246,255,.72));border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.approach-grid{grid-template-columns:1.08fr .92fr;align-items:start}
.approach h2{font-size:clamp(3rem,6vw,6.2rem)}
.approach h2 em,.page-hero h1 em{font-style:normal;background:var(--gradient);-webkit-background-clip:text;background-clip:text;color:transparent}
.approach-copy{font-size:1.08rem;color:var(--ink-soft)}
.approach-copy p:first-child{font-size:1.42rem;color:var(--ink)}
.approach-copy a{font-weight:800;color:var(--blue)}

.credentials{padding-top:104px}
.cred-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.cred-card{min-height:400px;padding:36px;border-radius:var(--radius);display:flex;flex-direction:column;justify-content:space-between;box-shadow:var(--shadow-soft)}
.cred-card.dark{background:linear-gradient(155deg,#0b1636 0%, #1237ff 58%, #1ac0ef 100%);color:#fff}
.cred-card.light{background:linear-gradient(180deg,#fff 0%, #f2f8ff 100%);border:1px solid var(--line)}
.cred-card .big{font-size:clamp(3rem,5vw,5.4rem)}
.cred-card p{max-width:42ch;margin:0;color:inherit;opacity:.92}
.cred-card.light .big{background:var(--gradient);-webkit-background-clip:text;background-clip:text;color:transparent}
.cred-card.light p{color:var(--ink-soft)}

.contact-strip{padding:92px 0 72px}
.contact-line{grid-template-columns:.62fr 1.38fr;align-items:end}
.contact-line h2{font-size:clamp(3.8rem,8.8vw,8.5rem)}
.contact-line a.mail{
  display:inline-block;
  margin-top:14px;
  font-size:clamp(1.4rem,2.7vw,2.8rem);
  font-weight:700;
  letter-spacing:-.04em;
  border-bottom:1px solid rgba(10,18,36,.18);
  padding-bottom:6px;
}

footer{padding:34px 0 28px;border-top:1px solid var(--line);background:rgba(255,255,255,.64)}
.footer-grid{display:grid;grid-template-columns:1fr auto;gap:28px;font-size:13px;align-items:center}
.footer-brand{display:flex;align-items:center;gap:12px;font-weight:700;color:var(--ink-soft)}
.footer-brand img{width:42px;height:auto}
.footer-links{display:flex;gap:18px}
.muted{color:var(--muted)}

.page-hero{padding:78px 0 70px;position:relative}
.page-hero::before{
  content:"";
  position:absolute;
  inset:auto 6% auto auto;
  width:min(28vw,320px);
  aspect-ratio:1;
  background:radial-gradient(circle at 30% 30%, rgba(24,198,241,.22), rgba(18,55,255,.09) 54%, transparent 72%);
  border-radius:50%;
  filter:blur(4px);
}
.page-hero h1{font-size:clamp(4rem,8vw,8rem);margin-bottom:28px;position:relative;z-index:1}
.page-hero p{max-width:54ch;font-size:1.14rem;color:var(--ink-soft);position:relative;z-index:1}
.content{padding:20px 0 100px}
.prose{max-width:900px}
.prose h2{font-size:2.3rem;margin:55px 0 16px}
.prose h3{font-size:1.6rem;margin:34px 0 10px}
.prose p,.prose li{color:var(--ink-soft)}
.note{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;margin:28px 0;color:var(--ink-soft)}

.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px;padding:24px 0 108px}
.contact-big{font-size:clamp(2rem,4vw,4.2rem);line-height:1.04}
.contact-items{border-top:1px solid var(--line)}
.contact-item{padding:22px 0;border-bottom:1px solid var(--line)}
.contact-item small{display:block;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);margin-bottom:6px;font-size:.78rem;font-weight:700}
.contact-item strong{font-size:1.7rem;font-weight:700;letter-spacing:-.04em}

.text-accent{background:var(--gradient);-webkit-background-clip:text;background-clip:text;color:transparent}
.text-secondary{color:var(--muted)}

/* Intro */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.site-intro{
  min-height:100vh;min-height:100svh;background:linear-gradient(180deg,#fbfdff 0%,var(--paper) 100%);color:var(--ink);overflow:hidden;position:relative;
}
@supports (height:100dvh){.site-intro{min-height:100dvh}}
.site-intro::before{
  content:"";
  position:absolute;
  inset:-18% auto auto -10%;
  width:min(50vw,760px);height:min(50vw,760px);
  background:radial-gradient(circle at 45% 45%, rgba(24,198,241,.18), rgba(18,55,255,.08) 46%, transparent 70%);
  filter:blur(6px);
}
.site-intro::after{
  content:"";
  position:absolute;
  inset:auto -6% -16% auto;
  width:min(42vw,560px);height:min(42vw,560px);
  background:radial-gradient(circle at 50% 50%, rgba(184,246,13,.22), rgba(24,198,241,.12) 40%, transparent 68%);
  filter:blur(10px);
}
.site-intro__inner{
  width:min(var(--max),calc(100% - clamp(28px,4vw,72px)));
  min-height:inherit;
  margin:0 auto;
  padding:clamp(26px,4vh,56px) 0 clamp(22px,3.5vh,46px);
  display:grid;
  grid-template-rows:auto 1fr auto;
  gap:clamp(22px,3vh,36px);
  position:relative;
  z-index:1;
}
.site-intro__mark{width:clamp(68px,9vw,112px);filter:drop-shadow(0 16px 34px rgba(18,55,255,.12));opacity:.98}
.site-intro__title{
  align-self:center;
  display:flex;flex-direction:column;gap:.06em;
  font-family:"Avenir Next","Inter","Helvetica Neue",Arial,sans-serif;
  text-transform:uppercase;
  line-height:.86;
  will-change:transform,opacity;
  opacity:0;
  transform:translate3d(0,12px,0) scale(.95);
  transition:opacity 1.8s cubic-bezier(.22,.61,.36,1) .15s, transform 5.6s cubic-bezier(.16,.70,.18,1) .15s;
}
.intro-ready .site-intro__title{opacity:1;transform:translate3d(0,0,0) scale(1)}
.site-intro__line{display:block;white-space:nowrap}
.site-intro__line--top{
  font-size:clamp(1.08rem,2.1vw,2rem);
  font-weight:600;
  letter-spacing:.16em;
  color:#8b94a6;
  margin-bottom:.42em;
}
.site-intro__line--bottom{
  font-size:clamp(3.3rem,9.5vw,9.3rem);
  font-weight:800;
  letter-spacing:-.068em;
  color:var(--ink);
}
.site-intro__footer{
  display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
  border-top:1px solid var(--line);padding-top:14px;
  font-size:clamp(.68rem,.76vw,.84rem);font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);
  opacity:0;transform:translate3d(0,8px,0);transition:opacity 1.2s ease 1.9s, transform 1.2s ease 1.9s;
}
.intro-ready .site-intro__footer{opacity:1;transform:translate3d(0,0,0)}
.site-intro__scroll{display:inline-flex;gap:.55em;align-items:center;white-space:nowrap}
.site-intro__scroll span{display:inline-block;animation:introScrollBounce 1.6s cubic-bezier(.45,.05,.55,.95) infinite}
@keyframes introScrollBounce{0%,20%,50%,80%,100%{transform:translateY(0)}40%{transform:translateY(7px)}60%{transform:translateY(3px)}}

/* responsive */
@media (max-width:1180px){
  .services .service{grid-template-columns:64px minmax(0,1fr);column-gap:22px;row-gap:14px}
  .services .service .n{grid-column:1;grid-row:1;padding-top:.25rem}
  .services .service h3{grid-column:2;grid-row:1;font-size:clamp(1.95rem,4.3vw,3rem)}
  .services .service > div:last-child{grid-column:2;grid-row:2;min-width:0}
}
@media (max-width:900px){
  .shell{width:min(var(--max),calc(100% - 32px))}
  .topbar{grid-template-columns:minmax(160px,240px) auto}
  nav{display:none;position:fixed;top:calc(max(18px, env(safe-area-inset-top)) + 64px);right:max(18px, env(safe-area-inset-right));left:auto;width:min(320px,calc(100vw - 36px));background:rgba(255,255,255,.92);border:1px solid var(--line);padding:18px;border-radius:22px;flex-direction:column;align-items:stretch;box-shadow:var(--shadow);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);z-index:9998}
  nav.open{display:flex}
  .menu-btn{display:inline-flex}
  .header-contact{display:none}
  .hero{min-height:70vh;padding-top:52px}
  .hero-grid,.statement-grid,.services-head,.approach-grid,.contact-line,.contact-grid{grid-template-columns:1fr}
  .visual-band{grid-template-columns:1fr;margin-bottom:80px}
  .visual-a,.visual-b{min-height:340px}
  .statement,.services,.approach,.credentials{padding:76px 0}
  .cred-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;gap:12px}
  .footer-links{flex-wrap:wrap}
  .contact-line{gap:26px}
  .logo{max-width:220px}
}
@media (max-width:820px){
  .page-hero{padding:56px 0 52px}
  .page-hero h1{font-size:clamp(3.2rem,10vw,5.1rem);line-height:.94}
  .page-hero p{font-size:1.03rem;max-width:42rem}
  .services{padding:54px 0 74px}
  .services .service{grid-template-columns:52px minmax(0,1fr);column-gap:16px;row-gap:12px;padding:26px 0 30px}
  .services .service h3{font-size:clamp(1.8rem,6vw,2.5rem);line-height:1.04}
  .services .service p{font-size:1rem;line-height:1.58;max-width:100%}
  .site-intro__line--top{font-size:clamp(.92rem,3.6vw,1.15rem);letter-spacing:.14em}
  .site-intro__line--bottom{font-size:clamp(3rem,13.5vw,5.8rem);line-height:.92}
}
@media (max-width:620px){
  .shell{width:calc(100% - 28px)}
  .hero h1{font-size:clamp(3.3rem,17vw,5.4rem)}
  .site-intro__inner{width:calc(100% - 28px);padding-top:max(22px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}
  .site-intro__footer{font-size:.64rem;letter-spacing:.08em}
  .site-intro__footer>span{max-width:22ch}
  .site-intro__mark{width:66px}
  .service{grid-template-columns:1fr;gap:9px;padding:24px 0 28px}
  .services .service .n,.services .service h3,.services .service > div:last-child{grid-column:1;grid-row:auto}
  .services .service .n{font-size:.9rem;margin-bottom:2px}
  .services .service h3{font-size:clamp(1.72rem,8.6vw,2.3rem);line-height:1.05}
  .services .service p{font-size:.97rem;line-height:1.56}
  .approach h2,.statement h2,.services-head h2,.contact-line h2{font-size:clamp(2.5rem,11vw,4.2rem)}
  .contact-item strong{font-size:1.32rem}
  .logo{max-width:180px}
}
@media (orientation:landscape) and (max-height:560px){
  .site-intro__inner{padding-top:18px;padding-bottom:16px;gap:12px}
  .site-intro__mark{width:58px}
  .site-intro__line--bottom{font-size:min(9vw,5.6rem)}
  .site-intro__footer{font-size:.6rem;padding-top:10px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .site-intro__title,.site-intro__footer{opacity:1;transform:none;transition:none}
  .site-intro__scroll span{animation:none}
}


/* ==========================================================
   Requested refinement – based strictly on t5-logo-angepasst
   ========================================================== */

/* Transparent floating page head replaces the floating menu button. */
header{
  position:sticky !important;
  top:0;
  z-index:9000;
  padding:12px 0 !important;
  background:rgba(246,249,255,.68);
  border-bottom:1px solid rgba(79,115,177,.12);
  -webkit-backdrop-filter:blur(18px) saturate(145%);
  backdrop-filter:blur(18px) saturate(145%);
  box-shadow:0 8px 28px rgba(17,42,90,.045);
}
.topbar{
  grid-template-columns:minmax(180px,285px) minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:clamp(18px,2.5vw,34px) !important;
}
.logo{max-width:min(275px,30vw) !important}
nav{
  display:flex !important;
  position:static !important;
  width:auto !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:center !important;
  gap:clamp(14px,2vw,28px) !important;
  white-space:nowrap;
}
nav a{
  font-size:clamp(.72rem,.92vw,.86rem);
  font-weight:650;
  letter-spacing:.045em;
  color:rgba(10,18,36,.78);
  transition:color .2s ease,opacity .2s ease;
}
nav a:hover{color:var(--blue)}
.header-contact{
  display:block !important;
  justify-self:end !important;
  font-size:clamp(.69rem,.85vw,.82rem) !important;
  white-space:nowrap;
}
.menu-btn{display:none !important}

/* The intro itself stays free of navigation; header follows it in document flow. */
.home-page .site-intro + header{position:sticky !important}

/* Intro typography: more open, with restrained logo-derived color. */
.site-intro__line--top{
  color:#8f9aab !important;
  font-weight:550 !important;
  letter-spacing:.17em !important;
}
.site-intro__line--bottom{
  font-weight:700 !important;
  letter-spacing:-.025em !important;
  line-height:.96 !important;
  background:linear-gradient(92deg,#1237ff 0%,#117ee9 38%,#16c4e9 67%,#9be91a 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent !important;
  -webkit-text-fill-color:transparent;
}

/* Scroll presentation copied from t5-logo-korrigiert. */
.site-intro__footer{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  border-top:1px solid var(--line);
  padding-top:14px;
  font-family:"Avenir Next","Avenir","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:clamp(.68rem,.76vw,.82rem);
  line-height:1.25;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.site-intro__scroll{display:inline-flex;gap:.55em;align-items:center;white-space:nowrap}
.site-intro__scroll span{font-size:1.25em;line-height:1;transition:transform .2s ease}
.site-intro__scroll:hover span{transform:translateY(3px)}
.site-intro__scroll span{animation:introScrollBounce 1.6s cubic-bezier(.45,.05,.55,.95) infinite}

/* Services: headings use logo colors without reducing readability. */
.services-page .service h3{
  letter-spacing:-.035em !important;
  font-weight:720 !important;
}
.services-page .service:nth-child(1) h3{color:#1237ff}
.services-page .service:nth-child(2) h3{
  background:linear-gradient(92deg,#1237ff,#13a8eb 72%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.services-page .service:nth-child(3) h3{
  background:linear-gradient(92deg,#0d78d9,#38bfae 62%,#74c92a);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.services-page .service:nth-child(4) h3{color:#2b58dd}
.services-page .service .n{
  color:#7a8aa7 !important;
  font-weight:750 !important;
}
.services-page .tag{
  border-color:rgba(18,55,255,.16) !important;
  background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(230,244,255,.72)) !important;
}

/* Contact / legal pages: subtle logo-derived fields, not decorative clutter. */
.contact-page .page-hero,
.legal-page .page-hero{
  background:linear-gradient(135deg,rgba(18,55,255,.045),rgba(24,198,241,.055) 58%,rgba(155,233,26,.045));
  border-bottom:1px solid rgba(79,115,177,.10);
}
.contact-page .page-hero h1,
.legal-page .page-hero h1{
  letter-spacing:-.035em !important;
  line-height:.98 !important;
}
.contact-page .page-hero h1{
  background:linear-gradient(92deg,#0a1224 0%,#1237ff 62%,#1bbddf 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.legal-page .page-hero h1{color:#172644}
.contact-page .contact-grid{
  margin-top:30px;
  margin-bottom:50px;
  padding:clamp(28px,4vw,52px) !important;
  border:1px solid rgba(18,55,255,.10);
  border-radius:28px;
  background:linear-gradient(145deg,rgba(255,255,255,.90),rgba(239,247,255,.78));
  box-shadow:0 16px 46px rgba(17,42,90,.055);
}
.contact-page .contact-item strong a{color:#173fc8}
.contact-page .contact-item{border-color:rgba(18,55,255,.11) !important}
.legal-page .content .prose{
  padding:clamp(28px,4vw,54px);
  border-radius:28px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(79,115,177,.10);
  box-shadow:0 14px 40px rgba(17,42,90,.04);
}
.legal-page .prose h2{
  color:#2448a8;
  letter-spacing:-.025em !important;
}
.legal-page .prose a{color:#1742c9;text-decoration-color:rgba(23,66,201,.25)}
.datenschutz-page .prose h2:nth-of-type(2n){color:#177fa9}

/* Start-page contact statement: more open typography and a logo-derived accent. */
.home-page .contact-line h2{
  font-family:"Avenir Next","Inter","Helvetica Neue",Arial,sans-serif !important;
  font-weight:700 !important;
  letter-spacing:-.035em !important;
  line-height:.98 !important;
  font-size:clamp(3.5rem,7.7vw,7.4rem) !important;
}
.home-page .contact-accent{
  background:linear-gradient(92deg,#1237ff 0%,#16bee9 60%,#91df1d 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.home-page .contact-line a.mail{
  border-bottom-color:rgba(18,55,255,.22) !important;
  color:#1a3c91;
  letter-spacing:-.025em;
}

/* Responsive transparent header. */
@media(max-width:900px){
  header{padding:10px 0 !important}
  .topbar{
    grid-template-columns:auto 1fr !important;
    gap:8px 14px !important;
  }
  .logo{max-width:clamp(135px,30vw,190px) !important;grid-column:1;grid-row:1}
  .header-contact{
    grid-column:2;grid-row:1;
    justify-self:end !important;
    font-size:clamp(.61rem,1.8vw,.75rem) !important;
  }
  nav{
    grid-column:1/-1;grid-row:2;
    justify-content:flex-start !important;
    gap:clamp(13px,3.2vw,24px) !important;
    overflow-x:auto;
    scrollbar-width:none;
    padding:3px 0 1px !important;
  }
  nav::-webkit-scrollbar{display:none}
  nav a{font-size:clamp(.68rem,2.15vw,.79rem)}
}
@media(max-width:620px){
  .site-intro__line--bottom{
    font-size:clamp(2.8rem,12.7vw,4.8rem) !important;
    letter-spacing:-.018em !important;
    white-space:normal !important;
  }
  .site-intro__line--top{letter-spacing:.14em !important}
  .topbar{gap:7px 10px !important}
  .logo{max-width:145px !important}
  .header-contact{font-size:.61rem !important}
  nav{gap:16px !important}
  nav a{font-size:.69rem !important}
  .contact-page .contact-grid,.legal-page .content .prose{border-radius:20px;padding:24px !important}
}
@media(max-width:420px){
  .topbar{grid-template-columns:1fr !important}
  .logo{grid-column:1;grid-row:1;max-width:150px !important}
  .header-contact{grid-column:1;grid-row:2;justify-self:start !important;font-size:.62rem !important}
  nav{grid-column:1;grid-row:3;padding-top:2px !important}
  nav a{font-size:.67rem !important}
}


/* ==========================================================
   Compact sticky header + balanced logo-palette service colors
   ========================================================== */

/* Keep visible element sizes, remove only excess vertical whitespace. */
header{
  padding:3px 0 !important;
  min-height:0 !important;
}
.topbar{
  row-gap:2px !important;
}
/* logo-full.png was cropped to its actual artwork bounds; width is compensated
   so the visible logo remains the same size as before. */
.logo{max-width:min(262px,28.6vw) !important}
.logo img{display:block !important}

/* More balanced service-heading palette: graphite, green, lime and cyan;
   blue is retained only as a minor brand accent. */
.services-page .service h3{
  background:none !important;
  -webkit-background-clip:border-box !important;
  background-clip:border-box !important;
  -webkit-text-fill-color:currentColor !important;
  color:var(--ink) !important;
}
.services-page .service:nth-child(1) h3{
  color:#344255 !important;
}
.services-page .service:nth-child(2) h3{
  background:linear-gradient(92deg,#66727d 0%,#2e8f87 45%,#83b92a 78%,#b2e51b 100%) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
}
.services-page .service:nth-child(3) h3{
  color:#6d982b !important;
}
.services-page .service:nth-child(4) h3{
  background:linear-gradient(92deg,#a8d91d 0%,#68a934 40%,#70808a 76%,#18a9c4 100%) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
}
.services-page .service:nth-child(1) .n{color:#7d8994 !important}
.services-page .service:nth-child(2) .n{color:#73a62e !important}
.services-page .service:nth-child(3) .n{color:#a4cf21 !important}
.services-page .service:nth-child(4) .n{color:#74828c !important}
.services-page .tag{
  border-color:rgba(111,143,76,.22) !important;
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(240,247,233,.78)) !important;
}

@media(max-width:900px){
  header{padding:3px 0 !important}
  .topbar{gap:2px 14px !important}
  .logo{max-width:clamp(129px,28.6vw,181px) !important}
  nav{padding:0 !important}
}
@media(max-width:620px){
  .topbar{gap:1px 10px !important}
  .logo{max-width:138px !important}
  nav{padding:0 !important}
}
@media(max-width:420px){
  .topbar{row-gap:1px !important}
  .logo{max-width:143px !important}
  nav{padding-top:0 !important;padding-bottom:0 !important}
}


/* Requested refinements: service titles + contact page */
/* Match the inviting gradient treatment used for "Fachberatung" */
.services .service h3{
  background:linear-gradient(96deg,#1cc9ee 0%,#1b57e8 34%,#3fae72 68%,#b5ef1d 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* Contact page: dark logo blue headline, more open intro copy */
body:has(.contact-grid) .page-hero h1{
  color:#0f1b3d;
  background:none;
  -webkit-background-clip:initial;
  background-clip:initial;
}
body:has(.contact-grid) .contact-big{
  max-width:15.5ch;
  font-size:clamp(2rem,3.7vw,4rem);
  line-height:1.16;
  letter-spacing:-.035em;
  font-weight:650;
}
@media(max-width:900px){
  body:has(.contact-grid) .contact-big{max-width:24ch;line-height:1.18}
}

.contact-page .page-hero h1{color:#0f1b3d!important;background:none!important;-webkit-text-fill-color:initial!important}
.contact-page .contact-big{max-width:15.5ch;font-size:clamp(2rem,3.7vw,4rem);line-height:1.16;letter-spacing:-.035em;font-weight:650}
@media(max-width:900px){.contact-page .contact-big{max-width:24ch;line-height:1.18}}


/* Final requested blue treatment */
.services-page .service h3,
.services .service h3{
  background:linear-gradient(90deg,#1237ff 0%,#00c0fd 100%) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
}
.contact-page .page-hero h1,
body:has(.contact-grid) .page-hero h1{
  color:#1237ff !important;
  background:none !important;
  -webkit-background-clip:initial !important;
  background-clip:initial !important;
  -webkit-text-fill-color:#1237ff !important;
}

/* FINAL: Leistungsseite – einheitliche Zahlen und identischer Blauverlauf */
.services-page .service .n{
  color:#7d8994 !important;
  background:none !important;
  -webkit-text-fill-color:#7d8994 !important;
}
.services-page .service h3,
.services-page .service:nth-child(1) h3,
.services-page .service:nth-child(2) h3,
.services-page .service:nth-child(3) h3,
.services-page .service:nth-child(4) h3{
  background:linear-gradient(90deg,#1237ff 0%,#00c0fd 100%) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
}

/* Kontakt headline color */
body:not(.home-page) .page-hero h1{ }
body .page-hero h1.contact-headline{color:#2ed642 !important;}


/* FINAL MOBILE / TABLET RESPONSIVE CORRECTIONS */
/* iPhone: reduce only the visible logo size; keep menu/email sizes unchanged. */
@media (max-width:620px){
  header .logo{max-width:112px !important;width:112px !important}
  header .logo img{width:100% !important;height:auto !important}
}
@media (max-width:420px){
  header .logo{max-width:102px !important;width:102px !important}
}

/* Services: keep headings readable and give long words enough horizontal room. */
@media (max-width:900px){
  .services-page .services .service{
    grid-template-columns:44px minmax(0,1fr) !important;
    column-gap:14px !important;
    row-gap:12px !important;
    padding:24px 0 28px !important;
  }
  .services-page .services .service .n{
    grid-column:1 !important;
    grid-row:1 !important;
    align-self:start !important;
    padding-top:.26rem !important;
    font-size:.95rem !important;
    line-height:1.2 !important;
  }
  .services-page .services .service h3{
    grid-column:2 !important;
    grid-row:1 !important;
    min-width:0 !important;
    max-width:100% !important;
    font-size:clamp(1.8rem,5.4vw,2.45rem) !important;
    line-height:1.04 !important;
    letter-spacing:-.035em !important;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
    hyphens:none !important;
  }
  .services-page .services .service > div:last-child{
    grid-column:2 !important;
    grid-row:2 !important;
    min-width:0 !important;
  }
  .services-page .services .service p{
    max-width:100% !important;
    font-size:1rem !important;
    line-height:1.58 !important;
  }
}

/* Phones: use the full content width; number becomes a quiet label above the heading. */
@media (max-width:620px){
  .services-page .services .service{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:7px !important;
    padding:22px 0 26px !important;
  }
  .services-page .services .service .n,
  .services-page .services .service h3,
  .services-page .services .service > div:last-child{
    grid-column:1 !important;
    grid-row:auto !important;
  }
  .services-page .services .service .n{
    padding-top:0 !important;
    margin-bottom:1px !important;
    font-size:.84rem !important;
  }
  .services-page .services .service h3{
    font-size:clamp(1.5rem,6.2vw,1.9rem) !important;
    line-height:1.06 !important;
    letter-spacing:-.03em !important;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
    hyphens:none !important;
  }
  .services-page .services .service p{
    font-size:.96rem !important;
    line-height:1.56 !important;
  }
  .services-page .tags{margin-top:12px !important;gap:6px !important}
  .services-page .tag{font-size:.68rem !important;padding:5px 8px !important}
}

/* Very narrow phones: keep Chemikaliensicherheit readable without character-level wrapping. */
@media (max-width:380px){
  .services-page .services .service h3{
    font-size:1.42rem !important;
    letter-spacing:-.035em !important;
  }
}


/* Narrow-screen overflow hardening found during cross-viewport checks. */
.cred-card{min-width:0}
.contact-grid>*{min-width:0}
@media(max-width:420px){
  .cred-card .big{font-size:clamp(2.15rem,10vw,3rem) !important;letter-spacing:-.045em !important}
  .contact-page .contact-grid{padding-left:18px !important;padding-right:18px !important}
  .contact-page .contact-item strong{overflow-wrap:anywhere;word-break:normal}
}
