/* ==========================================================================
   1. Reset / Normalize
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

/* Reset standard margins and box sizing */
input,
textarea,
button {
  border: none;
  border-radius: 0;
  background: transparent;

  /* Inherit typography settings from parent */
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

/* Remove default appearance for webkit and modern browsers */
input,
textarea,
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ==========================================================================
   2. CSS-Variablen (:root)
   ========================================================================== */
:root {
  --color-bg: #fdfcfb; /* Sehr helles, warmes Weiß */
  --color-bg-light: #f3f0eb; /* Leinen/Kalk-Ton für Sektionen */
  --color-text: #2b2b2b; /* Dunkles Schiefergrau für gute Lesbarkeit */
  --color-accent: #8b5a4b; /* Erdiger Ton/Terrakotta */
  --color-accent-dark: #6a4438;
  /* Farbkontrast zu #ffffff ist 4.52:1 > 4.5:1; WCAG 2.1 konform */
  /* --color-accent-2: hsl(107 35% 38% / 1); */

  /* Farbkontrast zu #f0ede9 (Ticket-Background im oberen Bereich) ist 4.56:1 > 4.5:1; WCAG 2.1 konform */
  --color-accent-2: hsl(107 36% 34% / 1);

  --color-accent-2-light: #9bb893;
  --color-accent-2-dark: hsl(107 40% 22% / 1);

  --font-head: 'Vollkorn', serif; /* Traditionelle & urige Serifenschrift */
  --font-body: 'Nunito Sans', 'Open Sans', sans-serif;
  --font-size-body: 1.0625rem; /* Anpassung für Schrift Nunito, die optisch etwas kleiner ausfällt. */
  /* -------------------------------------------- */
  --fc-button-bg-color: var(--color-accent);
  --fc-button-border-color: var(--color-accent-dark);

  --fc-button-hover-bg-color: var(--color-accent-dark);
  --fc-button-hover-border-color: var(--color-accent-dark);
  --fc-button-active-bg-color: var(--color-accent-dark);
  --fc-button-active-border-color: var(--color-accent-dark);

  --color-link: var(--color-accent-2);
  --color-link-hover: var(--color-accent-2-dark);
}

/* ==========================================================================
   3. Font-Definitionen
   ========================================================================== */
/* 
 * Vollkorn - Designed by Friedrich Althausen
 * Licensed under SIL Open Font License, 1.1 (https://openfontlicense.org)
 */

/* Vollkorn Regular: Wird per HTML-Preload zuerst geladen */

/* latin */
@font-face {
  font-family: 'Vollkorn';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/vollkorn.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;
}

/* 
 * Nunito Sans - Designed by Vernon Adams, Jacques Le Bailly, Manvel Shmavonyan, Alexei Vanyashin
 * Licensed under SIL Open Font License, 1.1 (https://openfontlicense.org)
 */

/* Nunito Sans Regular: Wird per HTML-Preload zuerst geladen */
/* latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 200 1000;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/nunito-sans-regular.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;
}

/* Nunito Sans Italic: Synthetisches Kursiv als Fallback bis Schrift geladen wurde */
/* latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 200 1000;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/nunito-sans-italic.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;
}

/* latin */
/* @font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(../fonts/nunito-regular.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;
} */

/* latin */
/* @font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url(../fonts/nunito-italic.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;
} */

/* 
// <weight>: Use a value from 200 to 1000
// <uniquifier>: Use a unique and descriptive class name

.nunito-<uniquifier> {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
} */

/* ==========================================================================
   4. Basis-Typografie & Grundelemente
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  font-size: var(--font-size-body);
  color: var(--color-text);
  line-height: 1.6;
}

h1 {
  margin: 1em 0 0.5em 0;
  padding: 0;
  line-height: 1.2;
}

h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.8em;
  margin: 1.5em 0 0.5em 0;
  color: var(--color-accent);
}

p {
  margin: 0 0 1em 0;
  padding: 0;
  line-height: 1.6;
}

address {
  font-style: normal;
}

a {
  color: var(--color-link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.1em;
}

a:hover {
  color: var(--color-link-hover);
}

a[href^='tel:'],
a:not([href]) {
  color: inherit;
  text-decoration: none;
  text-underline-offset: inherit;
}

a[href].external::after {
  content: '';

  display: inline;
  padding-right: 0.7em;
  margin-left: 0.3em;
  line-height: 1em;

  background-color: currentColor;

  -webkit-mask-image: url('../svg/icon-link-arrow.svg');
  mask-image: url('../svg/icon-link-arrow.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center 0.3em;
  mask-position: center 0.3em;

  /* Vertikal mittig ausrichten */
  /* 
  -webkit-mask-position: center;
  mask-position: center;
  vertical-align: 0.03em;  
  */
}

a[href].external:hover::after {
  -webkit-mask-image: url('../svg/icon-link-arrow-out.svg');
  mask-image: url('../svg/icon-link-arrow-out.svg');
}

a.map-link::before {
  transform: translateY(-2px);
  content: '';
  display: inline-block;
  width: 0.8235em;
  height: 0.8235em;
  margin-right: 0.2em;
  background-color: currentColor;
  -webkit-mask-image: url('../svg/icon-map-link.svg');
  mask-image: url('../svg/icon-map-link.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  vertical-align: middle;
}

/* --- Form elements --------------------------------------- */
/* Button specific interactive fixes */
button {
  cursor: pointer;
  text-align: center;
}

/* button:disabled {
  cursor: not-allowed;
} */

/* Textarea specific fixes */
textarea {
  display: block;
}

/* Accessible focus state indicator */
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ==========================================================================
   5. Accessibility-Utilities
   ========================================================================== */
/* Screen Reader */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0); /* deprecated Property */
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   6. Layout-Komponenten
   ========================================================================== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
/* ==========================================================================
   7. Einzelne Komponenten
   ========================================================================== */

.subtitle {
  margin-bottom: 30px;
  font-style: italic;
  color: #555;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px 5%;
  background-color: rgba(253, 252, 251, 0.95);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.logo .no-uppercase {
  text-transform: none;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: 1px;
}

.logo-subtitle {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 400;
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .navbar {
    align-items: center;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Resets the link styles specifically for the logo */
.logo a {
  color: inherit;
  /* Inherits text color from parent element */
  text-decoration: none;
  /* Removes link underline */
  display: block;
  /* Makes the entire text area clickable */
}

/* Prevents changes on hover or focus if desired */
.logo a:visited,
.logo a:hover,
.logo a:active,
.logo a:focus {
  color: inherit;
  text-decoration: none;
}

/* Hero (Titelbild Bereich) */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 20px;
  background: linear-gradient(rgba(253, 252, 251, 0.6), rgba(253, 252, 251, 0.9));
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 11vw, 3rem); /* Dynamisches anpassen für kleine Viewports */
  /* 
  Minimum-Übergang: 11vw = 36,8px  →  Viewport-Breite = 36,8 / 0,11 = 334,5px
  Maximum-Übergang: 11vw = 48px    →  Viewport-Breite = 48 / 0,11 = 436,4px
  */
  color: var(--color-accent);
  margin: 0 0 20px 0;
  font-weight: 400;
}

.hero p {
  font-size: 1.2rem;
  color: #444;
}

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: #fff;
  padding: 12px 30px;
  letter-spacing: 1px;
  font-size: 1em;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 4px;
}

.btn.read-more {
  text-transform: uppercase;
  font-size: 0.9rem;
}

a.btn {
  text-decoration: none;
  color: #fff;
}

a.btn:hover {
  background-color: var(--color-accent-dark);
  color: #fff;
  text-decoration: none;
}

/* Sektionen Allgemein */
.section {
  padding: 80px 0 60px 0;
}

.section h2 {
  font-size: 2.2rem;
  margin: 0 0 0.5em 0;
}

.bg-light {
  background-color: var(--color-bg-light);
}

/* Inhalt */
.content ul {
  margin: 0 0 1em 0;
  padding: 0 0 0 1.25em;
  list-style-type: disc;
}

.content li {
  line-height: 1.6;
}

/* Werkstatt Layout (Text & Bild nebeneinander) */
.about-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 15px;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
  }
}

/* Galerie Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.4s ease;
  cursor: pointer;

  /* Style no image loaded */
  display: inline-block;
  background-color: #e2dbcf;
  box-sizing: border-box;
  font-size: 0.875em;
  color: #666;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  z-index: 2;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Photoswipe - Galerie Grid */
.pswp__custom-caption {
  background: rgb(0 0 0 / 40%);
  color: #fff;
  width: calc(100% - 32px);
  max-width: 400px;
  padding: 4px 12px;
  border-radius: 4px;
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  line-height: 30px;
}

.pswp__custom-caption a {
  color: #fff;
  text-decoration: underline;
}

/* Photoswipe: Avoid showing empty caption boxes */
.pswp__custom-caption:empty {
  display: none;
}

.gallery-grid .hidden-caption-content {
  display: none;
}

/* Photoswipe: Arrwo button  */
.pswp--ui-visible .pswp__button--arrow {
  opacity: 0.85;
}

.pswp--ui-visible .pswp__button--arrow:hover {
  opacity: 1;
}

.pswp__icn {
  transition:
    transform 0.2s ease-in-out,
    filter 0.2s ease-in-out;
}

.pswp__button--arrow--prev:hover .pswp__icn {
  transform: scale(1.2, 1.2) translateX(4px);
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4));
}

.pswp__button--arrow--next:hover .pswp__icn {
  transform: scale(-1.2, 1.2) translateX(4px);
  filter: drop-shadow(-2px 4px 6px rgba(0, 0, 0, 0.4));
}

.pswp__button--close:hover .pswp__icn {
  transform: scale(1.2, 1.2);
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4));
}

.pswp__button--arrow {
  width: 125px;
  height: 600px;
  margin-top: -300px;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background-color: #2b2b2b;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #999;
}

/* Zustand bei Hover, Focus und aktivem Zustand */
footer a:hover,
footer a:focus,
footer a:active,
footer a.active {
  color: #fff;
}

/* Mobile View */
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; /* Allows items to break into a second line */
  justify-content: center;
  align-items: center;
  gap: 8px 0;
}

.footer-list a {
  color: #999;
}

/* Position items using order */
.footer-list .copyright {
  order: 9999; /* Places copyright at the end (bottom row) */
  flex-basis: 100%; /* Forces copyright onto its own full row */
  text-align: center;
}

.footer-list li {
  margin-bottom: 5px;
}

/* Pipe separator between Datenschutz and Impressum on mobile */
.footer-list li:nth-child(n + 3)::before {
  content: '|';
  margin: 0 10px;
  color: #666;
}

/* Desktop View */
@media (min-width: 769px) {
  .footer-list li:nth-child(n) {
    order: initial;
  }
  .footer-list .copyright {
    /* Move copyright back to the left */
    flex-basis: auto; /* Reset full width */
  }

  /* Add pipe separator after copyright for desktop */
  .footer-list li:not(:first-child)::before {
    content: '|';
    margin: 0 10px;
    color: #666;
  }
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr; /* Standardmäßig 1 Spalte – auf dem Handy stehen die Boxen untereinander */
  gap: 20px;
  margin-bottom: 40px;
}

/* Ab Tablet/Desktop (über 768px Breite): symmetrische 2-Spalten-Anordnung */
@media (min-width: 768px) {
  .contact-info-grid {
    grid-template-columns: 1fr 1fr; /* Teilt den Platz in 2 exakt gleiche Spalten (50% / 50%) */
    gap: 40px; /* Schöner, großzügiger Abstand zwischen den beiden Boxen */
  }
}

/* Das Design der einzelnen Boxen */
.info-box {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  /* Leicht abgerundete Ecken */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  /* Edler, weicher Schatten */
  height: 100%;
  /* Sorgt dafür, dass beide Boxen exakt gleich hoch sind, auch wenn links mehr Text steht */
}

.info-box p {
  margin-bottom: 10px;
}

.info-box .anfahrt-label {
  display: inline-block;
  vertical-align: top;
  margin-right: 4px; /* Space between label and links */
  white-space: nowrap; /* Prevents label wrapping */
  line-height: 1.8;
}

.info-box .anfahrt-links {
  display: inline-block;
  vertical-align: top;
}

.info-box .anfahrt-links a {
  line-height: 1.8;
  display: block;
  /* Stack links vertically */
  white-space: nowrap;
}

.separator {
  display: none;
}

@media (min-width: 1024px) {
  .info-box .anfahrt-links a {
    display: inline-block;
  }

  .info-box .anfahrt-links a.mobile-only {
    display: none;
  }

  .separator {
    margin: 0 4px;
    display: inline-block;
  }
}

/* --- Kontaktformular Bereich (Schreiben Sie uns) --- */
#message-container {
  display: none;
}

/* Die Eingabefelder */
.form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form textarea {
  height: 172px;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: #fafafa;
  transition: all 0.3s;
}

/* Hebt das Feld farblich hervor, wenn man reinklickt */
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: #fff;
}

.form .privacy-notice {
  /* line-height: 1.5; */
  font-size: 0.9rem;
}

a[href].phone-link {
  text-decoration: inherit;
  color: inherit;
}

/* ==========================================================================
   8. Media Queries / Responsive Anpassungen 
   ========================================================================== */
.mobile-only {
  display: inline-block;
}

.desktop-only {
  display: none;
}

@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }
  .desktop-only {
    display: inline-block;
  }
}
