@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --surface: #f8fafc;
  --surface-strong: #e2e8f0;
  --card: rgba(255, 255, 255, 0.95);
  --card-solid: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --accent: #5ba224;
  --accent-strong: #4a851c;
  --accent-soft: rgba(91, 162, 36, 0.1);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.1);
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.1);
  --shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 10px 15px -3px rgba(0, 0, 0, 0.04);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

:root[data-theme='de'] {
  --surface: #f8fafc;
  --surface-strong: #e0f2fe;
  --card: rgba(255, 255, 255, 0.95);
  --card-solid: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --accent: #0091db;
  --accent-strong: #0077b5;
  --accent-soft: rgba(0, 145, 219, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 45%),
    radial-gradient(circle at bottom right, var(--accent-soft), transparent 50%),
    linear-gradient(135deg, var(--surface) 0%, #f1f5f9 55%, var(--surface-strong) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
}

.topbar__inner,
.topbar__actions,
.footer__inner,
.button-row,
.admin-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.button-row {
  flex-wrap: wrap;
}

.topbar__inner,
.footer__inner {
  justify-content: space-between;
  padding: 18px 0;
}

.topbar__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand {
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent-strong);
}

.brand-subtitle,
.section-copy,
.hero__description,
.feature-card p,
.contact-card p,
.admin-card p,
.venue-card p,
.gdpr-box p,
.status-box,
tbody td,
.program-row__speaker {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a,
.locale-switcher button {
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav a:hover,
.locale-switcher button:hover,
.nav a.is-active,
.locale-switcher button.is-active {
  background: var(--accent);
  color: #fff;
}

.locale-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border);
}

.page-content {
  padding: 40px 0 72px;
}

.card,
.feature-card,
.partner-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card {
  padding: 28px;
}

.card--hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at right top, rgba(255, 255, 255, 0.88), transparent 30%),
    linear-gradient(135deg, var(--card-solid), rgba(255, 255, 255, 0.7));
}

.hero,
.content-section,
.feature-grid {
  margin-bottom: 32px;
}

.hero,
.content-section {
  scroll-margin-top: 116px;
}

.hero__title,
.section-heading h2,
.admin-card h3,
.contact-card h3 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-heading h2,
.admin-card h3,
.contact-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.eyebrow-badge,
.eyebrow,
.metric-label,
thead th,
.rating-group legend {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.hero__description {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero__cta,
.feature-grid,
.venue-grid,
.feedback-grid,
.admin-grid,
.admin-stack {
  display: grid;
  gap: 20px;
}

.hero__cta {
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
  margin-top: 26px;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  padding: 24px;
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.feature-card h2,
.venue-card h3 {
  margin: 18px 0 8px;
  font-size: 1.35rem;
}

.section-heading {
  margin-bottom: 20px;
}

.program-head,
.program-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 240px;
  gap: 16px;
}

.program-head {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
  color: var(--accent-strong);
}

.program-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.program-row:last-child {
  border-bottom: 0;
}

.program-row__time {
  font-weight: 800;
  color: var(--accent-strong);
}

.program-row__block {
  font-weight: 700;
}

.form-card,
.admin-card,
.feedback-list,
.program-editor {
  display: grid;
  gap: 18px;
}

.form-card label,
.program-editor label {
  display: grid;
  gap: 8px;
}

input[type='text'],
input[type='email'],
input[type='search'],
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

.checkbox-row {
  grid-template-columns: 20px 1fr;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.checkbox-row input {
  margin-top: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.button:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--accent-soft);
}

.button--secondary {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid var(--accent);
}

.button--secondary:hover {
  background: var(--accent-soft);
}

.status-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.status-box.is-success {
  background: var(--success-soft);
  color: var(--success);
}

.status-box.is-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.field-error {
  min-height: 1em;
  color: var(--danger);
}

.gdpr-box {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
}

.gdpr-box summary {
  cursor: pointer;
  font-weight: 800;
}

.venue-grid,
.feedback-grid,
.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-stack {
  grid-template-columns: 1fr;
}

.map-card {
  padding: 0;
  overflow: hidden;
}

.map-card iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.rating-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.rating-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.rating-button {
  min-width: 52px;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  font-size: 1.5rem;
}

.rating-button.is-active {
  background: #f0b323;
  color: #fff;
  border-color: #f0b323;
}

.contact-card a {
  font-weight: 800;
  color: var(--accent-strong);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.partner-card {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 143, 47, 0.28);
  box-shadow: 0 18px 36px rgba(37, 43, 32, 0.1);
}

.partner-card img {
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
}

.admin-section {
  display: none;
  padding-top: 10px;
}

body.is-admin .admin-section {
  display: block;
}

.admin-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-toolbar__copy {
  max-width: 640px;
}

.admin-toolbar__actions {
  justify-content: flex-end;
}

.admin-card__header {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-card__header>div:first-child {
  flex: 1 1 320px;
  min-width: min(100%, 320px);
}

.admin-card__header .button-row {
  justify-content: flex-end;
}

#registration-filter {
  min-width: min(100%, 320px);
  flex: 1 1 320px;
}

.metric-value {
  margin: 4px 0 0;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.table-wrap {
  overflow-x: auto;
}

.admin-card--registrations table {
  min-width: 980px;
}

.admin-card--feedback {
  max-width: 100%;
}

#feedback-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

thead th,
tbody td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.sort-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: inherit;
}

.delete-button {
  padding: 10px 14px;
  border: 1px solid rgba(159, 46, 46, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--danger);
  font-weight: 700;
}

.program-editor-row,
.feedback-entry {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
}

.program-editor-row__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.program-editor-grid {
  display: grid;
  grid-template-columns: 130px repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.program-editor-grid--speakers {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feedback-entry__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.feedback-stars {
  color: #f0b323;
  letter-spacing: 0.2em;
}

.program-editor-empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.64);
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

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

.footer a {
  color: var(--accent-strong);
  font-weight: 800;
}

@media (max-width: 980px) {

  .program-head,
  .program-row,
  .venue-grid,
  .feedback-grid,
  .program-editor-grid {
    grid-template-columns: 1fr;
  }

  .program-head {
    display: none;
  }

  .program-row {
    gap: 6px;
  }

  .admin-card__header,
  .button-row,
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar__actions,
  .admin-card__header .button-row {
    justify-content: stretch;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
  }

  .topbar__inner,
  .topbar__actions,
  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .card,
  .feature-card,
  .partner-card {
    border-radius: 24px;
  }

  .page-content {
    padding-top: 28px;
  }

  .hero__title {
    line-height: 1;
  }

  .hero,
  .content-section {
    scroll-margin-top: 32px;
  }
}