/* =========================================================
   SVB-MV – SACHVERSTÄNDIGENBÜRO BERND HACKBARTH
   KOMPLETTE STYLE.CSS
========================================================= */

:root {
  --navy-950: #001c33;
  --navy-900: #002846;
  --navy-800: #003b68;
  --navy-700: #075485;

  --blue-600: #007fd3;
  --blue-500: #0b98e8;
  --cyan-400: #20b8f3;

  --white: #ffffff;
  --gray-50: #f7f9fb;
  --gray-100: #eef3f6;
  --gray-200: #dce6ec;
  --gray-500: #66798a;

  --text: #12314b;
  --text-dark: #082640;
  --green: #1fa85b;

  --border: rgba(0, 59, 104, 0.14);

  --shadow-small:
    0 7px 20px rgba(0, 38, 68, 0.12);

  --shadow-medium:
    0 16px 38px rgba(0, 38, 68, 0.18);

  --radius-small: 10px;
  --radius-medium: 18px;

  --content-width: 1180px;
  --header-height: 58px;
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-width: 320px;
  overflow-x: hidden;

  background: var(--gray-50);
  color: var(--text);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body,
button,
input,
textarea,
select {
  font-family: Arial, Helvetica, sans-serif;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

address {
  font-style: normal;
}

main {
  display: block;
}

section {
  position: relative;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

::selection {
  background: var(--cyan-400);
  color: var(--white);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 4px;
}


/* =========================================================
   HEADER
========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;

  min-height: var(--header-height);
  padding: 7px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  background:
    linear-gradient(
      135deg,
      #002d4f,
      #004b76
    );

  border-bottom: 1px solid rgba(255, 255, 255, 0.13);

  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   LOGO
========================================================= */

.logo {
  position: relative;
  z-index: 1002;

  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo a {
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: 46px;
  height: 46px;

  object-fit: contain;
  object-position: center;

  border-radius: 5px;
}


/* =========================================================
   HAMBURGER
========================================================= */

.menu-button {
  position: relative;
  z-index: 1002;

  width: 45px;
  height: 42px;
  padding: 9px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9px;

  background: rgba(255, 255, 255, 0.07);

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.menu-button:active {
  transform: scale(0.96);
}

.menu-button span {
  display: block;

  width: 100%;
  height: 3px;

  border-radius: 999px;
  background: var(--white);

  transition:
    transform 0.28s ease,
    opacity 0.22s ease;
}

.menu-button.menu-open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-button.menu-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.menu-open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

header nav {
  position: absolute;
  top: 100%;
  left: 0;

  width: 100%;
  max-height: 0;
  padding: 0 18px;

  display: flex;
  flex-direction: column;

  overflow: hidden;
  opacity: 0;
  visibility: hidden;

  background: #002b4d;

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow: var(--shadow-medium);

  transition:
    max-height 0.35s ease,
    padding 0.35s ease,
    opacity 0.25s ease,
    visibility 0.25s ease;
}

header nav.nav-open {
  max-height: 360px;
  padding: 14px 18px 22px;

  opacity: 1;
  visibility: visible;
}

header nav a {
  width: 100%;
  padding: 14px 7px;

  color: var(--white);
  font-weight: 700;

  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

header nav a:last-child {
  border-bottom: 0;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  width: 100%;
  min-height: 0;

  overflow: hidden;

  background: var(--navy-950);
}

.hero > img {
  position: relative;

  width: 100%;
  height: auto;

  display: block;

  object-fit: contain;

  filter: none;
  transform: none;

  opacity: 1;
}

.hero::before,
.hero::after {
  display: none;
}


/* =========================================================
   HERO-TEXT
========================================================= */

.hero-text {
  position: absolute;

  z-index: 2;

  top: 5%;
  left: 4%;

  width: 92%;
  max-width: none;

  margin: 0;
  padding: 0;

  color: var(--white);
}

.hero-text h1 {
  width: 100%;
  max-width: none;

  margin: 0 0 2.2%;

  color: var(--white);

  font-size: clamp(
    1.08rem,
    4.6vw,
    3.7rem
  );

  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;

  text-wrap: balance;

  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.9),
    0 4px 8px rgba(0, 0, 0, 0.65);
}

.hero-text p {
  margin: 0 0 2.2%;

  color: var(--white);

  font-size: clamp(
    0.62rem,
    1.65vw,
    1.15rem
  );

  line-height: 1.35;
  font-weight: 800;

  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.9),
    0 3px 6px rgba(0, 0, 0, 0.55);
}


/* =========================================================
   TERMIN-BUTTON
========================================================= */

.button {
  position: relative;

  min-height: 0;

  padding:
    clamp(7px, 1.35vw, 14px)
    clamp(13px, 2.5vw, 25px);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;

  border-radius:
    clamp(8px, 1.4vw, 14px);

  background:
    linear-gradient(
      135deg,
      #20b8f3,
      #007fd3
    );

  color: var(--white);

  font-size: clamp(
    0.62rem,
    1.35vw,
    1rem
  );

  line-height: 1.2;
  font-weight: 800;
  text-align: center;

  box-shadow:
    0 5px 15px rgba(0, 70, 120, 0.3);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);

  filter: brightness(1.05);

  box-shadow:
    0 9px 22px rgba(0, 70, 120, 0.35);
}

.button:active {
  transform: translateY(0);
}

.hero > img.hero-image-fade {
  opacity: 1;
  transform: none;
}


/* =========================================================
   SACHVERSTÄNDIGER
========================================================= */

.expert-intro {
  padding: 24px 18px;

  background: var(--gray-50);
}

.expert-card {
  width: min(100%, 760px);

  margin: 0 auto;

  padding: 14px 18px;

  display: flex;
  align-items: center;

  gap: 18px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);

  box-shadow: var(--shadow-small);
}

.expert-photo {
  width: 100px;
  height: 100px;

  flex: 0 0 100px;

  overflow: hidden;

  border-radius: 14px;

  background: var(--gray-100);
}

.expert-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.expert-text {
  min-width: 0;
}

.expert-text h2 {
  margin: 0 0 1px;

  color: var(--navy-950);

  font-size: 1.25rem;
  line-height: 1.2;
}

.expert-text h3 {
  margin: 0 0 5px;

  color: var(--blue-600);

  font-size: 0.95rem;
  line-height: 1.25;
}

.expert-text p {
  margin: 0;

  color: var(--gray-500);

  font-size: 0.94rem;
  line-height: 1.45;
}


/* =========================================================
   LEISTUNGEN
========================================================= */

#leistungen {
  padding: 76px 18px 88px;

  background:
    linear-gradient(
      180deg,
      #fafcfd 0%,
      var(--gray-100) 100%
    );
}

#leistungen,
#kontakt {
  scroll-margin-top: calc(var(--header-height) + 10px);
}

#leistungen h2,
#kontakt h2 {
  margin-bottom: 42px;

  color: var(--navy-950);

  font-size:
    clamp(2rem, 7vw, 3.35rem);

  line-height: 1.08;
  letter-spacing: -0.025em;

  text-align: center;
}

#leistungen h2::after,
#kontakt h2::after {
  content: "";

  display: block;

  width: 76px;
  height: 5px;

  margin: 15px auto 0;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      var(--cyan-400),
      var(--blue-600)
    );
}


/* =========================================================
   KARTEN
========================================================= */

.cards {
  width: min(100%, var(--content-width));

  margin: 0 auto;

  display: grid;

  grid-template-columns: 1fr;

  gap: 26px;
}

.card {
  position: relative;

  min-height: 100%;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  border: 1px solid var(--border);

  border-radius: var(--radius-medium);

  background: #ffffff;

  box-shadow: var(--shadow-small);

  opacity: 0;

  transform: translateY(36px);

  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-7px);

  border-color:
    rgba(0, 126, 211, 0.25);

  box-shadow: var(--shadow-medium);
}

.card img {
  width: 100%;
  height: 220px;

  object-fit: cover;
  object-position: center;

  transition:
    transform 0.55s ease,
    filter 0.35s ease;
}

.card:hover img {
  transform: scale(1.045);

  filter:
    saturate(1.06)
    contrast(1.03);
}

.card h3 {
  padding: 23px 21px 8px;

  color: var(--text-dark);

  font-size: 1.3rem;
  line-height: 1.25;
}

.card > p {
  flex-grow: 1;

  padding: 0 21px 27px;

  color: var(--gray-500);

  font-size: 1rem;
}

.card::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 5px;

  background:
    linear-gradient(
      90deg,
      var(--cyan-400),
      var(--blue-600)
    );

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.3s ease;
}

.card:hover::after {
  transform: scaleX(1);
}

.card:nth-child(1) {
  transition-delay: 0.04s;
}

.card:nth-child(2) {
  transition-delay: 0.09s;
}

.card:nth-child(3) {
  transition-delay: 0.14s;
}

.card:nth-child(4) {
  transition-delay: 0.19s;
}

.card:nth-child(5) {
  transition-delay: 0.24s;
}


/* =========================================================
   KARTEN – MEHR ERFAHREN / AUSKLAPPEN
========================================================= */

.card-details {
  width: 100%;

  margin-top: auto;

  border-top: 1px solid var(--gray-200);
}

.card-details summary {
  position: relative;

  width: 100%;

  padding: 15px 48px 17px 21px;

  display: block;

  color: var(--blue-600);

  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 800;

  cursor: pointer;

  list-style: none;

  user-select: none;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

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

.card-details summary::after {
  content: "↓";

  position: absolute;

  top: 50%;
  right: 21px;

  transform: translateY(-50%);

  color: var(--blue-600);

  font-size: 1.15rem;
  line-height: 1;

  transition: transform 0.25s ease;
}

.card-details summary:hover {
  color: var(--navy-800);

  background: var(--gray-50);
}

.card-details[open] summary {
  color: var(--navy-800);

  background: var(--gray-50);
}

.card-details[open] summary::after {
  content: "↑";
}

.card-details .less-text {
  display: none;
}

.card-details[open] .more-text {
  display: none;
}

.card-details[open] .less-text {
  display: inline;
}

.card-more {
  padding: 4px 0 9px;

  border-top:
    1px solid rgba(0, 59, 104, 0.08);

  background:
    linear-gradient(
      180deg,
      rgba(247, 249, 251, 0.65),
      rgba(255, 255, 255, 0)
    );
}

.card-more p {
  padding: 10px 21px;

  color: var(--gray-500);

  font-size: 0.95rem;
  line-height: 1.6;
}

.card-more p + p {
  padding-top: 4px;
}


/* =========================================================
   KONTAKT
========================================================= */

#kontakt {
  position: relative;

  padding: 82px 20px 92px;

  overflow: hidden;

  text-align: center;

  color: var(--white);

  background:
    linear-gradient(
      145deg,
      rgba(0, 44, 78, 0.99),
      rgba(0, 24, 44, 0.995)
    );
}

#kontakt::before {
  content: "";

  position: absolute;

  top: -130px;
  right: -130px;

  width: 340px;
  height: 340px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(32, 184, 243, 0.27),
      transparent 70%
    );
}

#kontakt::after {
  content: "";

  position: absolute;

  bottom: -170px;
  left: -170px;

  width: 380px;
  height: 380px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(0, 126, 211, 0.2),
      transparent 72%
    );
}

#kontakt > * {
  position: relative;
  z-index: 2;
}

#kontakt h2 {
  color: var(--white);
}

#kontakt h2::after {
  background:
    linear-gradient(
      90deg,
      #9ae5ff,
      var(--cyan-400)
    );
}

#kontakt p,
#kontakt address {
  width: min(100%, 650px);

  margin-right: auto;
  margin-left: auto;

  color: rgba(255, 255, 255, 0.9);

  font-size: 1.07rem;
}

#kontakt p {
  margin-bottom: 16px;
}

#kontakt address {
  margin-bottom: 22px;
}

#kontakt strong {
  display: inline-block;

  margin-bottom: 10px;

  padding: 14px 18px;

  color: var(--white);

  font-size: 1.25rem;

  border:
    1px solid rgba(255, 255, 255, 0.14);

  border-radius: 14px;

  background:
    rgba(255, 255, 255, 0.06);
}

#kontakt a:not(.button) {
  display: inline-block;

  padding: 2px 4px;

  color: #91e0ff;

  font-weight: 700;

  border-radius: 5px;
}

#kontakt a:not(.button):hover {
  color: var(--white);

  background:
    rgba(255, 255, 255, 0.08);
}

#kontakt .button {
  margin-top: 18px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 26px 18px;

  background: #00182b;

  color:
    rgba(255, 255, 255, 0.76);

  font-size: 0.9rem;

  text-align: center;

  border-top:
    1px solid rgba(255, 255, 255, 0.08);
}

footer p {
  width: min(100%, var(--content-width));

  margin: 0 auto;
}


/* =========================================================
   ANIMATION
========================================================= */

body {
  animation:
    page-fade-in 0.35s ease both;
}

.hero-text h1 {
  animation:
    hero-heading-in 0.6s ease 0.08s both;
}

.hero-text p {
  animation:
    hero-text-in 0.6s ease 0.16s both;
}

.hero-text .button {
  animation:
    hero-button-in 0.6s ease 0.24s both;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes hero-heading-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-text-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-button-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   SCHWEBENDE KONTAKT-BUTTONS
========================================================= */

.contact-buttons {
  position: fixed;

  left: 14px;
  bottom: 14px;

  z-index: 1300;

  display: flex;
  flex-direction: column;

  align-items: flex-start;

  gap: 8px;
}

.quick-contact {
  position: relative;

  width: 52px;
  height: 52px;

  min-width: 52px;
  min-height: 52px;

  padding: 6px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #ffffff;

  border:
    1px solid rgba(255, 255, 255, 0.48);

  border-radius: 50%;

  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.24);

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.phone-contact {
  background:
    linear-gradient(
      135deg,
      #27aaf4,
      #0877bd
    );
}

.whatsapp-contact {
  background:
    linear-gradient(
      135deg,
      #2fd978,
      #13a856
    );
}

.contact-icon {
  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.08);
}

.contact-icon svg {
  display: block;

  width: 23px;
  height: 23px;

  fill: currentColor;
}

.contact-label {
  display: none;
}

.quick-contact:hover {
  transform: translateY(-2px);

  filter: brightness(1.07);
}

.quick-contact:active {
  transform: scale(0.96);
}


/* =========================================================
   KLEINE SMARTPHONES
========================================================= */

@media (max-width: 420px) {

  :root {
    --header-height: 56px;
  }

  header {
    min-height: 56px;
    padding: 6px 14px;
  }

  .logo img {
    width: 44px;
    height: 44px;
  }

  .menu-button {
    width: 43px;
    height: 40px;
    padding: 8px;
  }

  .hero-text {
    top: 4.5%;
    left: 4.5%;

    width: 91%;
  }

  .hero-text h1 {
    width: 100%;
    max-width: none;

    margin-bottom: 2%;

    font-size: 4.65vw;
    line-height: 1.05;

    text-wrap: balance;
  }

  .hero-text p {
    margin-bottom: 2%;

    font-size: 2.15vw;

    line-height: 1.32;
  }

  .hero-text .button {
    width: auto;

    padding:
      1.7vw
      3.2vw;

    font-size: 2.15vw;

    border-radius: 8px;
  }


  .expert-intro {
    padding: 16px 12px;
  }

  .expert-card {
    padding: 10px 11px;

    gap: 11px;

    border-radius: 14px;
  }

  .expert-photo {
    width: 82px;
    height: 82px;

    flex: 0 0 82px;

    border-radius: 11px;
  }

  .expert-text h2 {
    font-size: 1.03rem;
  }

  .expert-text h3 {
    margin-bottom: 3px;

    font-size: 0.79rem;
  }

  .expert-text p {
    font-size: 0.76rem;
    line-height: 1.35;
  }


  #leistungen {
    padding:
      64px 14px 76px;
  }

  .cards {
    gap: 22px;
  }

  .card img {
    height: 190px;
  }

  .card h3 {
    padding:
      20px 18px 7px;

    font-size: 1.2rem;
  }

  .card > p {
    padding:
      0 18px 24px;
  }

  .card-details summary {
    padding:
      14px 44px 16px 18px;

    font-size: 0.92rem;
  }

  .card-details summary::after {
    right: 18px;
  }

  .card-more p {
    padding:
      9px 18px;

    font-size: 0.92rem;
  }

  #kontakt {
    padding:
      70px 18px 82px;
  }

  #kontakt p,
  #kontakt address {
    font-size: 1rem;
  }

  #kontakt .button {
    width: 100%;

    font-size: 1rem;

    padding: 15px 20px;
  }

  .contact-buttons {
    left: 12px;
    bottom: 12px;

    gap: 7px;
  }

  .quick-contact {
    width: 50px;
    height: 50px;

    min-width: 50px;
    min-height: 50px;
  }

  .contact-icon {
    width: 36px;
    height: 36px;

    flex-basis: 36px;
  }

  .contact-icon svg {
    width: 22px;
    height: 22px;
  }
}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 700px) {

  :root {
    --header-height: 64px;
  }

  header {
    padding: 8px 34px;
  }

  .logo img {
    width: 48px;
    height: 48px;
  }

  .menu-button {
    display: none;
  }

  header nav {
    position: static;

    width: auto;
    max-height: none;

    padding: 0;

    flex-direction: row;
    align-items: center;

    gap: 26px;

    overflow: visible;

    opacity: 1;
    visibility: visible;

    background: transparent;

    border: 0;

    box-shadow: none;
  }

  header nav a {
    position: relative;

    width: auto;

    padding: 7px 0;

    border: 0;

    font-size: 0.92rem;
  }

  header nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    border-radius: 999px;

    background: var(--cyan-400);

    transition:
      width 0.25s ease;
  }

  header nav a:hover::after {
    width: 100%;
  }

  .hero-text {
    top: 12%;
    left: 4%;

    width: 92%;
  }

  .hero-text h1 {
    font-size: 4.15vw;
  }

  .hero-text p {
    font-size: 1.35vw;
  }


  .expert-intro {
    padding: 28px 34px;
  }

  .expert-card {
    padding: 16px 20px;

    gap: 21px;
  }

  .expert-photo {
    width: 110px;
    height: 110px;

    flex: 0 0 110px;
  }

  .expert-text h2 {
    font-size: 1.35rem;
  }

  .expert-text h3 {
    font-size: 1rem;
  }

  .expert-text p {
    font-size: 0.98rem;
  }


  #leistungen {
    padding:
      92px 34px 105px;
  }

  .cards {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 28px;
  }

  .card img {
    height: 240px;
  }

  #kontakt {
    padding:
      96px 34px 105px;
  }

  .contact-buttons {
    left: 18px;
    bottom: 18px;
  }

  .quick-contact {
    width: 54px;
    height: 54px;

    min-width: 54px;
    min-height: 54px;
  }
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 1050px) {

  header {
    padding:
      8px
      max(
        42px,
        calc((100vw - var(--content-width)) / 2)
      );
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  .hero-text {
    top: 14%;

    left:
      max(
        4%,
        calc((100vw - var(--content-width)) / 2)
      );

    width:
      min(
        92%,
        var(--content-width)
      );
  }

  .hero-text h1 {
    width: 100%;
    max-width: none;

    font-size:
      clamp(2.2rem, 3.8vw, 3.8rem);

    line-height: 1.05;
  }

  .hero-text p {
    font-size:
      clamp(0.85rem, 1.15vw, 1.15rem);
  }

  .hero-text .button {
    font-size:
      clamp(0.8rem, 1vw, 1rem);
  }


  .expert-intro {
    padding: 32px 50px;
  }

  .expert-card {
    width: min(100%, 800px);

    padding: 17px 22px;
  }

  .expert-photo {
    width: 115px;
    height: 115px;

    flex: 0 0 115px;
  }


  #leistungen {
    padding:
      110px
      max(
        50px,
        calc((100vw - var(--content-width)) / 2)
      )
      125px;
  }

  .cards {
    grid-template-columns:
      repeat(6, minmax(0, 1fr));

    gap: 30px;
  }

  .card {
    grid-column: span 2;
  }

  .card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .card:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .card img {
    height: 235px;
  }

  #kontakt {
    padding:
      115px
      max(
        50px,
        calc((100vw - 900px) / 2)
      )
      125px;
  }

  #kontakt p,
  #kontakt address {
    font-size: 1.12rem;
  }

  footer {
    padding: 30px 24px;
  }
}


/* =========================================================
   GROSSE BILDSCHIRME
========================================================= */

@media (min-width: 1500px) {

  :root {
    --content-width: 1280px;
  }

  .cards {
    gap: 34px;
  }

  .card img {
    height: 255px;
  }
}


/* =========================================================
   HOVER NUR MIT MAUS
========================================================= */

@media (hover: none) {

  .card:hover {
    transform: none;

    box-shadow:
      var(--shadow-small);
  }

  .card:hover img {
    transform: none;
    filter: none;
  }

  .card:hover::after {
    transform: scaleX(0);
  }

  .card-details summary:hover {
    color: var(--blue-600);
    background: transparent;
  }

  .card-details[open] summary:hover {
    color: var(--navy-800);
    background: var(--gray-50);
  }
}


/* =========================================================
   WENIGER BEWEGUNG
========================================================= */

@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;
  }

  .card {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
}
