/* =========================================================
   Dr. Digi – Der Geräteflüsterer
   Modern, minimalistic, premium SaaS-style stylesheet
   ========================================================= */

:root {
  /* Brand colors */
  --blue:        #082D58;
  --blue-dark:   #061F3E;
  --teal:        #14B8AD;
  --teal-dark:   #0D958D;
  --teal-light:  #EAF9F7;
  --bg-light:    #F5F8FB;
  --text:        #142033;
  --text-soft:   #66758A;
  --white:       #FFFFFF;
  --line:        #E7EDF3;

  /* Design tokens */
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 26px;
  --shadow-xs: 0 1px 2px rgba(8,45,88,.04), 0 1px 3px rgba(8,45,88,.05);
  --shadow-sm: 0 4px 16px rgba(8,45,88,.06);
  --shadow-md: 0 12px 40px rgba(8,45,88,.09);
  --shadow-lg: 0 24px 70px rgba(8,45,88,.14);
  --container: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; font-weight: 800; color: var(--blue); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 104px 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-dark);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin: 18px 0 20px; }
.section-head p { color: var(--text-soft); font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 26px;
  border-radius: 999px; font-weight: 700; font-size: 16px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--teal); color: #04322f; box-shadow: 0 10px 26px rgba(20,184,173,.32); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(13,149,141,.38); }
.btn-secondary { background: var(--white); color: var(--blue); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-xs); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 19px; font-weight: 800; color: var(--blue); letter-spacing: -.01em; }
.brand-text span { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 15.5px; font-weight: 600; color: var(--text); padding: 10px 15px; border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--teal-dark); background: var(--teal-light); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white);
  border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; box-shadow: var(--shadow-xs);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--blue); border-radius: 2px; position: relative; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 90px; background:
  radial-gradient(1100px 520px at 88% -8%, var(--teal-light) 0%, rgba(234,249,247,0) 60%),
  linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -.03em; }
.hero h1 .accent { color: var(--teal); }
.hero-lead-strong { font-size: clamp(20px, 2.4vw, 25px); font-weight: 700; color: var(--blue); margin: 26px 0 14px; }
.hero-lead { font-size: 18px; color: var(--text-soft); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; }
.hero-trust li { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: var(--text); }
.hero-trust svg { width: 20px; height: 20px; color: var(--teal-dark); flex: none; }

/* Hero portrait */
.hero-media { position: relative; }
.portrait-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--blue);
  aspect-ratio: 5 / 5.4;
}
.portrait-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.portrait-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,31,62,0) 46%, rgba(6,31,62,.72) 100%);
}
.portrait-name {
  position: absolute; left: 24px; bottom: 22px; z-index: 2; color: var(--white);
}
.portrait-name b { display: block; font-size: 20px; font-weight: 800; }
.portrait-name span { font-size: 14px; color: rgba(255,255,255,.82); font-weight: 600; }

.info-card {
  position: absolute; z-index: 3; background: var(--white); border-radius: 16px;
  padding: 15px 17px; box-shadow: var(--shadow-md); max-width: 232px; border: 1px solid var(--line);
}
.info-card b { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--blue); font-weight: 800; margin-bottom: 4px; }
.info-card b i { display: inline-flex; width: 26px; height: 26px; border-radius: 8px; background: var(--teal-light); color: var(--teal-dark); align-items: center; justify-content: center; flex: none; }
.info-card b i svg { width: 15px; height: 15px; }
.info-card span { font-size: 13px; color: var(--text-soft); line-height: 1.45; }
.info-card--tl { top: 26px; left: -34px; }
.info-card--br { bottom: 96px; right: -30px; }

/* ---------- Two ways section ---------- */
.ways-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.way-card {
  border-radius: var(--radius-lg); padding: 42px; border: 1px solid var(--line);
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.way-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.way-tag { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); }
.way-card h3 { font-size: 27px; margin: 14px 0 14px; }
.way-card > p { color: var(--text-soft); font-size: 16.5px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; background: var(--bg-light); color: var(--text); border: 1px solid var(--line);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

.way-card--dark { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%); border-color: transparent; }
.way-card--dark h3 { color: var(--white); }
.way-card--dark .way-tag { color: var(--teal); }
.way-card--dark > p { color: rgba(255,255,255,.78); }
.way-card--dark .chip { background: rgba(255,255,255,.07); color: rgba(255,255,255,.92); border-color: rgba(255,255,255,.16); }
.way-card--dark .chip::before { background: var(--teal); }

/* ---------- Statement band ---------- */
.statement { padding: 92px 0; }
.statement-inner {
  background: var(--teal-light); border-radius: var(--radius-lg); padding: 66px 56px; text-align: center;
  border: 1px solid #d6f0ed;
}
.statement-inner h2 { font-size: clamp(30px, 4.4vw, 48px); }
.statement-inner h2 .soft { color: var(--teal-dark); }
.statement-inner p { max-width: 720px; margin: 20px auto 0; color: var(--text-soft); font-size: 18.5px; }
.statement-inner p b { color: var(--blue); font-weight: 700; }

/* ---------- Services grid ---------- */
.services { background: var(--bg-light); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7e6f0; }
.service-ico {
  width: 54px; height: 54px; border-radius: 15px; background: var(--teal-light); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-ico svg { width: 27px; height: 27px; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--text-soft); font-size: 15.5px; }

/* ---------- Smart home examples ---------- */
.examples-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.example {
  display: flex; gap: 20px; align-items: flex-start; padding: 28px 30px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.example:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.example .num {
  flex: none; width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: var(--white); font-weight: 800; font-size: 17px;
}
.example h3 { font-size: 18.5px; margin-bottom: 6px; }
.example p { color: var(--text-soft); font-size: 15px; }
.example--wide { grid-column: 1 / -1; }

/* ---------- Process / steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; padding: 38px 34px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-xs);
}
.step .step-no { font-size: 15px; font-weight: 800; color: var(--teal-dark); letter-spacing: .1em; }
.step h3 { font-size: 21px; margin: 16px 0 12px; }
.step p { color: var(--text-soft); font-size: 15.5px; }
.step .rail { position: absolute; top: 46px; right: -14px; width: 28px; height: 2px; background: var(--line); z-index: 1; }
.step:last-child .rail { display: none; }

/* ---------- About ---------- */
.about { background: var(--bg-light); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-copy p { color: var(--text-soft); font-size: 17px; margin-top: 18px; }
.about-copy p:first-of-type { margin-top: 26px; }
.about-quote {
  margin-top: 30px; padding: 26px 28px; border-left: 4px solid var(--teal); background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-xs);
  font-size: 18px; font-weight: 600; color: var(--blue); line-height: 1.55;
}
.values { display: grid; gap: 16px; }
.value {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-xs);
}
.value b { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 800; color: var(--blue); letter-spacing: .04em; }
.value b i { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-light); color: var(--teal-dark); align-items: center; justify-content: center; flex: none; }
.value b i svg { width: 21px; height: 21px; }
.value p { margin-top: 10px; color: var(--text-soft); font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--white); }
.contact .eyebrow { color: var(--teal); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.contact h2 { color: var(--white); font-size: clamp(30px, 4.4vw, 48px); margin: 18px 0 20px; }
.contact-lead { color: rgba(255,255,255,.8); font-size: 18.5px; max-width: 520px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.contact-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  padding: 12px; backdrop-filter: blur(6px);
}
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
  transition: background .2s;
}
.contact-item + .contact-item { border-top: 1px solid rgba(255,255,255,.1); }
.contact-item:hover { background: rgba(255,255,255,.05); }
.contact-item .ci-ico {
  flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(20,184,173,.16); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .ci-ico svg { width: 23px; height: 23px; }
.contact-item small { display: block; font-size: 13px; color: rgba(255,255,255,.6); font-weight: 600; letter-spacing: .04em; }
.contact-item b { display: block; font-size: 17px; color: var(--white); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,.72); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 76px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 15px; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-col a, .footer-col li { font-size: 15px; color: rgba(255,255,255,.72); padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: 14px; }
.footer-bottom a { color: rgba(255,255,255,.72); }
.footer-bottom a:hover { color: var(--teal); }
.footer-bottom .fb-links { display: flex; gap: 22px; }

/* ---------- Mobile sticky WhatsApp ---------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: none; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; background: var(--teal); color: #04322f; font-weight: 800; font-size: 16px;
  border-radius: 16px; box-shadow: 0 12px 30px rgba(8,45,88,.28);
  transform: translateY(140%); transition: transform .35s var(--ease);
}
.mobile-cta.show { transform: translateY(0); }
.mobile-cta svg { width: 22px; height: 22px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; background: var(--bg-light); min-height: 60vh; }
.legal-wrap { max-width: 820px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 56px; box-shadow: var(--shadow-sm); }
.legal-wrap h1 { font-size: clamp(30px,5vw,42px); margin-bottom: 10px; }
.legal-wrap .updated { color: var(--text-soft); font-size: 14px; margin-bottom: 32px; }
.legal-wrap h2 { font-size: 22px; margin: 34px 0 12px; }
.legal-wrap h3 { font-size: 18px; margin: 22px 0 8px; color: var(--blue); }
.legal-wrap p, .legal-wrap li { color: var(--text-soft); font-size: 16px; margin-bottom: 10px; }
.legal-wrap ul { list-style: disc; padding-left: 22px; }
.legal-wrap a { color: var(--teal-dark); font-weight: 600; }
.legal-wrap strong { color: var(--text); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--teal-dark); font-weight: 700; font-size: 15px; }
.back-link svg { width: 18px; height: 18px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .info-card--tl { left: -12px; }
  .info-card--br { right: -10px; }
  .hero-grid { gap: 44px; }
}

@media (max-width: 900px) {
  section { padding: 76px 0; }
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Mobile nav panel */
  .nav-links.open {
    display: flex; position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white); padding: 18px 20px 26px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); animation: slideDown .28s var(--ease);
  }
  .nav-links.open a { padding: 15px 14px; font-size: 17px; border-radius: 12px; }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-10px);} to {opacity:1; transform:none;} }

  .hero { padding: 44px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: 2; max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }

  .ways-grid, .grid-3, .steps-grid, .examples-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .step .rail { display: none; }
  .about-grid { gap: 36px; }
  .statement-inner { padding: 46px 26px; }
  .mobile-cta { display: flex; }
  .legal-wrap { padding: 34px 24px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .hero h1 { font-size: 38px; }
  .way-card, .service-card { padding: 28px 24px; }
  .info-card--tl { top: 14px; left: 8px; }
  .info-card--br { bottom: 84px; right: 8px; max-width: 205px; }
  .brand-text b { font-size: 17px; }
  .brand img { height: 34px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .contact-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (min-width: 901px) {
  .nav-toggle { display: none; }
}
