/*
 * Design tokens and styles taken from the landing page (mietwagenstammtisch.de).
 * Change colors here, not in the views. Fonts are self-hosted (no request to
 * Google Fonts, which matters for GDPR).
 */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+0300-036F, U+1E00-1EFF, U+2020, U+20A0-20AB;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+0300-036F, U+1E00-1EFF, U+2020, U+20A0-20AB;
}

:root {
  --navy-900: #0b1b2b;
  --teal-50: #edf9f8;
  --teal-100: #d6f1ee;
  --teal-700: #00796b;
  --teal-800: #07565a;
  --amber-400: #fbbf24;
  --neutral-300: #cbd5e1;
  --border: #e5e7eb;
  --text: var(--navy-900);
  --text-muted: #5b6676;
  --success-text: #15803d;
  --success-bg: #f0fdf4;
  --error-text: #b91c1c;
  --error-bg: #fef2f2;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Bricolage Grotesque", var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-700); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 2px; }

/* Header and footer */
.site-header, .site-footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header { min-height: 76px; }
.site-header img { display: block; height: 34px; width: auto; }
.site-header .back-link { color: var(--text); font-weight: 500; font-size: 15px; }

.site-footer {
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 24px;
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--text-muted); font-weight: 500; }

/* Main area: the soft rounded "hero" block of the landing page, with one card */
.stage {
  flex: 1;
  width: calc(100% - 24px);
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 12px;
  background: var(--teal-50);
  border-radius: 40px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--teal-100);
  border-radius: 28px;
  box-shadow: 0 20px 50px -28px rgb(11 27 43 / 0.28);
  padding: 36px 32px;
}

h1 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; }
.lead { color: var(--text-muted); margin-bottom: 24px; }

.badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--amber-400);
  font-size: 13px;
  font-weight: 600;
}

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-row a { font-size: 14px; }
.hint { display: block; margin-top: 6px; color: var(--text-muted); font-size: 13px; }

input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--neutral-300);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
input:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px var(--teal-100); }

/* button_to wraps its button in a form */
.button, input[type="submit"], form.button_to button {
  display: inline-block;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 10px 32px;
  border: 1px solid var(--teal-700);
  border-radius: 999px;
  background: var(--teal-700);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.button:hover, input[type="submit"]:hover, form.button_to button:hover { background: var(--teal-800); border-color: var(--teal-800); }

form.button_to.secondary button { background: #fff; border-color: var(--neutral-300); color: var(--text); }
form.button_to.secondary button:hover { background: var(--teal-50); border-color: var(--teal-700); }

.card-footer { margin: 24px 0 0; text-align: center; color: var(--text-muted); font-size: 15px; }

/* Messages */
.alert { width: 100%; max-width: 440px; margin-bottom: 16px; padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 500; }
.alert-error { background: var(--error-bg); color: var(--error-text); border: 1px solid #fecaca; }
.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid #bbf7d0; }
.card .alert ul { margin: 0; padding-left: 18px; }

.status { padding: 14px 18px; border-radius: 14px; margin-bottom: 16px; background: var(--teal-50); overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .stage { width: calc(100% - 16px); border-radius: 28px; padding: 24px 8px; }
  .card { padding: 28px 20px; border-radius: 22px; }
  h1 { font-size: 28px; }
}
