/* =========================================================
   neherto EDV-Dienstleistungen — Stylesheet
   Palette sampled from the neherto logo:
   Deep Signal Blue #009FE3 · Bright Cyan #0ABBEF · Sky #82D0F6
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root{
  --ink:        #1a1a18;
  --ink-soft:   #4a4a46;
  --paper:      #faf9f6;
  --white:      #ffffff;
  --line:       #e7e5df;

  --blue-deep:  #009fe3;
  --blue-deep-dark: #0079ac;
  --blue-bright:#0abbef;
  --blue-sky:   #82d0f6;
  --blue-sky-tint: #eaf7fd;

  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;

  --container: 1160px;
  --radius: 4px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 84px; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1,h2,h3,h4{
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; }
p:last-child{ margin-bottom: 0; }
ul{ margin:0; padding:0; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- signature tri-bar, echoes the three logo colours --- */
.tribar{
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.tribar span{
  width: 28px;
  height: 6px;
  display: block;
}
.tribar span:nth-child(1){ background: var(--blue-deep); }
.tribar span:nth-child(2){ background: var(--blue-bright); }
.tribar span:nth-child(3){ background: var(--blue-sky); }

.eyebrow-block h2{
  font-size: clamp(2rem, 3.2vw, 2.75rem);
}

/* --- buttons --- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover{ background: var(--blue-deep-dark); }
.btn-ghost{
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover{ border-color: var(--blue-deep); color: var(--blue-deep-dark); }
.btn-on-blue{
  border-color: var(--white);
  color: var(--white);
}
.btn-on-blue:hover{ background: var(--white); color: var(--blue-deep-dark); }
.btn-light{
  background: var(--white);
  color: var(--blue-deep-dark);
}
.btn-light:hover{ background: var(--ink); color: var(--white); }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand{ display:flex; align-items:center; }
.brand img{ height: auto; width: 130px; min-width: 280px; display:block; }
.main-nav ul{
  display: flex;
  gap: 32px;
  list-style: none;
}
.main-nav a{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.10rem;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover{ border-bottom-color: var(--blue-deep); }
.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{
  display:block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* =========================================================
   Hero — full-bleed photo background, fills the screen
   ========================================================= */
.hero{
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
}
.hero-bg{
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    /* drop your own photo in as assets/img/hero.png (min. 1920×1080) — */
    /* it layers on top of this gradient automatically, no CSS edits needed */
    url('assets/img/hero.png') center 38% / cover no-repeat,
    radial-gradient(1100px 700px at 82% 18%, rgba(10,187,239,0.55), transparent 60%),
    radial-gradient(900px 650px at 12% 88%, rgba(0,159,227,0.5), transparent 55%),
    linear-gradient(155deg, #0b1f2b 0%, #0e2a3d 45%, #123650 100%);
  background-blend-mode: normal, screen, screen, normal;
}
.hero-bg::after{
  content:'';
  position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mix-blend-mode: overlay;
}
.hero-scrim{
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,
    rgba(10,14,18,0.86) 0%,
    rgba(10,14,18,0.66) 28%,
    rgba(10,14,18,0.28) 55%,
    rgba(10,14,18,0.08) 78%);
}
.hero-mark{
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 340px;
  height: 340px;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
}
.hero-content{
  padding: 20px 0 190px;
  max-width: 640px;
  position: relative;
  left: 0;
  top: 0;
}
.hero-kicker{
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue-sky);
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.hero h1{
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 18px;
  color: var(--white);
}
.hero h1 em{
  font-style: normal;
  color: var(--blue-bright);
}
.hero-lede{
  font-size: 1.15rem;
  color: #dfe7ec;
  max-width: 46ch;
  margin-bottom: 24px;
}
.hero .tribar{ margin-bottom: 30px; }
.hero-actions{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   Section basics — each major area fills at least one screen
   ========================================================= */
section{ padding: 88px 0; }
.hero,
#ueber-mich,
#leistungen,
.contact{
  min-height: 100vh;
  min-height: 100svh;
}
#ueber-mich,
#leistungen,
.contact{
  display: flex;
  align-items: center;
}
#ueber-mich > .wrap,
#leistungen > .wrap,
.contact > .wrap{ width: 100%; }
.section-alt{ background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* --- About / Über mich --- */
.about-top{
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}
.about-photo{
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(155deg, var(--blue-sky-tint), var(--white));
  border: 1px solid var(--line);
}
.about-photo img{ width:100%; height:100%; object-fit: cover; }
.photo-placeholder{
  width:100%; height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap: 14px;
  color: var(--blue-deep-dark);
  text-align:center;
  padding: 24px;
}
.photo-placeholder svg{ width: 64px; height:64px; }
.photo-placeholder span{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.about-copy h3{
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.bio-list{
  list-style: none;
  display: grid;
  gap: 14px;
}
.bio-list li{
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.bio-list li:last-child{ border-bottom: none; padding-bottom: 0; }
.bio-list li::before{
  content: '';
  flex: none;
  width: 8px; height: 8px;
  margin-top: 8px;
  background: var(--blue-bright);
}
.bio-list strong{ color: var(--ink); font-weight: 600; }

.trait-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.trait{
  background: var(--white);
  padding: 34px 30px;
}
.trait svg{ width: 34px; height: 34px; color: var(--blue-deep); margin-bottom: 18px; }
.trait h4{ font-size: 1.15rem; margin-bottom: 10px; }
.trait p{ color: var(--ink-soft); font-size: 0.98rem; }

/* --- Services / Dienstleistungen --- */
.services-head{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.ms-partner{
  display:flex;
  align-items:center;
  gap: 18px;
  background: var(--ink);
  color: var(--white);
  padding: 22px 28px;
  border-radius: var(--radius);
}
.ms-partner svg{ width:34px; height:34px; flex:none; }
.ms-partner strong{ font-family: var(--font-head); display:block; font-size:1.05rem; }
.ms-partner span{ color: #cfcfc9; font-size: 0.92rem; }

.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-wide{
grid-column: 1 / -1;
}

.service{
  background: var(--blue-deep);
  color: var(--white);
  padding: 32px 28px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  position: relative;
}
.service:nth-child(3n+2){ background: var(--blue-bright); }
.service:nth-child(3n+3){ background: var(--blue-deep-dark); }
.service svg{ width: 30px; height: 30px; }
.service h4{ font-size: 1.2rem; }
.service p{ font-size: 0.92rem; color: rgba(255,255,255,0.85); }

/* --- Contact --- */
.contact{
  background: var(--blue-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contact::before{
  content:'';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}
.contact .wrap{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-card{
  background: var(--white);
  color: var(--ink);
  padding: 40px;
  border-radius: var(--radius);
}
.field{ margin-bottom: 20px; }
.field label{
  display:block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.field label .req{ color: var(--blue-deep-dark); }
.field input, .field textarea{
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
}
.field input:focus, .field textarea:focus{
  outline: none;
  border-color: var(--blue-deep);
  background: var(--white);
}
.field textarea{ resize: vertical; min-height: 120px; }
.hp-field{ position:absolute; left:-9999px; top:-9999px; }
.form-note{ font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }
.form-status{
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}
.form-status.ok{ display:block; background:#e7f8ee; color:#1e6b3f; }
.form-status.err{ display:block; background:#fbe9e7; color:#a83224; }

.contact-info h2{ color: var(--white); margin-bottom: 34px; }
.info-block{ margin-bottom: 30px; }
.info-block h3{
  font-size: 1rem;
  text-transform: none;
  color: var(--blue-sky);
  margin-bottom: 8px;
}
.info-block a, .info-block p{
  color: var(--white);
  font-size: 1.15rem;
  text-decoration: none;
}
.info-block a:hover{ text-decoration: underline; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background: var(--ink);
  color: #c9c9c3;
  padding: 28px 0;
  font-size: 0.9rem;
}
.site-footer .wrap{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a{ color: #c9c9c3; text-decoration: none; }
.site-footer a:hover{ color: var(--white); text-decoration: underline; }
.footer-links{ display:flex; gap: 22px; list-style:none; }

/* =========================================================
   Simple inner page (Impressum)
   ========================================================= */
.page-head{
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.page-head h1{ font-size: clamp(2rem, 4vw, 2.75rem); }
.legal{
  padding: 56px 0 100px;
}
.legal h2{
  font-size: 1.25rem;
  margin: 40px 0 14px;
}
.legal h2:first-child{ margin-top: 0; }
.legal p, .legal li{ color: var(--ink-soft); }
.legal a{ color: var(--blue-deep-dark); }
.back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-head);
  font-weight:600;
  text-decoration:none;
  color: var(--blue-deep-dark);
  margin-bottom: 18px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; }
  .hero-art svg{ max-width: 300px; }
  .about-top{ grid-template-columns: 1fr; }
  .about-photo{ max-width: 320px; }
  .trait-grid{ grid-template-columns: 1fr; }
  .service-grid{ grid-template-columns: 1fr 1fr; }
  .contact .wrap{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .main-nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.open{ display:block; }
  .main-nav ul{ flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav a{ display:block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle{ display:block; }
  .service-grid{ grid-template-columns: 1fr; }
  .services-head{ align-items: flex-start; }
  .ms-partner{ width: 100%; }
  section{ padding: 60px 0; }
  .contact-card{ padding: 26px; }
}

/* =========================================================
   Hero positioning + entrance animation, responsive fix
   ========================================================= */

/* Desktop: preserve the original deliberate hero placement */
@media (min-width: 1367px){
  .hero-content{
    left: -320px;
    top: -180px;
  }
}

/* Tablet portrait: centered safely inside the content area */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: portrait){
  .hero{
    align-items: center;
  }
  .hero-content{
    left: 0;
    top: 0;
    max-width: 640px;
    padding: 48px 24px 64px;
  }
}

/* Tablet / phone landscape */
@media (max-width: 1024px) and (orientation: landscape){
  .hero{
    align-items: center;
  }
  .hero-content{
    left: 0;
    top: 0;
    max-width: 640px;
    padding: 36px 24px 46px;
  }
  .hero h1{
    font-size: clamp(2rem, 4.6vw, 3rem);
    margin-bottom: 12px;
  }
  .hero-kicker{ margin-bottom: 10px; }
  .hero-lede{
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .hero .tribar{ margin-bottom: 20px; }
  .hero-actions{ gap: 12px; }
}

/* iPad landscape: includes 1024, 1080, 1180 and 1366 CSS-pixel widths */
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape){
  .hero{
    align-items: center;
  }
  .hero-content{
    left: 0;
    top: 0;
    width: 100%;
    max-width: 640px;
    margin-left: clamp(48px, 7vw, 110px);
    margin-right: 0;
    padding: clamp(70px, 10vh, 110px) 24px 40px;
  }
  .hero h1{
    font-size: clamp(2.3rem, 4.2vw, 3.35rem);
  }
}
/* Phone portrait: restore the previously working, natural position */
@media (max-width: 640px) and (orientation: portrait){
  .hero{
    align-items: center;
  }
  .hero-content{
    left: 0;
    top: 0;
    width: 100%;
    max-width: none;
    padding: 48px 24px 56px;
  }
  .hero h1{
    font-size: clamp(2.15rem, 10vw, 3rem);
  }
  .hero-lede{
    font-size: 1rem;
  }
}

/* Very short landscape screens, e.g. iPhone landscape */
@media (max-height: 500px) and (orientation: landscape){
  .hero-content{
    padding: 22px 24px 26px;
    max-width: 600px;
  }
  .hero h1{
    font-size: clamp(1.75rem, 4.2vw, 2.5rem);
    margin-bottom: 9px;
  }
  .hero-kicker{ margin-bottom: 7px; }
  .hero-lede{
    font-size: .92rem;
    line-height: 1.35;
    margin-bottom: 10px;
  }
  .hero .tribar{ margin-bottom: 12px; }
  .btn{ padding: 9px 16px; }
}

/* CSS-only fly-up: does not require JavaScript */
@keyframes heroFlyUp{
  from{
    opacity: 0;
    transform: translateY(36px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content{
  animation: heroFlyUp .9s cubic-bezier(.22,.61,.36,1) .08s both;
}

@media (prefers-reduced-motion: reduce){
  .hero-content{
    animation: none;
    opacity: 1;
    transform: none;
  }
}
