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

/* Base */
html,
body {
  height: 100%;
  background-color: #f9f6f1;
}

body {
  font-family: "Forum", serif;
  color: #111;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
nav a {
  font-family: "Amatic SC", cursive;
}

/* Cards layout */
.cards {
  max-width: 1100px;
  width: 100%;
  padding-left: 7%;
  padding-right: 7%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  gap: 10%;
}

.textblock {
  padding-top: 8%;
}

.small-textblock {
  padding-top: 1em;
}

/* Title area */
#title {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10%;
  font-size: 200%;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 10px;
  border-bottom: 1px solid gray;
  padding-bottom: 6px;
}

/* If you want all h1 to have an underline, keep this.
   If not, remove it (since #title already has one). */
h1 {
  border-bottom: 1px solid gray;
  padding-bottom: 6px;
  margin-bottom: 25px;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3%;
}

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

/* UL-based nav (optional) */
.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

/* Hero */
.hero h1 {
  font-size: 3rem;
  font-weight: 400;
}

.hero-container {
  width: 100%;
  height: 60vh;
  background: url("titelbild.jpg") center / cover no-repeat;
}

/* Grids / Sections */
.intro-grid,
.layout,
.section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.intro-grid,
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem;
}

.intro-grid {
  padding: 2rem 3rem 6rem;
}

/* Text */
.intro-text p,
.cta-text {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* CTA */
.intro-cta {
  border-left: 1px solid #ddd;
  padding-left: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  border: 1px solid #111;
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
}

/* Misc */
.box {
  display: flex;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }

  nav a {
    display: block;
    text-align: center;
  }

  .intro-grid,
  .layout,
  .section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .intro-cta {
    border-left: 0;
    padding-left: 0;
  }

  .box {
    flex-direction: column;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* Two-column grid (responsive) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* always 50/50 */
  gap: 7% 5%;
  align-items: start;
}

.grid-2 img {
  width: 100%;
  height: auto;
  display: block;
}

/* Optional: stack on small screens */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

footer.cards {
  color: #777;
  /* grey text */
}

/* optional: make the small text a bit lighter/cleaner */
footer.cards small {
  color: inherit;
}

.page-title {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 10px;
  font-size: 4rem;
  /* desktop */
}

@media (max-width: 768px) {
  .page-title {
    font-size: 3rem;
    /* smartphone */
  }
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
}