* {
  box-sizing: border-box;
}

*/::before */::after {
  box-sizing: border-box;
}

html,
body {
  background-color: #fffefb;
  background-image: url(../images/bg.jpg);
  background-repeat: repeat-x;
  background-position: left top;
}

/* remove default spacing */
/* force styling of type through styling, rather than elements */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* min body height */
body {
  display: grid;
  /* fallback height */
  min-height: 100vh;

  /* new small viewport height for modern browsers */
  min-height: 100svh;
}

/* responsive images/videos */
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
h1 {
  text-align: left;
  font-family: Georgia, "Trebuchet MS", Verdana;
  font-style: italic;
  font-weight: normal;
  font-size: 1.2rem;
  color: #cc6600;
}
h2 {
  text-align: left;
  font-family: Georgia, "Trebuchet MS", Verdana;
  font-style: italic;
  font-weight: normal;
  font-size: 1.2rem;
  color: #cc6600;
  padding: 30px 20px;
}
h3 {
  font-weight: normal;
  text-align: left;
  font-family: Georgia, "Trebuchet MS", Verdana;
  font-style: italic;
  font-size: medium;
  color: #232216;
}

h4 {
  color: #a9a867;
  font-family: Georgia, "Trebuchet MS", Verdana;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: normal;
}

h5 {
  color: #2b1804;
  font-family: "Times New Roman", Times, serif, "Trebuchet MS", Verdana;
  font-size: 0.9rem;
  font-style: normal;
  padding-bottom: 5px;
  padding-top: 5px;
}

h6 {
  color: #cc6600;
  font-family: Georgia, "Trebuchet MS", Verdana;
  font-style: bold italic;
  font-size: 0.8em;
  padding-bottom: 10px;
  padding-top: 5px;
  padding-left: 20px;
}

.subtitle p {
  font-weight: normal;
  text-align: left;
  font-family: Georgia, "Trebuchet MS", Verdana;
  font-style: italic;

  color: #232216;
  margin-top: 30px;
  margin-bottom: 0;
  padding-left: 5px;
}

li {
  font-size: 1rem;
  max-width: var(--p-max-width, 65ch);
}
hr {
  display: block;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  margin-left: auto;

  border-style: inset;
  border-width: 0.3px;
  color: lightgrey;
}

.wrapper {
  max-width: 1024px;
  margin-inline: auto;
  color: #666633;
  font-style: italic;
  line-height: 1.4em;
  text-align: justify;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  margin-bottom: 15px;
  border-color: #555;
}

.wrapper > * {
  border-radius: 5px;
  padding: 0;
}

.wrapper {
  display: grid;
  grid-template-columns: repeat(12, [col-start] 1fr);
  grid-template-rows: repeat(auto);
}

.wrapper > * {
  grid-column: col-start / span 12;
}

.main-head {
  display: grid;
  justify-content: center;
}

.main-head img {
  width: 100%;
  height: auto;
}

.content p {
  letter-spacing: 0, 05em;
  text-align: justify;
  font-weight: lighter;
  padding: 5px;
}
.content ul {
  letter-spacing: 0, 05em;
  text-align: justify;
  font-weight: lighter;
  padding: 5px;
  margin-top: 20px;
  margin-left: 10px;
}
.content ul li {
  margin-bottom: 10px;
  list-style: none;
}
.side {
  text-align: left;
}

.ad {
  text-align: left;
}

.main-nav {
  font-size: 1em;
  line-height: 3em;
  text-align: left;
}

nav ul {
  list-style: none;
}

a:link,
a:visited,
a:active,
a:hover {
  color: #2b1804;
  font-weight: normal;
  text-decoration: none;
}

a:active,
a:hover {
  color: #cc6600;
  text-decoration: underline;
}

ul li {
  margin: 0;

  list-style: none;

  text-align: left;
}

.container {
  position: relative;
  min-height: fit-content;
}

.container .image-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding-top: 30px;
  padding-bottom: 20px;
}

.container .image-container .image {
  height: 80px;
  width: 110px;
  border: 1px solid rgb(7, 7, 7);
  box-shadow: 0 5px 15px rgb(145, 139, 139);
  overflow: hidden;
  cursor: pointer;
}

.container .image-container .image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: 0.2s linear;
}

.container .image-container .image:hover img {
  transform: scale(1.1);
}

.tables-container {
  display: grid;
  gap: 15px;
  max-width: 60ch;
  align-items: center;
}

.table-section {
  margin-bottom: 20px;
}

.table-title {
  color: #cc6600;
  text-align: center;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #666633;
  font-size: 1rem;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.pricing-table td {
  padding: 5px;
  text-align: center;
  border: 1px solid #666633;
}

.price {
  color: #666633;
}
.note {
  text-align: center;
  font-style: italic;
  color: #666633;
  margin-top: 30px;
  padding: 15px;
}

.main-footer {
  display: grid;
  justify-content: center;
}
.main-footer p {
  text-align: center;
  font-size: small;
  height: 50px;
  background-image: url("../images/reit-ohne.jpg");
  background-repeat: no-repeat;
  background-position: bottom center;
  margin-bottom: 10px;
  margin-top: 20%;
}

.copy {
  margin-top: 20px;
  font-size: x-small;
  color: #555;
  margin-bottom: 0;
  margin-left: 10px;
}
.card {
  display: grid;
  gap: 1rem;
  max-width: 65ch;
  padding-top: 15px;
}

.card > img {
  display: block;
  align-self: center;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-width: 120px;
  margin-top: 10px;
  margin-left: 5px;
  border: 1px solid rgb(7, 7, 7);
  box-shadow: 0 5px 15px rgb(145, 139, 139);
  transition: 0.2s linear;
  overflow: hidden;
  cursor: pointer;
}

.card-content {
  display: grid;
}

.card-title {
  text-align: left;
  font-family: Georgia, "Trebuchet MS", Verdana;
  font-style: italic;
  font-weight: semibold;
  font-size: 1.1rem;
  color: #a9a867;
  text-decoration: none;
  padding-top: 20px;
}

.card-text h5 {
  text-align: justify;
  font: inherit;
  font-style: italic;
  line-height: normal;
  font-size: 0.85rem;
  padding-top: 5px;

  color: #666633;
}
.card-text h4 {
  text-align: left;
  font-family: Georgia, "Trebuchet MS", Verdana;
  font-style: italic;
  font-weight: semibold;
  font-size: 14px;
  letter-spacing: normal;
  color: #666633;
  text-decoration: none;
}
.card-text h6 {
  padding-bottom: 10px;
  padding-top: 5px;
  font-size: 0.8em;
}

@media (max-width: 40em) {
  .content p {
    padding: 0 20px;
  }
  .content ul li a {
    margin-bottom: 10px;
    padding-left: 10px;
  }
  .side {
    grid-column: col-start / span 3;
    grid-row: 3;
  }

  .ad {
    grid-column: col-start / span 3;
    grid-row: 4;
  }

  .main-nav {
    background-image: linear-gradient(#ebf0ea, #f6ecd3);
    height: 50px;
    padding: 10px 20px 20px 20px;
  }

  .main-nav ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, auto));
    /* Automatische Spaltenbreite */

    grid-gap: 7px;
    /* Abstand zwischen den Buttons */

    align-items: center;

    /* Zentriere die Elemente vertikal */

    padding-top: 5px;
  }

  .main-nav li a {
    display: block;

    text-decoration: none;
    font-size: small;

    line-height: 30px;

    color: #555;
    /* Dunklerer Text */
    border: 1px solid #999898;
    /* Hellgraue Rahmenlinie */
    border-radius: 5px;
    /* Abgerundete Ecken */
    text-align: center;
    /* Zentriert Text in den Buttons */
    white-space: nowrap;
    /* Verhindert Textumbruch */
  }

  /* Optionale Hover-Effekte */
  :link a:active,
  a:hover {
    color: #cc6600;
    text-decoration: underline;
  }
  .title {
    padding: 20px;
  }
  .tables-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .pricing-table th,
  .pricing-table td {
    padding: 10px 6px;
    border: 1px solid#666633;
  }

  .pricing-table {
    font-size: 0.85rem;
  }
  .card {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
  }
  h3 {
    padding-left: 15px;
  }
  .card > img {
    margin-top: 15px;
  }

  .subtitle {
    padding: 20px;
  }
}

@media (min-width: 40em) {
  .main-head {
    grid-column: col-start 1 / span 12;
  }
  .main-nav {
    grid-column: col-start / span 2;
    grid-row: 2 / 4;
    padding-top: 80px;
  }

  .content {
    grid-column: col-start 3 / span 8;
    grid-row: 2 / 4;
    padding-top: 20px;
  }
  .content {
    margin-top: 10px;
  }
  .content ul li a {
    margin-bottom: 10px;
    padding-left: 10px;
  }
  .container {
    grid-column: col-start 3 / span 8;
    grid-row: 3 / 4;
  }
  .title {
    padding: 5px;
    padding-top: 10px;
  }

  .main-footer {
    grid-column: col-start 4 / span 8;
  }
  .subtitle {
    grid-column: col-start 4 / span 8;
  }
  .main-nav {
    grid-column: col-start / span 2;
    grid-row: 2;
  }

  nav ul {
    padding-top: 50px;
  }
  .tables-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .pricing-table th,
  .pricing-table td {
    border: 1px solid#666633;
  }

  .card {
    grid-template-columns: 150px 1fr;
  }
}
