/* ================================
   Fonts
   ================================ */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ================================
   CSS Custom Properties
   ================================ */
:root {
  --color-primary: #81534a;
  --color-secondary: #d09644;
  --color-bg-primary: #fbf4ee;
  --color-bg-secondary: #a78780;
  --color-bg-white: #ffffff;
  --color-text-light: #ffffff;
  --color-text-dark: #333333;

  --font-heading: "Playfair Display", serif;
  --font-body: "Poppins", sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  --container-pad-inline: 25px;
  --section-pad-block: 60px;
  --section-max-width: none;
}

@media (min-width: 576px) {
  :root {
    --section-max-width: 540px;
  }
}

@media (min-width: 768px) {
  :root {
    --section-max-width: 720px;
  }
}

@media (min-width: 992px) {
  :root {
    --section-pad-block: 80px;
    --section-max-width: 960px;
  }
}

@media (min-width: 1200px) {
  :root {
    --section-max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  :root {
    --section-max-width: 1320px;
  }
}

@media (min-width: 1536px) {
  :root {
    --section-max-width: 1500px;
  }
}

/* ================================
   Base
   ================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--color-bg-primary);
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  font-family: var(--font-body);
  background: var(--color-bg-primary);
}

main {
  flex: 1;
}

p {
  font-size: 1.25rem;
  font-family: var(--font-body);
  line-height: 1.5;
}

h1 {
  font-size: 3rem;
  font-family: var(--font-heading);
  line-height: 0.95;
  text-align: center;
  overflow-wrap: break-word;
}

@media (min-width: 576px) {
  h1 {
    font-size: 4rem;
  }
}

@media (min-width: 992px) {
  h1 {
    font-size: 5rem;
  }
}

h2 {
  font-size: 2.75rem;
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.08;
  overflow-wrap: break-word;
}

@media (min-width: 576px) {
  h2 {
    font-size: 3rem;
  }
}

@media (min-width: 992px) {
  h2 {
    font-size: 3.75rem;
    margin-bottom: 2.5rem;
  }
}

h2:has(+ h3) {
  margin-bottom: 1.25rem;
}

h2 + h3 {
  margin-bottom: 2rem;
}

@media (min-width: 992px) {
  h2 + h3 {
    margin-bottom: 2.5rem;
  }
}

h3 {
  font-size: 1.75rem;
  font-family: var(--font-heading);
  line-height: 1.06;
  overflow-wrap: break-word;
}

@media (min-width: 576px) {
  h3 {
    font-size: 2rem;
  }
}

@media (min-width: 992px) {
  h3 {
    font-size: 2.25rem;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--color-text-light);
}

.text-dark {
  color: var(--color-text-dark);
}

.text-light {
  color: var(--color-text-light);
}

.text-red {
  color: var(--color-primary);
}

.container {
  margin: 0 auto;
  padding-inline: var(--container-pad-inline);
}

.section-container {
  padding-block: var(--section-pad-block);
  max-width: var(--section-max-width);
}

.site-footer .container {
  max-width: var(--section-max-width);
}

.impressum-content {
  max-width: var(--section-max-width);
  padding-block: var(--section-pad-block);
}

.impressum-content h1 {
  font-size: 2rem;
  overflow-wrap: break-word;
}

@media (min-width: 576px) {
  .impressum-content h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 992px) {
  .impressum-content h1 {
    font-size: 3.5rem;
  }
}

/* ================================
   Components
   ================================ */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-primary);
  overflow-anchor: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  width: 100%;
}

.site-nav {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 4rem;
}

@media (min-width: 992px) {
  .site-nav {
    height: 7.5rem;
    max-height: 7.5rem;
    transition: max-height 0.3s ease;
  }

  .site-header.is-scrolled .site-nav {
    max-height: 5rem;
  }
}

.site-logo {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 167px;
  height: 88px;
  left: 0px;
  top: 0px;
  position: absolute;
  background: #fbf4ee;
  transition: all 0.3s ease;
}

.site-logo:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 992px) {
  .site-logo {
    width: 318px;
    height: 154px;
    left: 0px;
    top: 0px;
  }

  .site-header.is-scrolled .site-logo {
    width: 212px;
    height: 103px;
  }
}

.site-logo-image {
  width: 121.19px;
  height: 51.12px;
  left: 22.7px;
  top: 25.1px;
  position: absolute;
  transition: all 0.3s ease;
}

@media (min-width: 992px) {
  .site-logo-image {
    width: 222px;
    height: 93px;
    left: 48px;
    top: 42px;
  }

  .site-header.is-scrolled .site-logo-image {
    width: 148px;
    height: 62px;
    left: 32px;
    top: 28px;
  }
}

.site-nav-menu {
  display: none;
}

@media (min-width: 992px) {
  .site-nav-menu {
    display: block;
  }
}

.site-nav-menu .menu {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.site-nav-menu .menu-item {
  padding: 0.6125rem;
}

.animated-underline {
  position: relative;
  color: var(--color-text-light);
}

.animated-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-text-light);
  transition: width 0.3s ease;
}

.animated-underline:hover::after {
  width: 100%;
}

.site-nav-menu a {
  position: relative;
  color: var(--color-text-light);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: normal;
}

.site-nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-text-light);
  transition: width 0.3s ease;
}

.site-nav-menu a:hover::after,
.site-nav-menu .current-menu-item a::after {
  width: 100%;
}

.site-nav-menu .current-menu-item a {
  font-weight: 700;
}

.mobile-menu {
  display: block;
  position: relative;
}

@media (min-width: 992px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-menu #burger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: none;
  gap: 6px;
  z-index: 101;
}

.mobile-menu #burger span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-text-light);
  transition: all 0.3s ease;
}

.mobile-menu #burger.open span {
  background: var(--color-primary);
}

.mobile-menu #burger.open span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu #burger.open span:last-child {
  transform: rotate(-45deg) translate(3px, -4px);
}

#mobile-menu-overlay {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding-top: 4rem;
  padding-inline: 25px;
  background: var(--color-bg-primary);
  gap: 1.5rem;
}

#mobile-menu-overlay.open {
  display: flex;
}

#mobile-menu-overlay a {
  position: relative;
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: normal;
}

/* Footer */
.site-footer {
  background: var(--color-primary);
}

.site-footer span,
#footer-col-1 a {
  color: var(--color-text-light);
  font-weight: 400;
  font-size: 1.25rem;
  width: fit-content;
}

.site-footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding-top: 60px;
  padding-bottom: 20px;
}

@media (min-width: 992px) {
  .site-footer-content {
    padding-top: 80px;
    padding-bottom: 50px;
  }
}

#footer-row-1 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 992px) {
  #footer-row-1 {
    flex-direction: row;
    align-items: initial;
    text-align: initial;
  }
}

#footer-col-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#footer-col-1 a {
}

#footer-col-1 span:first-child {
  font-weight: 700;
}

@media (min-width: 992px) {
  #footer-col-1 {
    align-items: initial;
    text-align: initial;
  }
}

#footer-row-2 {
  align-items: center;
  text-align: center;
}

@media (min-width: 992px) {
  #footer-row-2 {
    align-items: initial;
    text-align: initial;
  }
}

#footer-col-2 {
  display: flex;
  flex-direction: column;
}

#footer-col-2 a {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: auto;
}

/* Hero */
.hero {
  height: 600px;
}

.hero-image {
  height: 100%;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 31.84%, rgba(0, 0, 0, 0.5) 100%),
    var(--hero-bg-image, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero .hero-image .section-container {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}

.hero-headline {
  max-width: calc(var(--container-max) - 20rem);
}

/* Papiertextur Hintergrund */
.papiertextur-bg {
  background-image: url("../images/papiertextur.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Features */
.features .container {
  padding-inline: 0.75rem;
}

@media (min-width: 768px) {
  .features .container {
    padding-inline: var(--container-pad-inline);
  }
}

.features-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  border-radius: 25px;
  background: var(--color-bg-white);
  padding: 1.25rem 0.75rem;
  width: fit-content;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .features-grid {
    width: auto;
    margin: 0;
    padding: 4.5rem 2.5rem;
  }
}

@media (min-width: 992px) {
  .features-grid {
    flex-direction: row;
    align-items: normal;
  }
}

.features-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: fit-content;
  max-width: 25rem;
  gap: 2rem;
}

.features-badge {
  width: 12rem;
  height: 12rem;
  padding: 0.5rem;
}

.features-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 23rem;
}

.features-title {
  font-size: 2rem;
  margin-bottom: 0;
}

@media (min-width: 576px) {
  .features-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 992px) {
  .features-title {
    font-size: 2.5rem;
  }
}

/* Highlights */
.highlights-headline {
  margin-bottom: 2rem;
  text-align: center;
}

@media (min-width: 992px) {
  .highlights-headline {
    margin-bottom: 2.5rem;
  }
}

.highlights-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 992px) {
  .highlights-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
}

.highlights-item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 580px;
}

@media (min-width: 992px) {
  .highlights-item {
    width: calc(33.333% - 1rem);
    margin: 0;
    gap: 1.75rem;
  }
}

@media (min-width: 1399px) {
  .highlights-item {
    width: calc(33.333% - 2.5rem);
  }
}

.highlights-image {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 15px;
  height: calc(66.666% - 1.75rem);
}

.highlights-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.highlights-title {
  text-align: center;
}

.highlights-text {
  text-align: center;
  max-width: 23rem;
}

/* Badges */
.badges {
  background-color: var(--color-bg-secondary);
}

.badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.25rem;
  row-gap: 1.25rem;
}

@media (min-width: 480px) {
  .badges-grid {
    padding-inline: 1.25rem;
  }
}

@media (min-width: 768px) {
  .badges-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .badges-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 3.75rem;
    row-gap: 2.5rem;
  }
}

@media (min-width: 1400px) {
  .badges-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  }
}

.badges-subheadline {
  text-align: center;
}

/* Händer List */
.haendler-list {
  background-color: var(--color-bg-primary);
}

.haendler-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 3rem;
  padding-inline: 1.25rem;
}

.haendler-item {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.haendler-name {
  margin-bottom: 1.25rem;
}

.haendler-address:has(+ .haendler-contact) {
  margin-bottom: 0.75rem;
}

.haendler-phone-link,
.haendler-phone-link:link,
.haendler-phone-link:visited,
.haendler-phone-link:hover,
.haendler-phone-link:focus,
.haendler-phone-link:active {
  color: var(--color-text-dark);
}

@media (min-width: 768px) {
  .haendler-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.75rem;
    padding-inline: 0;
  }
}

@media (min-width: 1200px) {
  .haendler-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1536px) {
  .haendler-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/* Contact Banner */
.contact-banner {
  background-image: url("../images/papiertextur-schmal.webp");
  background-repeat: none;
  background-size: auto;
}

.contact-banner-text {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 30.625rem;
  margin-inline: auto;
}

.button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .button-wrapper {
    flex-direction: row;
  }
}

.contact-banner-button {
  width: 100%;
  max-width: 20rem;
  display: inline-block;
  cursor: pointer;
  box-sizing: border-box;
  border: none;
  border-radius: 10px;
  background-color: var(--color-primary);
  transition: background-color 0.3s ease;
}

.contact-banner-button:hover {
  background-color: var(--color-secondary);
}

.contact-banner-button-link {
  display: block;
  padding: 1.5rem;
  text-align: center;
  font-size: 1.25rem;
}

/* Image Banner */
.banner-image {
  height: 100%;
  min-height: 450px;
  background-image: var(--image-banner-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (min-width: 768px) {
  .banner-image {
    min-height: 600px;
  }
}

@media (min-width: 1200px) {
  .banner-image {
    min-height: 750px;
  }
}

.infobox-wrapper {
  margin-inline: auto;
  max-width: 33.25rem;
}

@media (min-width: 992px) {
  .infobox-wrapper {
    margin: 0;
  }
}

.infobox-image {
  display: block;
  padding-inline: 0.75rem;
  margin-bottom: calc(var(--section-pad-block) * -1);
}

@media (min-width: 480px) {
  .infobox-image {
    padding-inline: 3.75rem;
  }
}

.infobox {
  background: var(--color-bg-primary);
  padding-block: 3.75rem;
  padding-inline: 1.5rem;
  border-radius: 15px;
}

@media (min-width: 480px) {
  .infobox {
    padding-inline: 3.75rem;
  }
}

.infobox h3.infobox-title {
  font-size: 2rem;
}

.infobox-content {
  margin-top: 1.5rem;
  overflow-wrap: anywhere;
}
