/* Root variables to manage the color palette */
:root {
  --bg-color: #f7f5f2;
  --text-color: #353535;
  --accent-color: #e4b89f;
  --highlight-color: #8fb4b7;
}

/* Global reset and typography */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

/* Container centers content and adds horizontal padding */
.container {
  width: 90%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Header styling */
.site-header {
  padding: 4rem 0 3rem 0;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 0.05em;
}

.site-header .tagline {
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--accent-color);
}

/* Section styling */
.section {
  padding: 3rem 0;
}

.section h2 {
  margin-top: 0;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.section p {
  max-width: 700px;
  margin-bottom: 1.5rem;
}

/* Gallery grid styling */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.gallery-grid figure {
  margin: 0;
  text-align: center;
  /* Flex item width: allow up to three columns on large screens */
  flex: 1 1 30%;
}

.gallery-grid img {
  width: 100%;
  max-width: 260px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Button styling */
.button {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: var(--highlight-color);
}

/* Impressum styling */
.impressum {
  background-color: #f2ede8;
  border-top: 1px solid #e0d8d1;
}

.impressum p {
  margin: 0.3rem 0;
}

/* Icon styling for social links */
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Footer styling */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-color);
  border-top: 1px solid #e0d8d1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-header {
    padding: 3rem 0 2rem;
  }
  .site-header h1 {
    font-size: 2rem;
  }
  .site-header .tagline {
    font-size: 1rem;
  }
  .section {
    padding: 2rem 0;
  }
  .section h2 {
    font-size: 1.5rem;
  }
  /* Adjust gallery items to two columns */
  .gallery-grid figure {
    flex: 1 1 45%;
  }
}

@media (max-width: 480px) {
  .site-header h1 {
    font-size: 1.6rem;
  }
  .section h2 {
    font-size: 1.3rem;
  }
  /* Stack gallery items on small screens */
  .gallery-grid figure {
    flex: 1 1 100%;
  }
  .button {
    width: 100%;
    text-align: center;
  }
}

.site-logo {
  width:  600px;
  max-width: 50%;
  height: auto;
}

/* Mobile */
@media (max-width: 768px) {
  .site-logo {
    width: 350px !important;
    max-width: none !important;
  }
}
