/* =====================================================
   Tiroler Hochzeits-Design
   Lodengrün · Bordeaux · Creme · Karo
   ===================================================== */

:root {
  --loden: #3d5443;
  --loden-dark: #2b3c30;
  --loden-light: #5c7a63;
  --bordeaux: #7d2a35;
  --bordeaux-dark: #5f1f28;
  --cream: #faf6ee;
  --paper: #fffdf8;
  --line: #e6dcc8;
  --gold: #b08d4f;
  --ink: #34302a;
  --muted: #7d7466;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--loden-dark);
  font-weight: 600;
}

a {
  color: var(--bordeaux);
}

a:hover {
  color: var(--bordeaux-dark);
}

.script {
  font-family: "Great Vibes", "Cormorant Garamond", cursive;
  font-weight: 400;
}

/* ---------- Karo-Streifen (Tiroler Gingham) ---------- */

.karo-strip {
  height: 10px;
  background:
    repeating-linear-gradient(0deg, rgba(125, 42, 53, 0.65) 0 5px, transparent 5px 10px),
    repeating-linear-gradient(90deg, rgba(125, 42, 53, 0.65) 0 5px, transparent 5px 10px),
    #fff;
}

/* ---------- Navigation ---------- */

.navbar-tirol {
  background: var(--loden-dark);
  padding: 0.4rem 0;
}

.navbar-tirol .navbar-brand {
  font-family: "Great Vibes", cursive;
  font-size: 1.7rem;
  color: var(--cream);
}

.navbar-tirol .nav-link {
  color: #d8dfd4;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.navbar-tirol .nav-link:hover,
.navbar-tirol .nav-link:focus {
  color: #fff;
}

.navbar-tirol .nav-link.active {
  color: #f0d9a8;
}

.navbar-tirol .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.navbar-tirol .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.admin-bar {
  background: var(--bordeaux);
  font-size: 0.9rem;
}

.admin-bar a {
  color: #f3dfe0;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  display: inline-block;
  font-weight: 600;
}

.admin-bar a:hover {
  color: #fff;
  background: var(--bordeaux-dark);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--loden-dark) 0%, var(--loden) 100%);
  color: var(--cream);
  text-align: center;
  padding: 4.5rem 1rem 0;
  position: relative;
  overflow: hidden;
}

.hero .pretitle {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  color: #cdd8c9;
}

.hero .names {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 9vw, 5.5rem);
  color: #fff;
  line-height: 1.1;
  margin: 1rem 0 0.5rem;
}

.hero .date {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  color: #f0d9a8;
  letter-spacing: 0.08em;
}

.hero .tagline {
  color: #dfe6da;
  max-width: 40rem;
  margin: 0.8rem auto 0;
}

.hero-mountains {
  display: block;
  width: 100%;
  margin-top: 2.5rem;
}

/* ---------- Countdown ---------- */

.countdown {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.8rem 0 0;
}

.countdown .unit {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  min-width: 5.2rem;
}

.countdown .num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.countdown .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #cdd8c9;
}

/* ---------- Abschnitte & Karten ---------- */

.section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

.section-title::before,
.section-title::after {
  content: "❦";
  color: var(--gold);
  font-size: 1.3rem;
  vertical-align: middle;
  margin: 0 0.8rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.t-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(60, 50, 30, 0.06);
  position: relative;
  overflow: hidden;
}

.t-card.karo-top::before {
  content: "";
  display: block;
  height: 7px;
  background:
    repeating-linear-gradient(0deg, rgba(125, 42, 53, 0.6) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(90deg, rgba(125, 42, 53, 0.6) 0 4px, transparent 4px 8px),
    #fff;
}

.t-card .card-body {
  padding: 1.5rem;
}

/* ---------- Buttons ---------- */

.btn-loden {
  background: var(--loden);
  border: 1px solid var(--loden-dark);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.55rem 1.4rem;
}

.btn-loden:hover, .btn-loden:focus {
  background: var(--loden-dark);
  color: #fff;
}

.btn-bordeaux {
  background: var(--bordeaux);
  border: 1px solid var(--bordeaux-dark);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.55rem 1.4rem;
}

.btn-bordeaux:hover, .btn-bordeaux:focus {
  background: var(--bordeaux-dark);
  color: #fff;
}

.btn-outline-loden {
  border: 1px solid var(--loden);
  color: var(--loden);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.55rem 1.4rem;
  background: transparent;
}

.btn-outline-loden:hover {
  background: var(--loden);
  color: #fff;
}

/* ---------- Timeline (Programm) ---------- */

.timeline {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  padding-left: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5.4rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: var(--line);
}

.timeline li {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
  position: relative;
}

.timeline .time {
  width: 4rem;
  text-align: right;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bordeaux);
  flex-shrink: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 5.13rem;
  top: 0.55rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline .what {
  padding-left: 0.8rem;
}

.timeline .what h5 {
  margin-bottom: 0.15rem;
  font-size: 1.2rem;
}

.timeline .what p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Menü ---------- */

.menu-course-title {
  text-align: center;
  color: var(--bordeaux);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.menu-item-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.badge-veg {
  background: #e4ecdd;
  color: #3d5443;
  font-size: 0.72rem;
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
  font-weight: 700;
  vertical-align: middle;
}

/* ---------- RSVP ---------- */

.person-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.2rem 0.8rem;
  margin-bottom: 1.2rem;
}

.person-card legend, .person-card .person-header {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--loden-dark);
}

.course-options .form-check {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.7rem 0.5rem 2.1rem;
  margin-bottom: 0.45rem;
}

.course-options .form-check:has(input:checked) {
  border-color: var(--loden);
  background: #f0f4ec;
}

.course-label {
  font-weight: 700;
  color: var(--bordeaux);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin: 0.8rem 0 0.4rem;
}

/* ---------- Galerie ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.gallery-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.04);
}

/* ---------- Admin ---------- */

.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  height: 100%;
}

.stat-card .num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--loden-dark);
  line-height: 1.1;
}

.stat-card .label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-tirol th {
  background: #f2eee2;
  color: var(--loden-dark);
}

.status-pill {
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
}

.status-Zusage { background: #e4ecdd; color: #2b3c30; }
.status-Absage { background: #f3dfe0; color: #5f1f28; }
.status-Offen  { background: #efe9da; color: #7d7466; }

/* ---------- Footer ---------- */

.footer-tirol {
  background: var(--loden-dark);
  color: #cdd8c9;
  text-align: center;
  padding: 1.6rem 1rem;
  margin-top: 3rem;
}

.footer-tirol .names {
  font-family: "Great Vibes", cursive;
  font-size: 1.6rem;
  color: var(--cream);
}

.footer-tirol .small {
  font-size: 0.85rem;
}

/* ---------- Formulare ---------- */

.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--loden-light);
  box-shadow: 0 0 0 0.2rem rgba(61, 84, 67, 0.2);
}

.form-check-input:checked {
  background-color: var(--loden);
  border-color: var(--loden);
}

label.form-label, .form-check-label {
  font-weight: 600;
  color: var(--loden-dark);
}

.field-validation-error {
  color: var(--bordeaux);
  font-size: 0.88rem;
  font-weight: 600;
}

.input-validation-error {
  border-color: var(--bordeaux) !important;
}

.validation-summary-errors {
  color: var(--bordeaux);
  font-weight: 600;
}

.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* ---------- Login-Karte ---------- */

.login-wrap {
  max-width: 26rem;
  margin: 3.5rem auto;
}
