:root {
  --color-primary: #17365D;
  --color-accent: #4A8F22;
  --color-accent-dark: #3c741b;
  --color-text: #25303b;
  --color-muted: #667381;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f7f8;
  --color-border: #e3e8ec;
  --shadow-soft: 0 14px 35px rgba(23, 54, 93, 0.09);
  --radius: 20px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 850px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
}

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

.logo {
  width: 350px;
  max-height: 95px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  padding: 9px 12px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--color-bg-soft);
  color: var(--color-accent);
}

.main-nav a:last-child {
  color: #fff;
  background: var(--color-accent);
  box-shadow: 0 10px 22px rgba(74, 143, 34, 0.18);
}

.main-nav a:last-child:hover,
.main-nav a:last-child:focus-visible {
  color: #fff;
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 94px;
  background: url("hero.jpg") center center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.64) 48%, rgba(255, 255, 255, 0.18) 100%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--color-primary);
  line-height: 1.15;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.65rem, 6vw, 5rem);
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

p {
  margin-top: 0;
}

.hero-lead {
  margin-bottom: 16px;
  max-width: 760px;
  color: var(--color-primary);
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  line-height: 1.22;
  font-weight: 750;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--color-muted);
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--color-accent);
  box-shadow: 0 10px 24px rgba(74, 143, 34, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-dark);
}

.btn-secondary {
  color: var(--color-primary);
  background: #fff;
  border: 1px solid var(--color-border);
}

.hero-card,
.service-card,
.step-card,
.notice-card,
.contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.hero-card {
  padding: 28px;
}

.hero-card-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  color: var(--color-primary);
  font-weight: 750;
}

.hero-card-item + .hero-card-item {
  border-top: 1px solid var(--color-border);
}

.check-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--color-accent);
  border-radius: 50%;
  font-weight: 900;
}

.section {
  padding: 82px 0;
}

.section-light {
  background: var(--color-bg-soft);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

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

.service-card,
.step-card,
.notice-card {
  padding: 26px;
}

.service-card {
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(23, 54, 93, 0.12);
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  color: var(--color-accent);
  background: #edf6e9;
  border-radius: 14px;
}

.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card p,
.step-card p,
.notice-card p,
.legal-content p {
  color: var(--color-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  text-align: center;
}

.step-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 18px;
  color: #fff;
  background: var(--color-primary);
  border-radius: 50%;
  font-weight: 900;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 36px;
  align-items: start;
}

.notice-card {
  border-left: 5px solid var(--color-accent);
}

.contact-section {
  background: linear-gradient(135deg, var(--color-primary), #0f2949);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.96);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.small-note {
  flex-basis: 100%;
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 0.94rem;
  text-align: right;
}

.site-footer {
  padding: 34px 0;
  color: #dce5ed;
  background: var(--color-primary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  font-weight: 800;
}

.footer-inner span {
  color: #b8c7d5;
  font-weight: 500;
}

.footer-inner nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #fff;
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  text-decoration: underline;
}

.subpage-main {
  min-height: 68vh;
  background: var(--color-bg-soft);
}

.legal-content {
  padding: 42px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.legal-content h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.35rem;
}

.legal-content a {
  color: var(--color-accent);
  font-weight: 750;
}

.legal-note {
  margin-top: 36px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}


.hero-content,
.hero-card,
.section-heading,
.narrow,
.service-card,
.step-card,
.split-grid > *,
.contact-card {
  animation: fadeUp 0.65s ease both;
}

.service-card:nth-child(2),
.step-card:nth-child(2) { animation-delay: 0.06s; }
.service-card:nth-child(3),
.step-card:nth-child(3) { animation-delay: 0.12s; }
.service-card:nth-child(4),
.step-card:nth-child(4) { animation-delay: 0.18s; }
.service-card:nth-child(5) { animation-delay: 0.24s; }
.service-card:nth-child(6) { animation-delay: 0.30s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.nav-toggle,
.nav-toggle-label {
  display: none;
}

.nav-toggle-label {
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 54, 93, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-label span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 64px 0 70px;
    background-position: center center;
  }

  .hero::after {
    background: rgba(255, 255, 255, 0.56);
  }

  .hero-grid,
  .split-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .hero-card,
  .section-heading,
  .narrow,
  .split-grid > *,
  .contact-card {
    text-align: center;
  }

  .hero-card {
    width: min(100%, 640px);
    margin-inline: auto;
  }

  .hero-card-item {
    justify-content: center;
    align-items: center;
    text-align: left;
  }

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

  .service-card,
  .step-card {
    width: min(76%, 640px);
    margin-inline: auto;
  }

  .split-grid {
    max-width: 760px;
    margin-inline: auto;
  }

  .notice-card {
    border-left: 1px solid var(--color-border);
    border-top: 5px solid var(--color-accent);
  }

  .contact-actions {
    justify-content: center;
  }

  .small-note {
    text-align: center;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    min-height: 78px;
    padding: 10px 0;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo {
    width: 270px;
    max-height: 80px;
  }

  .nav-toggle-label {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    display: grid;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease;
  }

  .nav-toggle:checked ~ .main-nav {
    max-height: 260px;
    opacity: 1;
    padding: 8px 0 12px;
  }

  .main-nav a {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.95rem;
    text-align: center;
    background: var(--color-bg-soft);
  }

  .main-nav a:last-child {
    color: #fff;
    background: var(--color-accent);
  }

  .hero {
    padding: 44px 0 54px;
    background-image: url("hero-mobile.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .hero::after {
    background: rgba(255, 255, 255, 0.5);
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .hero-lead {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-content .btn {
    width: auto;
    min-width: 0;
    padding-inline: 26px;
  }

  .hero-card {
    padding: 20px;
  }

  .hero-card-item {
    gap: 12px;
    padding: 14px 0;
    justify-content: flex-start;
  }

  .section {
    padding: 58px 0;
  }

  .service-card,
  .step-card {
    width: 100%;
  }

  .hero-card,
  .service-card,
  .step-card,
  .notice-card,
  .contact-card,
  .legal-content {
    padding: 22px;
    border-radius: 16px;
  }

  .contact-card {
    text-align: center;
  }

  .contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-actions .btn {
    width: auto;
    min-width: 220px;
    padding-inline: 26px;
  }

  .footer-inner {
    align-items: center;
    text-align: center;
    flex-direction: column;
  }
}


/* Center "Über PropertyCare" section (narrow containers) */
.section .container.narrow {
  text-align: center;
}
