/* ============================================================
   Stammtisch AI – Stylesheet
   Design-System: liermann.ai
   Farben: Primary #A23469 | BG #F6F4F0 | Text #000000
   ============================================================ */

/* ---- Fonts (Inter lokal) ---------------------------------- */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

/* ---- Reset & Basis --------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:    #A23469;
  --primary-dk: #8b2c5a;
  --text:       #000000;
  --bg:         #F6F4F0;
  --white:      #ffffff;
  --muted:      rgba(0, 0, 0, 0.55);
  --border:     rgba(0, 0, 0, 0.12);
  --shadow-sm:  0 2px 8px  rgba(0, 0, 0, 0.08);
  --shadow-md:  0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-lg:  0 8px 30px rgba(0, 0, 0, 0.15);
  --radius:     12px;
  --radius-sm:  8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* ---- Header ---------------------------------------------- */
.site-header {
  background: rgba(246, 244, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 5%;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: inline-block;
}

.logo-ai {
  color: var(--text);
}

/* ---- Main / Container ----------------------------------- */
.page-main {
  flex: 1;
  padding: 3rem 5%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container.narrow {
  max-width: 680px;
  margin: 0 auto;
}

/* ---- Typografie ----------------------------------------- */
.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.highlight {
  color: var(--primary);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* ---- Badges & Labels ------------------------------------ */
.event-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* ---- Card ----------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.5s ease-out;
}

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

/* ---- Event-Meta ----------------------------------------- */
.event-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.event-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 200px;
}

.event-meta-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.event-summary {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  margin: 1.5rem auto;
  max-width: 400px;
  line-height: 2;
}

/* ---- Choice Grid ---------------------------------------- */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
  animation: fadeInUp 0.6s ease-out;
}

.choice-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  border: 2px solid transparent;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.choice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.choice-card--yes {
  border-color: var(--primary);
}

.choice-card--yes:hover {
  background: var(--primary);
  color: var(--white);
}

.choice-card--yes:hover .choice-sub {
  color: rgba(255,255,255,0.75);
}

.choice-card--no:hover {
  background: var(--text);
  color: var(--white);
}

.choice-card--no:hover .choice-sub {
  color: rgba(255,255,255,0.6);
}

.choice-icon {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.choice-card--yes .choice-icon { color: var(--primary); }
.choice-card--yes:hover .choice-icon { color: var(--white); }

.choice-label {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.choice-sub {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.25s ease;
}

/* ---- Buttons -------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  line-height: 1;
  text-align: center;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(162, 52, 105, 0.35);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-danger {
  background: #dc3545;
  color: var(--white);
}

.btn-danger:hover {
  background: #b02a37;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
  margin-top: auto;
}

/* ---- Formular ------------------------------------------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.required {
  color: var(--primary);
}

.form-input {
  padding: 0.85rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(162, 52, 105, 0.12);
}

.form-input.input-error {
  border-color: #dc3545;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* Consent-Checkbox */
.form-group--consent {
  margin-bottom: 1.5rem;
}

.consent-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  line-height: 1.55;
}

.consent-label input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.consent-label span {
  font-size: 0.9rem;
  color: var(--muted);
}

.consent-label a {
  color: var(--primary);
}

.form-actions {
  margin-top: 0.5rem;
}

/* ---- Alert ---------------------------------------------- */
.alert {
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.alert ul {
  list-style: none;
  padding: 0;
}

.alert ul li::before {
  content: '✕  ';
  font-weight: 600;
}

.alert-error {
  background: #fde8e8;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* ---- Icon Circle ---------------------------------------- */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-weight: 700;
}

.icon-circle--success {
  background: rgba(162, 52, 105, 0.12);
  color: var(--primary);
}

.icon-circle--neutral {
  background: rgba(0, 0, 0, 0.07);
  color: var(--text);
}

.icon-circle--warning {
  background: #fde8e8;
  color: #dc3545;
}

/* ---- Kalender-Grid -------------------------------------- */
.calendar-section {
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.calendar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  border: 2px solid transparent;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.calendar-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cal-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.cal-name {
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.cal-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* ---- Cancel-Formular ------------------------------------ */
.cancel-form .form-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Back-Link ------------------------------------------ */
.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary);
}

/* ---- Footer --------------------------------------------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.5rem 5%;
  text-align: center;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ---- Animationen ---------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Responsive ----------------------------------------- */
@media (max-width: 640px) {
  .page-main {
    padding: 2rem 4%;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .event-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .cancel-form .form-actions {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
  }
}
