@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Josefin+Sans:wght@300;400;600&display=swap');

/* ==================== VARIABLEN ==================== */
:root {
  --color-darkgreen: #2C3930;
  --color-green: #3F4F44;
  --color-brown: #A27B5C;
  --color-beige: #DCD7C9;
  --font-heading: "Great Vibes", cursive;
  --font-body: "Josefin Sans", sans-serif;
}

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-darkgreen);
  background-color: var(--color-beige);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ==================== TYPOGRAFIE ==================== */
h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-darkgreen);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-green);
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-green);
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ==================== NAVIGATION ==================== */
nav {
  position: sticky;
  top: 0;
  background: rgba(220, 215, 201, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

nav a {
  color: var(--color-darkgreen);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--color-brown);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  border: 2px solid var(--color-darkgreen);
  color: var(--color-darkgreen);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--color-darkgreen);
  color: var(--color-beige);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-accent {
  background: var(--color-brown);
  color: white;
  border-color: var(--color-brown);
}

.btn-accent:hover {
  background: var(--color-green);
  border-color: var(--color-green);
}

/* ==================== SECTIONS ==================== */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-center {
  text-align: center;
}

/* ==================== HERO ==================== */    
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-color: var(--color-beige);
  color: white;
  width: 100%;
  min-height: 100vh;
  width: 100vw;

  max-width: 100vw;
  margin: 0;
  padding: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 6rem;
  color: white;
  text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  text-shadow: 1px 2px 5px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-countdown{
  display:flex;
  justify-content:center;
  gap:1.5rem;
  margin-top:3rem;
  flex-wrap:wrap
}

.hero-countdown-item{
  background:rgba(63,79,68,0.5);
  backdrop-filter:blur(10px);
  padding:1.5rem 2rem;
  border-radius:15px;
  min-width:100px
}

.hero-countdown-number{
  display:block;
  font-size:3rem;
  font-weight:bold;
  color:white;
  line-height:1
}

.hero-countdown-label{
  display:block;
  font-size:0.9rem;
  color:white;
  text-transform:uppercase;
  letter-spacing:1px;
  margin-top:0.5rem
}

/* ==================== INFOS: DATUM & COUNTDOWN ==================== */
.date-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f9f7f2 0%, #ede9e0 100%);
}

.date-circle {
  background: var(--color-darkgreen);
  color: var(--color-beige);
  border-radius: 50%;
  width: 180px;
  height: 180px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.date-circle .day {
  font-size: 4rem;
  font-weight: bold;
  line-height: 1;
}

.date-circle .month {
  font-size: 1.2rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.date-circle .year {
  font-size: 1rem;
  opacity: 0.8;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.countdown-item {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  min-width: 100px;
  transition: transform 0.3s;
}

.countdown-item:hover {
  transform: translateY(-5px);
}

.countdown-number {
  display: block;
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-darkgreen);
  line-height: 1;
}

.countdown-label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

/* ==================== LOCATION ==================== */
.location-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;

  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.location-container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hexagon */
.hexagon-map {
  position: relative;
  width: 50%;
  padding-top: 50%;
  overflow: hidden;
  clip-path: polygon(
    50% 0%,
    100% 25%,
    100% 75%,
    50% 100%,
    0% 75%,
    0% 25%
  );
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  cursor: pointer;
}

.hexagon-map iframe {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  border: none;
}

.hexagon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(162, 123, 92, 0);
  clip-path: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.hexagon-map:hover .hexagon-overlay {
  background: rgba(63, 79, 68, 0.7);
  opacity: 1;
}

/* Textformatierung */
.location-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.location-info p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}


/* ==================== DRESSCODE ==================== */
.dresscode-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.dresscode-img {
  max-width: 500px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.dresscode-text {
  font-size: 1.3rem;
  text-align: center;
  max-width: 700px;
  color: var(--color-green);
}

/* ==================== TEAM ==================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.team-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 5px solid var(--color-beige);
}

.team-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-role {
  font-size: 0.9rem;
  color: var(--color-brown);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.team-contact {
  font-size: 0.95rem;
  color: var(--color-green);
}

/* ==================== STORY ==================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.story-person {
  text-align: center;
}

.story-img {
  width: 100%;
  max-width: 350px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin-bottom: 2rem;
}

.story-person h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.story-person ul {
  list-style: none;
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
}

.story-person li {
  padding: 0.5rem 0;
  font-size: 1rem;
  color: var(--color-green);
}

.story-person li::before {
  content: "💚 ";
  margin-right: 0.5rem;
}

.brautpaar-grid {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.brautpaar-table {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    row-gap: 1rem;
    column-gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
        
.brautpaar-mobile{
  display:none
}

.value-left,
.value-right {
    color: var(--color-green);
    text-align: center;
}

.category {
    color: var(--color-brown);
    font-weight: 600;
    text-align: center;
}

.story-slider{
  position:relative;
  max-width:350px;
  margin:0 auto 2rem
}
        
.story-slider-wrapper{
  overflow:hidden;
  border-radius:20px;
  box-shadow:0 10px 30px rgba(0,0,0,0.15)
}
        
.story-slider-track{
  display:flex;
  transition:transform 0.5s ease
}
        
.story-slider-track img{
  width:100%;
  flex-shrink:0;
  object-fit:cover;
  aspect-ratio:3/4
}
        
.story-slider-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(63,79,68,0.8);
  color:white;
  border:none;
  width:40px;
  height:40px;
  border-radius:50%;
  font-size:1.2rem;
  cursor:pointer;
  z-index:5
}
        
.story-slider-btn.prev{
  left:10px
}
        
.story-slider-btn.next{
  right:10px
}

/* ==================== RSVP FORM ==================== */
.rsvp-form {
  max-width: 600px;
  margin: 3rem auto;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.rsvp-form label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-darkgreen);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--color-beige);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: var(--color-brown);
}

.rsvp-form button {
  width: 100%;
  margin-top: 1rem;
}

/* ==================== FAQ ==================== */
.faq-list {
  max-width: 800px;
  margin: 3rem auto;
}

.faq-item {
  background: white;
  margin-bottom: 1.5rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.faq-question {
  padding: 1.5rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-darkgreen);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: var(--color-beige);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-brown);
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 2rem;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1.5rem 2rem;
}

/* ==================== UNTERKÜNFTE ==================== */
.hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.hotel-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.hotel-card:hover {
  transform: translateY(-5px);
}

.hotel-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.hotel-info {
  padding: 1.5rem;
}

.hotel-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.hotel-info p {
  font-size: 0.95rem;
  color: var(--color-green);
  margin-bottom: 1rem;
}

/* ==================== FOOTER  ==================== */
.photo-footer {
  background: var(--color-beige);
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.photo-scroll {
  overflow: hidden;
  position: relative;
  touch-action: pan-x;
  width: 100%;
}

.photo-track {
  display: flex;
  gap: 0;
  width: max-content;
  align-items: center;
  transform: translateX(0);
  will-change: transform;
  animation: pingpong 110s ease-in-out infinite alternate;
}

.photo-track img {
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

@keyframes pingpong {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * (100% - 100vw))); }
}

.photo-footer:hover .photo-track,
.photo-footer:active .photo-track {
  animation-play-state: paused;
}

.footer-text {
  background: var(--color-darkgreen);
  color: var(--color-beige);
  text-align: center;
  padding: 2rem;
  font-size: 1rem;
  margin: 0;
  display: block;
}

/* ==================== LOGIN PAGE ==================== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--color-beige);
}

.login-card {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.login-card h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.login-card p {
  color: var(--color-green);
  margin-bottom: 2rem;
}

.login-card input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--color-beige);
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.login-card .error {
  color: #c0392b;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ==================== ADMIN DASHBOARD ==================== */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-darkgreen);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-table {
  width: 100%;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--color-darkgreen);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-beige);
}

.admin-table tr:hover {
  background: #f9f7f2;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .location-container,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .date-circle {
    width: 140px;
    height: 140px;
  }

  .date-circle .day {
    font-size: 3rem;
  }

  .countdown {
    gap: 1rem;
  }

  .countdown-number {
    font-size: 2rem;
  }

  .rsvp-form {
    padding: 2rem;
  }

  .photo-track img {
    height: 150px;
  }

  .team-grid,
  .hotels-grid {
    grid-template-columns: 1fr;
  }

  .brautpaar-desktop {
    display: none;
  }
  
  .brautpaar-mobile {
    display: block;
  }
  
  .brautpaar-mobile .brautpaar-person{
    margin-bottom:3rem
  }
  
  .brautpaar-mobile .profile-item{
    display:flex;
    gap:1rem;
    padding:0.8rem 0;
    border-bottom:1px solid var(--color-beige)
  }

  .brautpaar-mobile .profile-label{
    font-weight:600;
    color:var(--color-brown);
    min-width:140px
  }
  
  .brautpaar-mobile .profile-value{
    color:var(--color-green)
  }
}