/* ============================================================
   Lokale Schriften
   ------------------------------------------------------------
   Die Dateien liegen in /fonts und werden vom eigenen Server
   ausgeliefert. Kein Aufruf an Google, keine IP-Uebertragung.

   Fehlen die Dateien, greifen die Systemschriften aus den
   font-family-Angaben weiter unten. Die Seite bleibt also
   in jedem Fall benutzbar.
   ============================================================ */

@font-face{
  font-family:'Space Grotesk'; font-style:normal; font-weight:600; font-display:swap;
  src:url('/fonts/space-grotesk-600.woff2') format('woff2');
}
@font-face{
  font-family:'Space Grotesk'; font-style:normal; font-weight:700; font-display:swap;
  src:url('/fonts/space-grotesk-700.woff2') format('woff2');
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src:url('/fonts/inter-400.woff2') format('woff2');
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap;
  src:url('/fonts/inter-500.woff2') format('woff2');
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap;
  src:url('/fonts/inter-600.woff2') format('woff2');
}
@font-face{
  font-family:'IBM Plex Mono'; font-style:normal; font-weight:500; font-display:swap;
  src:url('/fonts/plex-mono-500.woff2') format('woff2');
}

/* ============================================================
   sh-it-zelger.de  —  Stylesheet
   Wird von allen Seiten geteilt.
   ============================================================ */

:root{
  --ink:#0A0A0A;
  --ink-2:#1C1C1C;
  --white:#FFFFFF;
  --off:#F2F2F0;
  --off-hover:#E4E3DF;
  --text:#111111;
  --gray:#5A5A5A;
  --line-dark:rgba(255,255,255,0.16);
  --line-light:rgba(10,10,10,0.12);
  --bounce:cubic-bezier(.34,1.56,.64,1);
  --maxw:1180px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  color:var(--text);
  background:var(--white);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:'Space Grotesk',system-ui,sans-serif; letter-spacing:-0.01em;}
.mono{font-family:'IBM Plex Mono',ui-monospace,monospace; letter-spacing:0.06em; text-transform:uppercase;}
a{color:inherit; text-decoration:none;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 32px;}
img{max-width:100%; display:block;}

/* Sichtbarer Fokus – wichtig fuer Tastaturbedienung */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid currentColor; outline-offset:3px;
}

/* Sprungmarke fuer Screenreader */
.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--white); color:var(--ink);
  padding:12px 20px; z-index:100;
}
.skip-link:focus{left:0;}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important; scroll-behavior:auto !important;}
}

/* ---------- NAVIGATION ---------- */
header.nav{
  position:fixed; top:0; left:0; right:0; z-index:50; height:133px;
  background:rgba(10,10,10,.78); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-dark);
}
.nav-inner{
  max-width:var(--maxw); margin:0 auto; padding:0 32px; height:100%;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{
  display:flex; align-items:center; gap:10px; height:170%;
  color:var(--white); font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:1.05rem;
}
.brand img{
  height:100%; width:auto; max-width:340px; display:block;
  transition:transform .25s var(--bounce), opacity .2s ease;
}
.brand:hover img{transform:scale(1.04); opacity:.9;}

/* Auf kleinen Bildschirmen etwas kleiner */
@media (max-width:600px){
  header.nav{height:113px;}
  .brand img{max-width:260px;}
}

/* Danke-Seite */
.thanks-logo{display:block; margin-bottom:34px;}
.thanks-logo img{height:56px; width:auto; max-width:240px;}

.nav-links{display:flex; gap:32px; align-items:center;}
.nav-links a{color:var(--white); opacity:.75; font-size:.92rem; font-weight:500; transition:opacity .2s;}
.nav-links a:hover{opacity:1;}
.nav-links .cta{
  background:var(--white); color:var(--ink); padding:9px 18px; border-radius:999px;
  font-weight:600; opacity:1; transition:transform .25s var(--bounce), background .2s ease;
}
.nav-links .cta:hover{background:var(--off); transform:translateY(-2px) rotate(-2deg);}
.nav-toggle{display:none; color:var(--white); background:none; border:none; font-size:1.5rem; cursor:pointer;}

@media (max-width:860px){
  .nav-links{
    position:fixed; top:64px; left:0; right:0; bottom:0; background:var(--ink);
    flex-direction:column; justify-content:flex-start; padding:40px 32px; gap:24px;
    transform:translateX(100%); transition:transform .3s ease; align-items:flex-start;
  }
  .nav-links.open{transform:translateX(0);}
  .nav-toggle{display:block;}
}

/* ---------- HERO ---------- */
.hero{
  background:linear-gradient(180deg,var(--ink) 0%,var(--ink-2) 78%,var(--off) 100%);
  padding:150px 0 0; position:relative; overflow:hidden;
}
.hero-inner{
  max-width:var(--maxw); margin:0 auto; padding:0 32px 60px;
  display:flex; flex-direction:column; align-items:flex-start;
}
.eyebrow{
  color:rgba(255,255,255,.7); font-size:.78rem; margin-bottom:22px;
  display:flex; align-items:center; gap:10px;
}
.eyebrow::before{content:''; width:26px; height:1px; background:rgba(255,255,255,.5);}
.hero h1{
  color:var(--white); font-size:clamp(2.2rem,5vw,3.6rem); font-weight:700;
  max-width:760px; line-height:1.08;
}
.hero p.lede{color:rgba(255,255,255,.72); font-size:1.1rem; max-width:560px; margin-top:24px;}
.hero-ctas{display:flex; gap:16px; margin-top:36px; flex-wrap:wrap;}

.floaters{position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0;}
.floater{
  position:absolute; border-radius:50%; background:rgba(255,255,255,.5);
  animation:float 7s ease-in-out infinite;
  transition:transform .5s ease-out;
}
.f1{width:6px;height:6px;top:18%;left:8%;}
.f2{width:10px;height:10px;top:32%;left:88%;animation-delay:1.2s;background:rgba(255,255,255,.3);}
.f3{width:4px;height:4px;top:60%;left:20%;animation-delay:2.4s;}
.f4{width:7px;height:7px;top:12%;left:65%;animation-delay:3.1s;background:rgba(255,255,255,.35);}
.f5{width:5px;height:5px;top:48%;left:45%;animation-delay:1.7s;}
@keyframes float{
  0%,100%{transform:translate(var(--dx,0),var(--dy,0));}
  50%{transform:translate(calc(var(--dx,0) + 10px),calc(var(--dy,0) - 22px));}
}
.hero-inner,.horizon{position:relative; z-index:1;}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:14px 26px;
  border-radius:999px; font-weight:600; font-size:.95rem; border:none; cursor:pointer;
  font-family:inherit;
  transition:transform .25s var(--bounce), background .2s ease, border-color .2s ease;
}
.btn .arrow{display:inline-block; transition:transform .25s var(--bounce);}
.btn:hover .arrow{transform:translateX(5px);}
.btn-primary{background:var(--white); color:var(--ink);}
.btn-primary:hover{background:var(--off); transform:translateY(-2px) rotate(-1deg);}
.btn-ghost{border:1px solid rgba(255,255,255,.35); color:var(--white); background:transparent;}
.btn-ghost:hover{border-color:var(--white); background:rgba(255,255,255,.06); transform:translateY(-2px) rotate(1deg);}
.btn-dark{background:var(--ink); color:var(--white);}
.btn-dark:hover{background:var(--ink-2); transform:translateY(-2px) rotate(-1deg);}

/* ---------- HORIZONT-LINIE ---------- */
.horizon{position:relative; margin-top:80px; width:100%; height:110px;}
.horizon svg{width:100%; height:100%; display:block;}
.horizon-path{
  fill:none; stroke:rgba(255,255,255,.32); stroke-width:1.4;
  stroke-dasharray:6 7; animation:march 3s linear infinite;
}
@keyframes march{to{stroke-dashoffset:-26;}}
.horizon-node{fill:var(--white); transform-origin:center; transform-box:fill-box; animation:bob 2.4s ease-in-out infinite;}
.horizon-node-glow{fill:var(--white); opacity:.35; animation:pulse 2.6s ease-in-out infinite;}
.n1{animation-delay:0s;}.n2{animation-delay:.3s;}.n3{animation-delay:.6s;}
.n4{animation-delay:.9s;}.n5{animation-delay:1.2s;}
@keyframes pulse{0%,100%{opacity:.15;transform:scale(1);}50%{opacity:.5;transform:scale(1.7);}}
@keyframes bob{0%,100%{transform:translateY(0);}50%{transform:translateY(-4px);}}
.horizon-labels{display:flex; justify-content:space-between; margin-top:-6px; padding:0 2%;}
.horizon-labels span{
  color:rgba(255,255,255,.5); font-size:.7rem; display:inline-block;
  transition:transform .2s ease, color .2s ease;
}
.horizon-labels span:hover{color:rgba(255,255,255,.95); transform:translateY(-3px) rotate(-4deg);}

/* ---------- ABSCHNITTE ---------- */
section{padding:100px 0;}
.section-head{max-width:640px; margin-bottom:56px;}
.section-head .mono{color:var(--gray); font-size:.76rem; margin-bottom:14px; display:block;}
.section-head h2{font-size:clamp(1.7rem,3vw,2.4rem); font-weight:600;}
.section-head p{margin-top:14px; color:var(--gray); font-size:1.02rem;}

.trust-head{display:flex; align-items:center; gap:28px;}
.region-badge{flex-shrink:0; transition:transform .3s var(--bounce);}
.region-badge path,.region-badge circle{fill:none; stroke:var(--ink); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;}
.region-badge-wave{opacity:.35; animation:region-pulse 2.6s ease-in-out infinite;}
.region-badge-wave2{animation-delay:.4s;}
.trust-head:hover .region-badge{transform:rotate(-6deg) scale(1.06);}
@keyframes region-pulse{0%,100%{opacity:.2;}50%{opacity:.6;}}
@media (max-width:600px){.trust-head{gap:18px;} .region-badge{width:48px; height:48px;}}

/* ---------- LEISTUNGEN ---------- */
.services{background:var(--off);}
.service-grid{
  display:grid; grid-template-columns:repeat(3,1fr); grid-auto-flow:dense; gap:1px;
  background:var(--line-light); border:1px solid var(--line-light);
}
.service-card{
  background:var(--off); padding:36px 32px;
  transition:background .25s ease, transform .3s var(--bounce), box-shadow .3s ease;
}
.service-card:hover{
  background:var(--off-hover); transform:translateY(-4px) rotate(-.6deg);
  box-shadow:0 14px 28px rgba(0,0,0,.1); position:relative; z-index:2;
}
.service-card:nth-child(even):hover{transform:translateY(-4px) rotate(.6deg);}
.service-top{display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:22px;}
.service-code{
  font-size:.68rem; color:var(--ink); border:1px solid var(--ink);
  width:34px; height:34px; flex-shrink:0; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition:transform .4s var(--bounce), background .2s ease, color .2s ease;
}
.service-card:hover .service-code{transform:rotate(180deg); background:var(--ink); color:var(--white);}
.service-card h3{font-size:1.15rem; font-weight:600; margin-bottom:10px;}
.service-card p{color:var(--gray); font-size:.93rem; margin-bottom:16px;}
.service-link{
  font-size:.85rem; font-weight:600; color:var(--ink);
  border-bottom:1px solid var(--ink); display:inline-block; transition:transform .2s ease, opacity .2s ease;
}
.service-link:hover{opacity:.6; transform:translateX(4px);}
@media (max-width:860px){.service-grid{grid-template-columns:1fr;}}

.service-more{
  display:block; background:none; border:none; padding:0; margin-top:10px;
  font-family:inherit; cursor:pointer; text-align:left;
}

/* ---------- SMARTHOME-DETAIL (ausklappbar) ---------- */
.smarthome-detail-wrap{
  grid-column:1/-1; overflow:hidden; max-height:0;
  transition:max-height .45s var(--bounce);
}
.smarthome-detail{
  background:var(--white); border:1px solid var(--line-light);
  border-top:none; padding:0 40px;
}
.smarthome-detail-wrap.open .smarthome-detail{padding:40px;}
.smarthome-detail h3{font-size:1.3rem; font-weight:600; margin-bottom:14px;}
.smarthome-detail > p{color:var(--gray); max-width:680px; margin-bottom:28px;}
.smarthome-benefits{
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin-bottom:28px;
}
.smarthome-benefit .mono{color:var(--ink); font-size:.72rem; display:block; margin-bottom:8px;}
.smarthome-benefit p{color:var(--gray); font-size:.9rem;}
.smarthome-cost{
  color:var(--text); background:var(--off); border-radius:12px; padding:18px 22px;
  max-width:680px; margin-bottom:24px; font-size:.92rem;
}
.smarthome-cost strong{display:block; margin-bottom:4px;}
@media (max-width:860px){.smarthome-benefits{grid-template-columns:1fr 1fr;}}
@media (max-width:600px){
  .smarthome-detail-wrap.open .smarthome-detail{padding:28px 20px;}
  .smarthome-benefits{grid-template-columns:1fr;}
}

/* ---------- WARUM WIR ---------- */
.trust{background:var(--white);}
.trust-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:40px;}
.trust-item{transition:transform .3s var(--bounce);}
.trust-item:hover{transform:translateY(-4px);}
.trust-item .mono{
  color:var(--gray); font-size:.72rem; display:inline-block; margin-bottom:16px;
  transition:transform .3s ease, color .2s ease;
}
.trust-item:hover .mono{color:var(--ink); transform:rotate(-2deg);}
.trust-item h3{font-size:1.1rem; margin-bottom:10px; font-weight:600;}
.trust-item p{color:var(--gray); font-size:.93rem;}
@media (max-width:860px){.trust-grid{grid-template-columns:1fr; gap:36px;}}

/* ---------- UEBER MICH ---------- */
.about-me{background:var(--off);}
.about-me-inner{display:flex; align-items:flex-start; gap:56px;}
.about-me-photo{
  width:190px; height:190px; border-radius:50%; flex-shrink:0;
  box-shadow:0 14px 34px rgba(0,0,0,.14); transition:transform .3s var(--bounce);
}
.about-me-photo:hover{transform:rotate(-3deg) scale(1.03);}
.about-me-text{max-width:680px;}
.about-me-text .mono{color:var(--gray); font-size:.76rem; display:block; margin-bottom:14px;}
.about-me-text h2{font-size:clamp(1.5rem,2.8vw,2.1rem); font-weight:600; margin-bottom:20px; line-height:1.2;}
.about-me-text p{color:var(--gray); margin-bottom:16px; font-size:1rem;}
.skill-tags{display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; list-style:none;}
.skill-tags li{
  font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:.72rem; letter-spacing:.04em;
  text-transform:uppercase; color:var(--ink); border:1px solid var(--line-light);
  border-radius:999px; padding:7px 14px; transition:transform .25s var(--bounce), background .2s ease;
}
.skill-tags li:hover{background:var(--ink); color:var(--white); transform:translateY(-2px) rotate(-2deg);}
@media (max-width:700px){
  .about-me-inner{flex-direction:column; align-items:center; text-align:center; gap:28px;}
  .about-me-photo{width:150px; height:150px;}
  .skill-tags{justify-content:center;}
}

/* ---------- KONTAKT ---------- */
.contact{background:var(--ink); color:var(--white);}
.contact-inner{display:grid; grid-template-columns:1fr 1fr; gap:64px;}
.contact-info .mono{color:rgba(255,255,255,.6); font-size:.76rem; display:block; margin-bottom:16px;}
.contact-info h2{font-size:clamp(1.6rem,3vw,2.2rem); margin-bottom:20px;}
.contact-info p{color:rgba(255,255,255,.68); margin-bottom:28px;}
.contact-detail{margin-bottom:14px; font-size:.95rem; color:rgba(255,255,255,.85);}
.contact-detail strong{
  color:var(--white); display:block; font-size:.75rem; text-transform:uppercase;
  letter-spacing:.06em; margin-bottom:3px; font-family:'IBM Plex Mono',monospace; font-weight:500;
}
.contact-detail a:hover{text-decoration:underline;}

/* Kontaktzeile mit Symbol */
.contact-detail{display:flex; gap:14px; align-items:flex-start;}
.contact-detail .ico{
  flex-shrink:0; width:18px; height:18px; min-width:18px; max-width:18px;
  height:18px; max-height:18px; margin-top:4px;
  stroke:var(--white); fill:none;
  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
  transition:transform .3s var(--bounce);
}
.contact-detail:hover .ico{transform:translateY(-2px);}
.contact-detail .txt{min-width:0;}

/* ---------- KARTE (Zwei-Klick-Loesung) ---------- */
.map-block{margin-top:36px;}
.map-block > .mono{
  color:rgba(255,255,255,.6); font-size:.76rem; display:block; margin-bottom:12px;
}
.map-holder{
  position:relative; width:100%; aspect-ratio:16/10; border-radius:3px;
  overflow:hidden; border:1px solid rgba(255,255,255,.25); background:var(--ink-2);
}
.map-holder iframe{width:100%; height:100%; border:0; display:block;}

.map-consent{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:14px; text-align:center;
  padding:28px; background:var(--ink-2); cursor:pointer;
  border:none; width:100%; font-family:inherit; color:inherit;
  transition:background .2s ease;
}
.map-consent:hover{background:#252525;}
.map-consent svg{
  width:32px; height:32px; max-width:32px; max-height:32px; flex-shrink:0; stroke:rgba(255,255,255,.55);
  fill:none; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round;
}
.map-consent .head{color:var(--white); font-weight:600; font-size:.98rem;}
.map-consent .sub{color:rgba(255,255,255,.55); font-size:.83rem; max-width:340px; line-height:1.5;}
.map-consent .act{
  color:var(--white); font-size:.85rem; font-weight:600;
  border-bottom:1px solid var(--white); padding-bottom:2px;
}
.map-links{
  display:flex; gap:20px; margin-top:12px; flex-wrap:wrap;
}
.map-links a{font-size:.83rem; color:rgba(255,255,255,.6); border-bottom:1px solid transparent;}
.map-links a:hover{color:var(--white); border-color:var(--white);}

.contact-form{display:flex; flex-direction:column; gap:14px;}
.contact-form[hidden]{display:none;}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.contact-form label{font-size:.8rem; color:rgba(255,255,255,.7); margin-bottom:5px; display:block;}
input,textarea{
  background:transparent; border:1px solid rgba(255,255,255,.3); color:var(--white);
  padding:13px 14px; font-family:'Inter',sans-serif; font-size:.92rem; border-radius:2px; width:100%;
}
input::placeholder,textarea::placeholder{color:rgba(255,255,255,.4);}
textarea{min-height:120px; resize:vertical;}
.consent{display:flex; gap:10px; align-items:flex-start; font-size:.82rem; color:rgba(255,255,255,.7);}
.consent input[type=checkbox]{width:auto; margin-top:3px; flex-shrink:0;}
.consent a{text-decoration:underline;}
.hp{position:absolute; left:-9999px;}

.form-error{
  color:#FFB4B4; font-size:.85rem; background:rgba(255,90,90,.1);
  border:1px solid rgba(255,90,90,.3); border-radius:6px; padding:12px 14px;
}

.toast{
  position:fixed; left:50%; bottom:28px; z-index:200; width:max-content; max-width:calc(100% - 48px);
  display:flex; align-items:center; gap:12px;
  background:var(--ink); color:var(--white); border:1px solid rgba(255,255,255,.15);
  border-radius:16px; padding:14px 20px; box-shadow:0 16px 40px rgba(0,0,0,.28);
  transform:translate(-50%, 16px); opacity:0; pointer-events:none;
  transition:transform .35s var(--bounce), opacity .3s ease;
}
.toast[hidden]{display:none;}
.toast.show{transform:translate(-50%, 0); opacity:1;}
.toast svg{
  flex-shrink:0; fill:none; stroke:var(--white); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
  border:1px solid rgba(255,255,255,.3); border-radius:50%; padding:5px;
}
.toast span{font-size:.88rem;}
@media (max-width:600px){.toast{padding:12px 16px; gap:10px;} .toast span{font-size:.82rem;}}

@media (max-width:860px){.contact-inner{grid-template-columns:1fr; gap:40px;}.form-row{grid-template-columns:1fr;}}

/* ---------- FOOTER ---------- */
footer{background:var(--ink); border-top:1px solid var(--line-dark); padding:32px 0;}
.footer-inner{display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; align-items:center;}
.footer-links{display:flex; gap:22px; flex-wrap:wrap;}
.footer-links a{color:rgba(255,255,255,.5); font-size:.82rem;}
.footer-links a:hover{color:var(--white);}
.footer-copy{color:rgba(255,255,255,.35); font-size:.8rem;}

/* ---------- SCROLL-REVEAL ---------- */
.reveal{opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease;}
.reveal.visible{opacity:1; transform:translateY(0);}

/* ---------- UNTERSEITEN (Rechtstexte) ---------- */
.legal{padding:160px 0 100px; max-width:800px; margin:0 auto;}
.legal h1{font-size:clamp(1.9rem,4vw,2.6rem); margin-bottom:32px;}
.legal h2{font-size:1.25rem; margin:40px 0 12px; font-weight:600;}
.legal h3{font-size:1.05rem; margin:28px 0 10px; font-weight:600;}
.legal p{margin-bottom:14px; color:#333;}
.legal ul{margin:0 0 16px 22px; color:#333;}
.legal li{margin-bottom:7px;}
.legal a{text-decoration:underline;}
.legal .back{
  display:inline-block; margin-top:48px; font-weight:600;
  border-bottom:1px solid var(--ink); transition:transform .2s ease;
}
.legal .back:hover{transform:translateX(-4px);}

/* ---------- DANKE-SEITE ---------- */
.thanks{
  min-height:100vh; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center;
  background:var(--ink); color:var(--white); padding:32px;
}
.thanks h1{font-size:clamp(1.8rem,4vw,2.6rem); margin-bottom:18px;}
.thanks p{color:rgba(255,255,255,.72); max-width:460px; margin-bottom:32px;}
