/* Localization */
[lang] {
  display: none;
}
[lang="de"] {
  display: unset;
}

/* Fonts & Global Styles */
body {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  background-color: #fdfaf6;
  color: #2f2f2f;
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-family: "UnifrakturMaguntia", cursive;
  font-style: normal;
  font-weight: 400;
}

/* Header */
select {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  background-color: rgba(245, 235, 210, 0.75);
  border-radius: 20px;
  padding: 3px;
}

header {
  position: relative;
  background-image: url("../images/anna+tobi.png"); /* Pfad zu eurem Bild */
  background-size: cover;
  background-position: top;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  filter: sepia(0.4) contrast(1.1) brightness(0.9);
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(1px);
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
  padding: 3rem 6rem;
  border: 5px double #e8d8b3;
  background: rgba(245, 235, 210, 0.25); /* leicht schimmernder Pergamentton */
  border-radius: 8px;
  max-width: 800px;
  margin: 0 1rem;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

.ornament--header {
  background: url("../images/ornament.webp") no-repeat center;
  background-size: contain;
  height: 250px;
  margin: -5rem auto;
}

header h1 {
  font-size: 4rem;
  margin-bottom: 0.8rem;
  color: #f0e4d7;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

header p {
  font-size: 1.2rem;
  color: #f6f2ec;
  margin-bottom: 1.2rem;
  font-style: italic;
}

#countdown-de {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff7ec;
  margin-top: 0.5rem;
}

#countdown-en {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff7ec;
  margin-top: 0.5rem;
}

/* Fade-in Animation */
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadein {
  animation: fadein 1.8s ease-out forwards;
}

/* Navbar */
nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0rem auto;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem;
  background-color: rgba(245, 235, 210, 0.5);
}

nav .btn {
  height: 60px;
  border-radius: 8px;
  font-size: 1rem;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0.9rem;
  flex: 1 1 100px; /* gleicher Platz, Mindestbreite */
  max-width: 100px;
  padding: 0.5rem 0.5rem;
  border: none;
  text-align: center;
  vertical-align: middle;
  text-wrap: wrap;
  white-space: normal; /* erlaubt Umbruch */
  word-break: break-word; /* bricht lange Wörter */
  line-height: 1.2;
  overflow-wrap: break-word;
  hyphens: auto;
}

nav .btn.before {
  background-color: #8e6e53;
}

nav .btn.at {
  background-color: #6a4e42;
}

nav .btn.after {
  background-color: #4a3c31;
}

/* Text (Standard sichtbar, bei Hover ausblenden) */
nav .btn .label {
  transition: opacity 0.4s ease;
  opacity: 1;
  position: absolute;
  padding: 0.25rem 0.6rem;
}

/* Icon (Standard unsichtbar, bei Hover sichtbar) */
nav .btn .icon {
  opacity: 0;
  transition: opacity 0.4s ease;
  position: absolute;
}

/* Hover Effekte */
nav .btn:hover {
  transform: scale(1.2);
}

nav .btn:hover .label {
  opacity: 0;
}

nav .btn:hover .icon {
  opacity: 1;
}

/* Sections */
.ornament {
  width: 100%;
  height: 14rem;
  max-width: 300px;
  margin: -5rem auto;
}

.ornament--2 {
  background: url("../images/ornament2.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.ornament--3 {
  background: url("../images/ornament3.webp") no-repeat center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.contact-card {
  background-color: #fdfaf3;
  border: 2px solid #d4c5a5;
  border-radius: 12px;
  padding: 1rem 1.5rem 2rem 1.5rem;
  max-width: 300px;
  text-align: center;
  font-family: "Times New Roman", serif;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: #4b3824;
}

.contact-card p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

.contact-card a {
  color: #8b5e3c;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.qr-code {
  margin-top: 0.8rem;
  width: 100px;
  height: 100px;
}

.lodging-links {
  list-style-type: "🛏️ ";
  padding-left: 1.5em;
  font-size: 1.05em;
}

.lodging-links li {
  margin-bottom: 0.5em;
}

.lodging-links a {
  color: #4b3824;
  text-decoration: underline;
}

.lodging-links a:hover {
  color: #a68a64;
}

.clothing-links {
  list-style-type: "🧥 ";
  padding-left: 1.5em;
  font-size: 1.05em;
}

.clothing-links li {
  margin-bottom: 0.5em;
}

.clothing-links a {
  color: #5e4b32;
  text-decoration: underline;
}

.clothing-links a:hover {
  color: #a68a64;
}

.timeline-group {
  display: flex;
  justify-content: center; /* Zentriert alles horizontal */
  gap: 2rem; /* Abstand zwischen Timeline und Section */
  margin: 3em auto;
  /*margin-left: 20%;*/
  width: fit-content;
}

.timeline-group.before .line {
  background-color: #8e6e53;
}
.timeline-group.before .label {
  color: #8e6e53;
}
.timeline-group.at .line {
  background-color: #6a4e42;
}
.timeline-group.at .label {
  color: #6a4e42;
}
.timeline-group.after .line {
  background-color: #4a3c31;
}
.timeline-group.after .label {
  color: #4a3c31;
}

.timeline {
  width: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.timeline .line {
  width: 1px;
  background-color: #c3b5a0;
  position: absolute;
  top: 10px;
  bottom: calc(7.5rem - 10px);
  left: 50%;
  transform: translateX(-50%);
}

.timeline .line--last {
  bottom: 0rem;
}

.timeline .label {
  writing-mode: vertical-rl; /* vertikal schreiben */
  transform: rotate(180deg); /* von oben nach unten */
  position: absolute;
  top: 50%;
  left: calc(50% + 5px); /* etwas rechts von der Linie */
  transform-origin: center;
  translate: 0 -50%;
  background-color: #fdfaf6;
  padding: 0.5em;
  border-radius: 8px;
  font-family: "Crimson Text", serif;
  font-size: 1rem;
  color: #5e4b32;
  white-space: nowrap;
  z-index: 1;
  font-weight: bold;
}

.timeline-group .sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-group section {
  max-width: 800px;
  padding: 1rem 2rem 2rem 2rem;
  margin: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

section.before {
  border: 1px solid #8e6e53;
}
section.at {
  border: 1px solid #6a4e42;
}
section.after {
  border: 1px solid #4a3c31;
}

section h2 {
  text-align: center;
  font-size: 2em;
  color: #5e4b32;
}

section h2 .icon {
  font-size: 1.2em;
}

section h3 {
  text-align: center;
  font-size: 1.5em;
}

section p {
  text-align: justify;
  line-height: 1.6;
  font-size: 1.1em;
}

.ablauf-container {
  background: #f2ede2;
  border: 2px solid #a68a64;
  border-radius: 10px;
  padding: 2rem;
  color: #5a4632;
}

.ablauf-liste {
  list-style: none;
  padding-left: 0;
  text-align: justify;
  line-height: 1.6;
  font-size: 1.1em;
}

.ablauf-liste li {
  margin-bottom: 0.8em;
}

.link {
  text-align: center;
}

.icon {
  margin-right: 0.4em;
  color: #a68a64;
}

.icon:hover {
  margin-right: 0;
}

/* Map */
iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
  margin-top: 1em;
}

.legal {
  font-size: 0.9em;
  font-style: italic;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 2em;
  background-color: #eae3d2;
  font-family: "Times New Roman", Times, serif;
  color: #5e4b32;
  font-size: 0.9em;
}

footer i {
  color: #a68a64;
  font-size: 0.8em;
  margin: 0 0.3em;
}

@media (max-width: 768px) {
  .timeline-group {
    flex-direction: column;
    align-items: center;
  }

  .timeline .label {
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
    position: static;
    text-align: center;
  }
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background-color: #a68a64; /* Stil passend zur Seite */
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: none; /* Anfangs verstecken */
  transition: opacity 0.3s ease;
}

#backToTop:hover {
  background-color: #8e724f;
}

@media (max-width: 768px) {
  .timeline {
    display: none;
  }

  .header-content {
    padding: 3rem 2rem;
    margin: 2rem;
  }
}

@media (max-width: 414px) {
  p {
    font-size: 1em !important;
  }

  .header-content {
    padding: 3rem 1rem;
    margin: 2rem;
  }
}
