/* © David Dülle - https://duelle.org */

:root {
  --primary: #e63946;
  --primary-dark: #c42b38;
  --secondary: #ff6b35;
  --accent: #ffd60a;
  --bg: #ffffff;
  --bg-soft: #faf9f7;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5e5e5e;
  --border: #e6e6e6;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lift: 0 12px 40px rgba(230, 57, 70, 0.15);
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: 'Bebas Neue', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
body { min-height: 100vh; min-height: 100dvh; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Nav ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.brand { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.06em; }
.brand-mark { color: var(--primary); }
.nav nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav nav a {
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav nav a:hover { background: var(--bg-soft); text-decoration: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s;
  min-height: 44px;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: rgba(230, 57, 70, 0.07); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; min-height: 52px; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 80px 24px 64px;
  max-width: 880px;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 0%, rgba(230, 57, 70, 0.08), transparent 60%);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}
.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-meta { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Sections ===== */
.section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-alt { background: var(--bg-soft); max-width: none; }
.section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin: 0 auto 14px;
}
.section-lead { text-align: center; color: var(--text-muted); margin: 0 auto 40px; max-width: 620px; }

/* ===== Feature-Grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.feature h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ===== Orientierungsmarsch-Manager ===== */
.march-section {
  text-align: center;
}
.march-section-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.march-section h2 { margin-top: 0; }
.march-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin: 36px 0;
  text-align: left;
}
.march-section-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.march-section-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.march-section-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.march-section-feature h3 { margin: 0 0 8px; font-size: 1.1rem; }
.march-section-feature p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.march-section-cta {
  margin-top: 32px;
}
.march-section-meta {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Pricing ===== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card-highlight {
  border-color: var(--primary);
  box-shadow: var(--shadow-lift);
}
.price-card-highlight:hover { box-shadow: 0 16px 50px rgba(230, 57, 70, 0.25); }
.price-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.price-tag {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.price-amount {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--text);
}
.price-amount span { font-size: 1rem; color: var(--text-muted); margin-left: 4px; }
.price-features { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; }
.price-features code { background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; font-size: 0.85em; }

/* Interval toggle */
.pricing-interval-wrap {
  display: flex;
  width: fit-content;
  margin: 0 auto 32px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.pricing-interval-btn {
  padding: 8px 22px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
}
.pricing-interval-btn.is-active {
  background: var(--primary);
  color: #fff;
}
.pricing-interval-pill {
  background: #ffd60a;
  color: #1a1a1a;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Yearly/monthly toggle visibility */
.price-grid.is-yearly  .price-show-monthly { display: none; }
.price-grid.is-monthly .price-show-yearly  { display: none; }

/* Savings chip */
.price-save-chip {
  display: inline-block;
  background: color-mix(in srgb, #2d9e5f 15%, transparent);
  color: #1a6e41;
  border: 1px solid color-mix(in srgb, #2d9e5f 35%, transparent);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  margin-top: -6px;
}
.price-save-chip s { opacity: 0.55; font-weight: 400; }
.price-save-chip-strong {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}

/* ===== Signup-Form ===== */
.signup-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.signup-form label { display: block; }
.signup-form label > span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}
.signup-form input,
.signup-form select,
.signup-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  min-height: 48px;
}
.signup-form textarea { min-height: 110px; resize: vertical; }
.signup-form input:focus,
.signup-form select:focus,
.signup-form textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: transparent;
}
.signup-form .btn { justify-self: start; margin-top: 8px; }
.form-status {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  display: none;
}
.form-status.is-success { display: block; background: #e8f5ee; color: #1f6e3d; }
.form-status.is-error   { display: block; background: #fdecec; color: #9a2222; }

/* ===== Tenants-Grid ===== */
.tenants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.tenants-grid-loading,
.tenants-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-style: italic;
}
.tenants-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s;
  text-align: center;
}
.tenants-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
  text-decoration: none;
}
.tenants-card-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 6px;
}
.tenants-card-initials {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}
.tenants-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}
.tenants-card-loc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer p { margin: 4px 0; }
.footer a { color: var(--text-muted); }
.footer-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.footer-links a { font-weight: 600; }
.footer-links a:hover { color: var(--text); }

/* ===== Statische Sub-Pages (Impressum/Datenschutz) ===== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px;
  line-height: 1.65;
}
.legal-page h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 8px; }
.legal-page h2 { font-family: var(--font-display); font-size: 1.6rem; margin-top: 36px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal-page th, .legal-page td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; font-size: 0.92rem; }
.legal-page th { background: var(--bg-soft); }
.legal-page code { background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; font-size: 0.88em; }
.legal-page .back-link { display: inline-block; margin-bottom: 24px; color: var(--text-muted); }
