:root {
  --ink: #10212b;
  --muted: #60717a;
  --line: #dce6e8;
  --mint: #e5f5ef;
  --teal: #006f69;
  --teal-dark: #005650;
  --sky: #e8f4f8;
  --warning: #fff7e6;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(16, 33, 43, 0.1);
  --heading-tracking: -0.018em;
  --heading-leading: 1.12;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfdfd;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.wrap {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.top {
  padding: 10px 0;
  color: #dce9ea;
  background: var(--ink);
  font-size: 0.9rem;
}

.top .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

header.wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-right: max(20px, calc((100vw - 1140px) / 2));
  padding-left: max(20px, calc((100vw - 1140px) / 2));
  border-bottom: 1px solid rgba(220, 230, 232, 0.85);
  background: rgba(251, 253, 253, 0.94);
  box-shadow: 0 8px 24px rgba(16, 33, 43, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

header.wrap nav {
  width: min(1140px, 100%);
  margin: 0 auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1;
  text-decoration: none;
}

.brand span {
  color: var(--teal);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.logo-link img {
  display: block;
  width: 185px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 22px;
}

.navlinks a {
  color: #38505a;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.002em;
  text-decoration: none;
}

.navlinks a:not(.button):hover {
  color: var(--teal);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  letter-spacing: 0.012em;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #79e1c7;
  outline-offset: 3px;
}

.button.secondary {
  border: 1px solid #bed9d6;
  color: var(--teal);
  background: var(--white);
}

.button.secondary:hover {
  color: var(--white);
  background: var(--teal);
}

.hero {
  padding: 56px 0 74px;
  background:
    radial-gradient(circle at 83% 7%, #d8f1ee 0, transparent 33%),
    linear-gradient(135deg, #f4fbfa 0%, #ffffff 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 54px;
  align-items: center;
}

.eyebrow,
.kicker {
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #49b99e;
}

.hero h1,
.section-head h2,
.offer-box h2,
.legal-content h1 {
  font-weight: 750;
  letter-spacing: var(--heading-tracking);
}

.hero h1 {
  max-width: 760px;
  margin: 16px 0 22px;
  font-size: clamp(2.55rem, 5vw, 4.6rem);
  line-height: 1.06;
}

.hero p {
  max-width: 650px;
  margin: 0 0 28px;
  color: #4c626b;
  font-size: 1.16rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.micro {
  margin-top: 15px !important;
  color: var(--muted) !important;
  font-size: 0.84rem !important;
}

.device-card {
  position: relative;
  min-height: 430px;
  padding: 30px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #f0fbfa, #d8eeeb);
  box-shadow: var(--shadow);
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}

.circle.one {
  right: -105px;
  bottom: -110px;
  width: 340px;
  height: 340px;
}

.circle.two {
  top: 45px;
  left: -40px;
  width: 115px;
  height: 115px;
}

.device {
  position: absolute;
  top: 51%;
  left: 50%;
  width: 210px;
  height: 305px;
  border-radius: 42px 42px 57px 57px;
  background: linear-gradient(135deg, #fafdfd, #bac8cc);
  box-shadow:
    inset 9px 7px 15px rgba(255, 255, 255, 0.8),
    inset -10px -10px 17px rgba(50, 70, 78, 0.16),
    0 30px 35px rgba(20, 65, 65, 0.25);
  transform: translate(-50%, -50%) rotate(10deg);
}

.device::before {
  position: absolute;
  top: 40px;
  right: 0;
  left: 0;
  color: #41616a;
  content: "iCare\A HOME2";
  font-size: 17px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: pre;
}

.screen {
  position: absolute;
  top: 105px;
  left: 55px;
  width: 100px;
  height: 67px;
  border: 5px solid #8fa5a9;
  border-radius: 10px;
  background: #143943;
  box-shadow: inset 0 0 0 2px #46616a;
}

.screen::after {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #b7f4d5;
  content: "18.0";
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 25px;
  font-weight: 700;
}

.tip {
  position: absolute;
  bottom: -52px;
  left: 88px;
  width: 34px;
  height: 65px;
  border-radius: 18px 18px 5px 5px;
  background: #b4c3c7;
}

.spec {
  position: absolute;
  right: 26px;
  bottom: 24px;
  max-width: 190px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}

.spec strong {
  display: block;
  color: var(--teal);
  font-weight: 750;
  letter-spacing: 0.008em;
}

section {
  padding: 82px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: var(--heading-leading);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(20, 50, 57, 0.04);
}

.icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 13px;
  color: var(--teal);
  background: var(--mint);
  font-weight: 800;
}

.card h3,
.step h3,
.notice h3,
.form h3,
.legal-content h2,
.faq summary {
  font-weight: 750;
  letter-spacing: 0.005em;
}

.card h3,
.step h3 {
  margin: 0 0 8px;
}

.card h3 {
  font-size: 1.15rem;
}

.card p,
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.how {
  background: var(--sky);
}

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

.step {
  position: relative;
  padding-top: 68px;
}

.number {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

.step p {
  color: #50666d;
}

.notice {
  margin-top: 46px;
  padding: 25px 27px;
  border: 1px solid #efdca9;
  border-radius: 18px;
  background: var(--warning);
}

.notice h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.notice p {
  margin: 0;
  color: #634f25;
}

.notice strong {
  color: #392d12;
  font-weight: 750;
  letter-spacing: 0.006em;
}

.offer {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 26px;
  align-items: stretch;
}

.offer-box {
  padding: 38px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
}

.offer-box h2 {
  margin: 12px 0;
  font-size: 2.35rem;
  line-height: var(--heading-leading);
}

.offer-box p {
  max-width: 540px;
  color: #c8d7d9;
}

.price {
  margin: 13px 0;
  color: #79e1c7 !important;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: 0.012em;
}

.checks {
  margin: 25px 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  margin: 10px 0;
  padding-left: 28px;
  color: #e4f4f2;
}

.checks li::before {
  position: absolute;
  left: 0;
  color: #79e1c7;
  content: "✓";
  font-weight: 900;
}

.form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.form h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.form p {
  margin: 0 0 18px;
  color: var(--muted);
}

.field {
  margin: 12px 0;
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.006em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #c8d5d7;
  border-radius: 11px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.consent input {
  margin-top: 4px;
}

.consent a {
  color: var(--teal);
  font-weight: 700;
}

.form .button {
  width: 100%;
}

.form-note {
  margin: 12px 0 0 !important;
  font-size: 0.78rem;
}

.faq {
  max-width: 850px;
}

.faq details {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding-right: 30px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  position: absolute;
  top: -5px;
  right: 0;
  color: var(--teal);
  content: "+";
  font-size: 1.4rem;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  max-width: 760px;
  margin: 11px 0 0;
  color: var(--muted);
}

.legal {
  padding: 76px 0;
}

.legal-content {
  max-width: 850px;
}

.legal-content h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.legal-content h2 {
  margin: 38px 0 10px;
  font-size: 1.35rem;
}

.legal-content p,
.legal-content li {
  color: #4c626b;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content a {
  color: var(--teal);
  font-weight: 700;
}

.back {
  margin: 0 0 35px;
}

.placeholder {
  padding: 14px 16px;
  border: 1px solid #efdca9;
  border-radius: 12px;
  color: #634f25 !important;
  background: var(--warning);
  font-size: 0.92rem;
}

footer {
  padding: 42px 0;
  color: #bdd0d3;
  background: #0a171e;
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

footer a {
  color: var(--white);
  text-decoration: none;
}

footer .brand {
  color: var(--white);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--white);
  line-height: 0;
  text-decoration: none;
}

.footer-logo img {
  display: block;
  width: 155px;
  height: auto;
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 82px;
  }

  .navlinks {
    display: none;
  }

  .hero-grid,
  .offer {
    grid-template-columns: 1fr;
  }

  .device-card {
    order: -1;
    min-height: 355px;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 30px;
  }

  section {
    padding: 58px 0;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 74px;
  }

  .wrap {
    width: min(100% - 28px, 1140px);
  }

  header.wrap {
    padding-right: 14px;
    padding-left: 14px;
  }

  nav {
    padding: 14px 0;
  }

  .top .wrap {
    font-size: 0.78rem;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .offer-box,
  .form {
    padding: 25px;
  }

  .device {
    transform: translate(-50%, -50%) rotate(10deg) scale(0.85);
  }

  .logo-link img {
    width: 150px;
    max-height: 46px;
  }
}

/* Digitales Mietformular */
.rental-section{background:#edf7f5}.rental-info{padding:20px;border-left:4px solid var(--teal);background:white}.rental-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}#rental-form fieldset{min-width:0;margin:0 0 28px;padding:20px;border:1px solid var(--line);border-radius:14px}#rental-form legend{padding:0 8px;font-size:1.15rem;font-weight:700}#rental-form .consent{font-size:.95rem}#rental-form input[type=checkbox]{width:20px;height:20px;flex-shrink:0}.rental-trap{position:absolute;left:-10000px}.rental-actions{display:flex;flex-wrap:wrap;gap:12px}#rental-form .rental-actions .button{width:auto}.rental-terms-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.9rem}.rental-section details{margin:18px 0}.rental-section summary{cursor:pointer;color:var(--teal)}#rental-costs table{width:100%;border-collapse:collapse}#rental-costs td,#rental-costs th{padding:10px;border-bottom:1px solid var(--line);text-align:left}#rental-costs td:last-child{text-align:right;white-space:nowrap}button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:650px){.rental-grid{grid-template-columns:1fr}#rental-form fieldset{padding:12px}}
@media print{body>*:not(main),main>section:not(#mietvertrag){display:none!important}#mietvertrag{padding:0;background:white}.wrap{width:100%}#rental-form{border:0;padding:0}.rental-actions,#rental-status,.rental-trap{display:none!important}#rental-form fieldset{break-inside:auto;border-color:#999}input,select{color:#000!important;background:white!important}details{display:block} .rental-terms-text{font-size:9pt}.rental-grid{grid-template-columns:1fr 1fr}a{color:#000} @page{margin:15mm}}
