/* Main stylesheet for SorgSam gepflegt – DGKP Anita Mayer */

:root {
  --primary-color: #0f938b;
  --primary-dark: #0a655f;
  --secondary-color: #0f2f36;
  --accent-color: #f2994a;
  --background-color: #f4f7f8;
  --surface-color: #ffffff;
  --text-color: #243133;
  --muted-text: #5f6c70;
  --header-height: 76px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-md: 0 18px 40px rgba(15, 47, 54, 0.08);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--header-height);
  background:
    linear-gradient(120deg, rgba(4, 18, 22, 0.72) 0%, rgba(15, 147, 139, 0.45) 100%),
    url("assets/hero-care.jpg") center/cover no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 1000;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(15, 47, 54, 0.05);
}
header .logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-decoration: none;
}
header nav {
  flex: 1;
}
header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
header nav ul li a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.3s ease;
}
header nav ul li a:hover,
header nav ul li a:focus {
  color: #ffffff;
}
header .nav-cta {
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover,
.nav-toggle:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background-color: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
  content: "";
}
.nav-toggle-icon::before {
  transform: translateY(-6px);
}
.nav-toggle-icon::after {
  transform: translateY(6px);
}
header[data-nav-open="true"] .nav-toggle-icon {
  background-color: transparent;
}
header[data-nav-open="true"] .nav-toggle-icon::before {
  transform: rotate(45deg);
}
header[data-nav-open="true"] .nav-toggle-icon::after {
  transform: rotate(-45deg);
}
.nav-mobile-cta {
  display: none;
}
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 22, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 900;
}
.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
body.nav-open {
  overflow: hidden;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-solid {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 147, 139, 0.22);
}
.btn-solid:hover,
.btn-solid:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(15, 147, 139, 0.28);
}
.btn-ghost {
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 47, 54, 0.15);
  color: var(--secondary-color);
}
.btn-ghost:hover,
.btn-ghost:focus {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  margin-top: clamp(96px, 14vw, 120px);
  padding: calc(var(--header-height) + 5rem) 1.5rem 6rem;
  text-align: center;
  background:
      linear-gradient(
        120deg,
        rgba(15, 47, 54, 0.7) 0%,
        rgba(15, 147, 139, 0.35) 40%,
        rgba(244, 247, 248, 0.1) 100%
      ),
      url("assets/hero-care.jpg") center/cover no-repeat;
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(4, 18, 22, 0.4), rgba(255, 255, 255, 0));
  border-radius: inherit;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1.1;
  color: #fff;
}
.hero p {
  font-size: 1.125rem;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.88);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  list-style: none;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.hero-highlights li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background-color: var(--accent-color);
  vertical-align: middle;
}
.hero-scroll {
  position: absolute;
  inset-inline: 0;
  bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  z-index: 1;
}
.hero-scroll svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.page-hero {
  margin-top: clamp(90px, 14vw, 140px);
  padding: calc(var(--header-height) + 2.5rem) 1.75rem 3.5rem;
  max-width: 1000px;
  background: linear-gradient(145deg, rgba(15, 147, 139, 0.1), rgba(15, 47, 54, 0.08));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.page-hero-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-hero-inner h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--secondary-color);
}
.page-hero-inner p {
  color: var(--muted-text);
}
section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.about {
  margin-top: -3rem;
  padding: 0;
}
.about-inner {
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 4rem clamp(1.5rem, 3vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.about img {
  width: min(280px, 100%);
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(15, 47, 54, 0.18);
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.about-text h2 {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  color: var(--secondary-color);
}
.about-text p {
  color: var(--muted-text);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.about-stats div {
  background: linear-gradient(135deg, rgba(15, 147, 139, 0.12), rgba(15, 47, 54, 0.06));
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}
.about-stats strong {
  display: block;
  font-size: 1.6rem;
  color: var(--primary-dark);
}
.about-stats span {
  font-size: 0.9rem;
  color: var(--muted-text);
}
.services {
  text-align: center;
}
.services h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.service {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 35px rgba(15, 47, 54, 0.08);
  padding: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 45px rgba(15, 47, 54, 0.12);
}
.service h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  font-size: 1.25rem;
}
.service p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--muted-text);
  line-height: 1.5;
}
.section-heading {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.section-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(15, 47, 54, 0.55);
}
.section-heading h2 {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  color: var(--secondary-color);
}
.section-heading p {
  color: var(--muted-text);
}
.blog-teaser {
  text-align: center;
}
.blog-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.blog-empty {
  grid-column: 1 / -1;
  color: var(--muted-text);
}
.blog-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: left;
  box-shadow: 0 18px 36px rgba(15, 47, 54, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.blog-card-cover {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 4px);
}
.blog-category {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 147, 139, 0.85);
}
.blog-card h3 {
  font-size: 1.2rem;
  color: var(--secondary-color);
}
.blog-card p {
  color: var(--muted-text);
  flex-grow: 1;
}
.blog-link {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.blog-link::after {
  content: "→";
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.blog-link:hover::after,
.blog-link:focus::after {
  transform: translateX(4px);
}
.blog-cta {
  margin-top: 2.5rem;
}
.contact {
  background: radial-gradient(circle at top left, rgba(15, 147, 139, 0.12), rgba(15, 47, 54, 0.1));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 3.5rem;
}
.contact-inner {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.contact-information h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
  color: var(--secondary-color);
}
.contact-information p {
  color: var(--muted-text);
  margin-bottom: 1.5rem;
}
.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--secondary-color);
}
.contact-details a {
  color: inherit;
  text-decoration: none;
}
.contact-details a:hover,
.contact-details a:focus {
  text-decoration: underline;
}
.contact-details span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
}
.contact-meta {
  display: grid;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--muted-text);
}
.contact-form-wrapper {
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 20px 36px rgba(15, 47, 54, 0.12);
}
.contact-form-wrapper h3 {
  font-size: 1.35rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}
.contact form {
  display: grid;
  gap: 1rem;
}
.contact form input,
.contact form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 47, 54, 0.12);
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-color);
}
.contact form input:focus,
.contact form textarea:focus {
  outline: 2px solid rgba(15, 147, 139, 0.35);
  outline-offset: 1px;
}
.contact form textarea {
  resize: vertical;
  min-height: 150px;
}
.contact form button {
  border: none;
  cursor: not-allowed;
  opacity: 0.75;
}
.form-disclaimer {
  font-size: 0.8rem;
  color: var(--muted-text);
}
.legal {
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(2.5rem, 4vw, 3.5rem);
  max-width: 960px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--muted-text);
}
.legal h2 {
  font-size: 1.4rem;
  color: var(--secondary-color);
}
.legal p {
  line-height: 1.7;
}
.legal a {
  color: var(--primary-dark);
}
footer {
  padding: 1.5rem 1rem;
  background-color: var(--secondary-color);
  color: #fff;
  text-align: center;
  font-size: 0.875rem;
}
footer a {
  color: #fff;
  text-decoration: underline;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 768px) {
  .hero h1 {
    font-size: clamp(3rem, 4vw, 4.1rem);
  }
  .hero p {
    font-size: 1.25rem;
  }
}
@media (max-width: 960px) {
  header {
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.75rem;
    align-items: center;
  }
  header .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  header nav {
    position: absolute;
    top: calc(var(--header-height) + 0.75rem);
    left: 1.25rem;
    right: 1.25rem;
    background: rgba(4, 18, 22, 0.94);
    border-radius: var(--radius-lg);
    box-shadow: 0 26px 45px rgba(4, 18, 22, 0.35);
    padding: 1.75rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1001;
  }
  header[data-nav-open="true"] nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  header nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  header nav ul li a {
    display: block;
    width: 100%;
    padding: 0.35rem 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
  }
  header nav ul li a:hover,
  header nav ul li a:focus {
    color: #ffffff;
  }
  .nav-mobile-cta {
    display: block;
    width: 100%;
  }
  .nav-mobile-cta .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
  .hero {
    margin-top: clamp(110px, 18vw, 150px);
    padding-inline: 1rem;
    padding-bottom: 5rem;
  }
  section {
    padding: 3.5rem 1.25rem;
  }
  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about img {
    justify-self: center;
  }
  .about-text {
    text-align: center;
  }
  .about-stats {
    justify-items: center;
  }
  .contact-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  header nav ul {
    gap: 0.75rem 1rem;
  }
  .hero {
    margin-top: 150px;
    padding: calc(var(--header-height) + 4rem) 1.1rem 4.5rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-highlights {
    flex-direction: column;
    align-items: center;
  }
  section {
    padding: 3rem 1.1rem;
  }
  .service-list {
    grid-template-columns: 1fr;
  }
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  .legal {
    padding: 2rem 1.5rem;
    margin-bottom: 2.5rem;
  }
  .page-hero {
    margin-top: 150px;
    padding: calc(var(--header-height) + 2rem) 1.25rem 3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}
