/* Öffentliche Seiten: Dubai-Theme. Farben kommen als Variablen aus theme.css (Instanz). */
* { margin: 0; padding: 0; box-sizing: border-box; }
body.public {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-deep) 100%);
  background-attachment: fixed;
  color: #ffffff;
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-light); text-decoration: none; }
a:hover { color: #ffffff; text-decoration: underline; }
a:focus-visible, .btn:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

.bg-pattern {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.04;
  background-image:
    radial-gradient(circle at 25% 25%, var(--accent) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, var(--accent) 1px, transparent 1px);
  background-size: 60px 60px;
}
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; width: 100%; }
.site-header { padding: 18px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 72px; width: auto; display: block; }
.main { flex: 1; padding-top: 24px; padding-bottom: 48px; }

.hero { padding: 40px 0 32px; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; line-height: 1.2; margin-bottom: 16px; max-width: 22ch; }
.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lead { font-size: 1.1rem; color: rgba(255, 255, 255, 0.75); max-width: 56ch; }

.grid.two { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
  padding: 32px 28px; position: relative; overflow: hidden;
}
.card::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); opacity: 0.7; }
.card.narrow { max-width: 620px; margin: 0 auto; }
.card h1 { font-size: 1.7rem; margin-bottom: 12px; }
.card h2 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: rgba(255, 255, 255, 0.8); margin-bottom: 16px; }
.card .btn { margin-top: 8px; }
.card.legal h1, .card.legal h2 { margin: 16px 0 8px; }
.card.legal p, .card.legal li { color: rgba(255, 255, 255, 0.85); }
.card.legal ul { margin: 0 0 16px 20px; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 0; cursor: pointer; font-family: inherit; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--primary-blue)); color: #ffffff; box-shadow: 0 10px 30px rgba(0, 153, 214, 0.3); }
.btn-primary:hover { color: #ffffff; }
.btn-ghost { border: 1px solid rgba(91, 196, 232, 0.5); color: var(--accent-light); background: transparent; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.form input[type=email], .form input[type=text] {
  padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06); color: #ffffff; font-size: 1rem; font-family: inherit;
}
.form label.check, .form label.choice { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.form label.check input, .form label.choice input { margin-top: 5px; }
.form .btn { align-self: flex-start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.entwurf { background: rgba(91, 196, 232, 0.15); color: var(--accent-light); padding: 8px 12px; border-radius: 8px; }
.hint { font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); }

.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.alert.error { background: rgba(220, 53, 69, 0.18); border: 1px solid rgba(220, 53, 69, 0.5); }
.alert p { margin: 0; color: #ffffff; }

.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 24px 0 32px; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; position: relative; z-index: 1; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; }

@media (max-width: 640px) {
  .logo img { height: 48px; }
  .card { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
