:root {
  --primary-text-color: #000;
  --secondary-text-color: #747474;
  --tertiary-text-color: #303030;
  --secondary-text-color-hover: #5c5c5c;
  --white: #fff;
  --black: 0, 0, 0;
  --emk-red: 229, 1, 39;

  --card-grid-x-padding: 20px;
  --card-grid-y-padding: 64px;

  --font-family: 'Roboto', sans-serif;
  --font-size: 48px;
}

html {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: inherit;
}

html,
body {
  height: 100dvh;
  display: block;
  overflow-y: scroll;
}

.button-primary {
  background-color: var(--secondary-text-color);
  border: none;
  color: #fff;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 8px;
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.2;
  width: max-content;
  max-width: 100%;
  white-space: wrap;
}

.button-primary:hover {
  background-color: var(--secondary-text-color-hover);
}

.ammer-nagoldtal-section {
  width: 100%;
  min-height: 100%;
  background-color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content minmax(0, 1fr) max-content;
  overflow: hidden;
}

.hero {
  position: relative;
  background-image: url('./assets/header.jpg');
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 64px;
}

.hero-content {
  display: flex;
  width: 100%;
  max-width: 100%;
  flex-direction: column;
}

.hero-title {
  color: var(--tertiary-text-color);
  letter-spacing: -2.16px;
  font-family: var(--font-family);
  font-size: var(--font-size);
  font-weight: 700;
  line-height: 1.2;
  z-index: 1;
}

.hero-subtitle {
  display: flex;
  width: 100%;
  flex-direction: column;
  z-index: 1;
}

.hero-subtitle span {
  color: var(--tertiary-text-color);
  margin-top: 8px;
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
}

.image-container {
  position: absolute;
  top: 0;
  right: 5%;
  height: 100%;
  width: 20%;
  display: none;
  align-items: center;
  z-index: 0;
}

.hero-logo {
  max-height: 80%;
  width: 100%;
  object-fit: contain;
  z-index: 0;
}

.card-grid {
  position: relative;
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
  padding: var(--card-grid-y-padding) var(--card-grid-x-padding);
  gap: 50px;
}

.card-grid-heading {
  width: 100%;
  max-width: 100%;
  color: var(--tertiary-text-color);
  letter-spacing: -0.48px;
  font-family: var(--font-family);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.card-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));

  gap: 48px;
}

.card {
  position: relative;
  border-radius: 8px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 12px;
  box-shadow: 0 2px 4px 0 rgba(var(--black), 0.2);
  height: 400px;
  /* max-width: 400px; */
}

.card:hover {
  box-shadow: 0 4px 8px 0 rgba(var(--black), 0.2);
  text-decoration: underline;
  text-decoration-color: var(--white);
  cursor: pointer;
}

.card-content {
  display: flex;
  width: calc(100% - 2 * 16px);
  flex-direction: column;
  padding: 12px;

  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2.3px);
  -webkit-backdrop-filter: blur(2.3px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-title {
  color: var(--white);
  letter-spacing: -0.48px;
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 4px;
}

.card-description {
  color: var(--white);
  margin-top: 8px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.datenschutz-card {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--primary-text-color);
  display: inline-block;
}

.page-footer {
  --footer-padding: 64px;
  background-color: #fff;
  border-top: 1px solid #d9d9d9;
  display: flex;
  width: calc(100% - 2 * var(--footer-padding));
  align-items: flex-start;
  gap: 16px;
  overflow: hidden;
  color: var(--secondary-text-color);
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 12px var(--footer-padding);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.footer-content {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.footer-button {
  color: var(--secondary-text-color);
  text-decoration: none;
  width: 100%;
  border: none;
  background-color: transparent;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  width: max-content;
}

.footer-button:hover {
  color: var(--secondary-text-color-hover);
  text-decoration: underline;
  cursor: pointer;
}

.window-back-button {
  position: absolute;
  top: calc(var(--card-grid-y-padding) / 2 - 11px);
  left: var(--card-grid-x-padding);
  display: flex;
  align-items: center;
  color: var(--secondary-text-color);
  text-decoration: none;
  border: none;
  background-color: transparent;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  width: max-content;
}

.window-back-button:hover {
  color: var(--secondary-text-color-hover);
  text-decoration: underline;
  cursor: pointer;
}

.window-back-button img {
  width: 15px;
  height: 15px;
  margin-right: 8px;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  :root {
    --card-grid-x-padding: 20px;
    --card-grid-y-padding: 32px;
  }

  .card-grid {
    gap: 18px;
  }

  .card-container {
    gap: 12px;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  :root {
    --card-grid-x-padding: 50px;
    --card-grid-y-padding: 40px;
  }

  .card-grid {
    gap: 18px;
  }

  .card-container {
    gap: 12px;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  :root {
    --card-grid-x-padding: 100px;
    --card-grid-y-padding: 64px;
  }

  .card-grid {
    gap: 18px;
  }

  .card-container {
    gap: 24px;
  }

  .image-container {
    display: flex;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  :root {
    --card-grid-x-padding: 150px;
  }

  .card-container {
    gap: 36px;
  }
}

@media only screen and (max-width: 992px) {
  .hero {
    max-width: 100%;
    padding: 0 20px 20px;
  }

  .hero-title {
    max-width: 100%;
    font-size: 40px;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-subtitle span {
    font-size: 20px;
  }

  .card-container {
    max-width: 100%;
  }

  .page-footer {
    max-width: 100%;
    padding: 0 20px;
    width: calc(100% - 20 * 2px);
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  :root {
    --card-grid-x-padding: 225px;
  }

  .card-container {
    gap: 48px;
  }
}