/* =========================================================
   MEDIKOS – RESPONSIVE STYLES
   Desktop / Tablet / Smartphone
   ========================================================= */

:root {
  --navy: #173c59;
  --navy-2: #214c6d;
  --teal: #49aaa7;
  --teal-dark: #2f8f8d;
  --mint: #eaf7f7;
  --ice: #f2f8fa;
  --white: #fff;
  --text: #1d3e58;
  --muted: #5d7180;
  --line: #d9e7eb;
  --shadow: 0 10px 30px rgba(23, 60, 89, 0.08);
}


/* =========================================================
   GRUNDLAGEN
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}


/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.site-header {
  min-height: 88px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #edf2f4;

  position: sticky;
  top: 0;
  z-index: 100;

  backdrop-filter: blur(10px);
}

.nav {
  min-height: 88px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}


/* Logo */

.brand {
  display: flex;
  align-items: center;
  gap: 13px;

  flex-shrink: 0;
}

.brand-mark {
  width: 58px;
  height: 58px;

  border: 4px solid var(--navy);
  border-radius: 50%;

  display: grid;
  place-items: center;

  position: relative;
  color: var(--navy);
}

.brand-mark::before {
  content: "";

  width: 22px;
  height: 38px;

  background: var(--navy);
  border-radius: 5px;

  position: absolute;
}

.brand-mark::after {
  content: "";

  width: 38px;
  height: 22px;

  background: var(--navy);
  border-radius: 5px;

  position: absolute;
}

.heart {
  position: absolute;

  z-index: 2;

  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.brand-text {
  display: block;

  font-size: 31px;
  letter-spacing: 2px;
  font-weight: 700;
}

.brand-sub {
  display: block;

  font-size: 10px;
  letter-spacing: 2px;

  color: var(--teal-dark);

  margin-top: -3px;

  font-weight: 700;
}


/* Navigation */

.main-nav {
  display: flex;
  align-items: center;

  gap: clamp(18px, 3vw, 38px);

  font-size: 14px;
  color: #304e62;
}

.main-nav a {
  padding: 10px 0;

  border-bottom: 2px solid transparent;

  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.main-nav a:first-child,
.main-nav a:hover {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}


/* Anrufen Button */

.call {
  background: var(--teal);
  color: #fff;

  padding: 13px 21px;

  border-radius: 28px;

  font-weight: 700;
  font-size: 14px;

  white-space: nowrap;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.call:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}


/* Mobile Menü – zunächst unsichtbar */

.nav-toggle,
.nav-toggle-label {
  display: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 470px;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.90) 40%,
      rgba(255, 255, 255, 0.10) 72%
    ),
    url("images/main.png")
    center / cover no-repeat;

  display: flex;
  align-items: center;
}

.hero-inner {
  padding: 54px 0 58px;

  position: relative;
}

.hero-logo {
  font-size: clamp(43px, 5vw, 54px);

  font-weight: 700;
  letter-spacing: 3px;

  margin-bottom: 5px;
}

.hero-logo small {
  display: block;

  font-size: 13px;

  color: var(--teal-dark);

  letter-spacing: 3px;
}


/* Handschrift */

.script {
  font-family:
    "Segoe Script",
    "Brush Script MT",
    cursive;

  color: var(--navy);

  font-size: 28px;
  line-height: 1.05;
}

.hero-script {
  position: absolute;

  left: 49%;
  top: 135px;

  transform: rotate(-7deg);
}


/* Hero Überschrift */

.hero h1 {
  font-size: 29px;
  line-height: 1.2;

  max-width: 570px;

  margin: 44px 0 12px;
}

.hero p {
  font-size: 17px;
  line-height: 1.6;

  max-width: 590px;

  color: #355166;

  margin: 0 0 22px;
}


/* Hero Button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  background: var(--teal);
  color: #fff;

  border-radius: 28px;

  padding: 14px 22px;

  font-weight: 700;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  background: var(--teal-dark);

  transform: translateY(-1px);
}


/* =========================================================
   LEISTUNGEN
   ========================================================= */

.services {
  background: var(--ice);

  padding: 38px 0 45px;

  text-align: center;
}


/* Überschrift mit Linien */

.eyebrow {
  color: var(--teal-dark);

  font-weight: 700;

  letter-spacing: 2px;

  font-size: 13px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";

  display: inline-block;

  width: 48px;
  height: 1px;

  background: #9bc8c7;

  vertical-align: middle;

  margin: 0 10px;
}

.section-title {
  font-size: 28px;

  margin: 12px 0 8px;
}

.section-lead {
  margin: 0 auto 28px;

  max-width: 680px;

  line-height: 1.55;

  color: #526b7c;
}


/* Leistungsraster */

.service-grid {
  display: grid;

  grid-template-columns:
    repeat(6, minmax(0, 1fr));

  gap: 22px;
}

.service {
  min-width: 0;
}

.service-icon {
  width: 76px;
  height: 76px;

  margin: auto;

  border-radius: 50%;

  background: #d9f0ef;

  display: grid;
  place-items: center;

  color: var(--navy);

  font-size: 34px;
}

.service h3 {
  font-size: 14px;

  margin: 13px 0 8px;
}

.service p {
  font-size: 12px;
  line-height: 1.5;

  color: #637887;

  margin: 0;
}


/* =========================================================
   ÜBER UNS
   ========================================================= */

.about {
  display: grid;

  grid-template-columns:
    1fr 1.1fr;

  min-height: 400px;
}


/* Bild */

.about-photo {
  min-height: 400px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.05)
    ),
    url("images/middle.png")
    center / cover no-repeat;

  position: relative;
}

.about-photo .script {
  position: absolute;

  right: 30px;
  top: 48px;

  width: 220px;

  text-align: center;

  font-size: 30px;
}


/* Textbereich */

.about-copy {
  padding: 54px 7% 45px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy h2 {
  font-size: 26px;

  margin: 9px 0 18px;
}

.about-copy p {
  font-size: 14px;
  line-height: 1.65;

  color: #526b7b;

  max-width: 620px;
}


/* Werte */

.values {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  margin-top: 18px;
}

.value {
  text-align: center;

  padding: 0 12px;

  border-right: 1px solid var(--line);
}

.value:last-child {
  border-right: 0;
}

.value-icon {
  font-size: 27px;

  margin-bottom: 8px;
}

.value b {
  font-size: 12px;
  line-height: 1.35;

  display: block;
}


/* =========================================================
   KONTAKT / CTA
   ========================================================= */

.cta {
  background: var(--navy);

  color: #fff;

  padding: 35px 0;
}

.cta-grid {
  display: grid;

  grid-template-columns:
    1.45fr 1fr;

  gap: 30px;

  align-items: center;
}

.cta h2 {
  font-family:
    "Segoe Script",
    "Brush Script MT",
    cursive;

  font-weight: 400;

  font-size: 39px;

  margin: 0 0 12px;
}

.cta p {
  margin: 0 0 20px;

  color: #e0ebef;
}


/* Kontaktdaten */

.contact-row {
  display: flex;

  flex-wrap: wrap;

  gap: 16px 25px;

  font-size: 13px;
}

.contact-item {
  display: flex;

  align-items: center;

  gap: 8px;
}

.contact-item a:hover {
  text-decoration: underline;
}


/* Einzugsgebiet */

.coverage {
  min-height: 155px;

  border-radius: 8px;

  padding: 20px 22px;

  background:
    linear-gradient(
      145deg,
      #438d9d,
      #356f83
    );

  position: relative;

  overflow: hidden;
}

.coverage::after {
  content: "";

  position: absolute;

  inset:
    auto -10px 0 -10px;

  height: 70px;

  background:
    linear-gradient(
      170deg,
      transparent 0 25%,
      rgba(255, 255, 255, 0.22) 26% 28%,
      transparent 29%
    );
}

.coverage h3 {
  margin: 0 0 7px;

  font-size: 14px;
}

.coverage p {
  font-size: 12px;

  max-width: 210px;

  line-height: 1.45;
}

.coverage-icons {
  font-size: 44px;

  opacity: 0.65;

  position: absolute;

  right: 18px;
  bottom: -3px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background: #fff;

  padding: 20px 0 16px;
}

.footer-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.footer-nav {
  display: flex;

  gap: 28px;

  font-size: 12px;

  flex-wrap: wrap;

  justify-content: center;
}

.footer-nav a:hover {
  color: var(--teal-dark);
}

.footer-icon {
  font-size: 22px;
}

.copyright {
  text-align: center;

  color: #657884;

  font-size: 10px;

  line-height: 1.5;

  margin-top: 17px;
}


/* Footer Logo */

.footer-brand .brand-mark {
  width: 46px;
  height: 46px;
}

.footer-brand .brand-mark::before {
  width: 17px;
  height: 30px;
}

.footer-brand .brand-mark::after {
  width: 30px;
  height: 17px;
}

.footer-brand .heart {
  font-size: 18px;
}

.footer-brand .brand-text {
  font-size: 22px;
}

.footer-brand .brand-sub {
  font-size: 7px;
}


/* =========================================================
   TABLET
   max-width: 1050px
   ========================================================= */

@media (max-width: 1050px) {

  .container {
    width: min(
      100% - 40px,
      900px
    );
  }


  /* Navigation */

  .main-nav {
    gap: 18px;
  }


  /* Leistungen */

  .service-grid {
    grid-template-columns:
      repeat(3, 1fr);

    row-gap: 30px;
  }


  /* Über uns */

  .about {
    grid-template-columns: 1fr;
  }

  .about-photo {
    min-height: 330px;
  }

  .about-copy {
    padding: 45px 5%;
  }


  /* Kontakt */

  .cta-grid {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   SMARTPHONE
   max-width: 700px
   ========================================================= */

@media (max-width: 700px) {

  .container {
    width: min(
      100% - 28px,
      560px
    );
  }


  /* -------------------------
     Header
     ------------------------- */

  .site-header,
  .nav {
    min-height: 72px;
  }

  .nav {
    position: relative;

    flex-wrap: wrap;

    padding: 10px 0;
  }


  /* Logo */

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;

    border-width: 3px;
  }

  .brand-mark::before {
    width: 17px;
    height: 30px;
  }

  .brand-mark::after {
    width: 30px;
    height: 17px;
  }

  .heart {
    font-size: 18px;
  }

  .brand-text {
    font-size: 23px;

    letter-spacing: 1.5px;
  }

  .brand-sub {
    font-size: 7px;

    letter-spacing: 1.4px;
  }


  /* Telefon Button */

  .call {
    padding: 10px 13px;

    font-size: 13px;
  }

  .call span {
    display: none;
  }


  /* -------------------------
     Hamburger
     ------------------------- */

  .nav-toggle {
    position: absolute;

    opacity: 0;

    pointer-events: none;
  }

  .nav-toggle-label {
    width: 42px;
    height: 42px;

    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 5px;

    border: 1px solid var(--line);

    border-radius: 8px;

    cursor: pointer;

    margin-left: auto;

    order: 2;
  }

  .nav-toggle-label span {
    display: block;

    width: 21px;
    height: 2px;

    background: var(--navy);

    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }


  /* Navigation auf Handy */

  .main-nav {
    display: none;

    order: 4;

    width: 100%;

    flex-direction: column;

    gap: 0;

    padding: 8px 0 4px;

    border-top: 1px solid var(--line);
  }

  .main-nav a {
    width: 100%;

    text-align: center;

    padding: 12px;

    border-bottom: 1px solid #edf2f4;
  }

  .nav-toggle:checked ~ .main-nav {
    display: flex;
  }


  /* Hamburger wird zu X */

  .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);
  }


  /* -------------------------
     Hero
     ------------------------- */

  .hero {
    min-height: 0;

    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.88) 58%,
        rgba(255, 255, 255, 0.35) 100%
      ),
      url("images/low.png")
      68% center / cover no-repeat;
  }

  .hero-inner {
    padding: 44px 0 50px;
  }

  .hero-logo {
    font-size: 40px;

    letter-spacing: 2px;
  }

  .hero-logo small {
    font-size: 9px;

    letter-spacing: 2px;
  }


  /* Handschrift wird mobil unter dem Logo platziert */

  .hero-script {
    position: static;

    width: fit-content;

    margin: 28px 0 0 auto;

    font-size: 22px;

    transform: rotate(-6deg);
  }


  .hero h1 {
    font-size: 25px;

    margin: 25px 0 12px;
  }

  .hero p {
    font-size: 15px;

    line-height: 1.55;
  }


  /* Button volle Breite */

  .btn {
    width: 100%;

    justify-content: center;

    text-align: center;

    padding: 14px 16px;
  }


  /* -------------------------
     Leistungen
     ------------------------- */

  .services {
    padding: 34px 0 38px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .eyebrow::before,
  .eyebrow::after {
    width: 22px;

    margin: 0 6px;
  }

  .section-title {
    font-size: 23px;

    line-height: 1.25;
  }

  .section-lead {
    font-size: 14px;

    margin-bottom: 24px;
  }

  .service-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 28px 14px;
  }

  .service-icon {
    width: 64px;
    height: 64px;

    font-size: 29px;
  }

  .service h3 {
    font-size: 13px;
  }

  .service p {
    font-size: 11px;
  }


  /* -------------------------
     Über uns
     ------------------------- */

  .about-photo {
    min-height: 280px;
  }

  .about-photo .script {
    right: 16px;

    top: 35px;

    width: 180px;

    font-size: 24px;
  }

  .about-copy {
    padding: 36px 0;
  }

  .about-copy h2 {
    font-size: 23px;
  }

  .about-copy p {
    font-size: 14px;
  }


  /* Werte 2 x 2 */

  .values {
    grid-template-columns:
      repeat(2, 1fr);

    gap: 20px 0;
  }

  .value {
    padding: 0 10px;
  }

  .value:nth-child(2) {
    border-right: 0;
  }

  .value:nth-child(3),
  .value:nth-child(4) {
    border-top: 1px solid var(--line);

    padding-top: 18px;
  }


  /* -------------------------
     Kontakt
     ------------------------- */

  .cta {
    padding: 34px 0;
  }

  .cta h2 {
    font-size: 31px;

    line-height: 1.15;
  }

  .contact-row {
    flex-direction: column;

    gap: 13px;
  }

  .contact-item {
    font-size: 13px;
  }

  .coverage {
    min-height: 145px;
  }


  /* -------------------------
     Footer
     ------------------------- */

  footer {
    padding-top: 24px;
  }

  .footer-top {
    flex-direction: column;

    gap: 18px;
  }

  .footer-nav {
    gap: 14px 20px;
  }

  .copyright {
    padding-inline: 8px;
  }

}


/* =========================================================
   SEHR KLEINE SMARTPHONES
   max-width: 390px
   ========================================================= */

@media (max-width: 390px) {

  .container {
    width: min(
      100% - 22px,
      360px
    );
  }


  .brand-text {
    font-size: 21px;
  }

  .brand-sub {
    font-size: 6px;
  }


  /* Auf sehr kleinen Displays nur das Icon anzeigen */

  .call {
    display: none;
  }


  /* Hero */

  .hero-logo {
    font-size: 35px;
  }

  .hero h1 {
    font-size: 22px;
  }


  /* Leistungen untereinander */

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service p {
    max-width: 240px;

    margin-inline: auto;
  }

}


/* =========================================================
   REDUZIERTE ANIMATIONEN
   Für Nutzer mit "Reduce Motion"
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

}