/* ============================================================
   Sunrise – Meetingraum-Meldeformular
   Design-Tokens aus dem Referenz-Mockup
   ============================================================ */

:root {
  --sunrise-red: #E2001A;
  --sunrise-red-dark: #B80015;
  --ink: #1F2226;
  --grey-600: #5B6068;
  --grey-300: #D5D9DF;
  --grey-100: #F4F5F7;
  --tile-selected-bg: #FDECEE;
  --white: #FFFFFF;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 12px;
  --max-width: 600px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ---------- Urgent topbar ---------- */

.topbar {
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
}

.topbar a {
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.topbar svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Header: logo + language switcher ---------- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px 6px;
}

.logo {
  height: 22px;
  width: auto;
}

.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-switch button {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: var(--radius-s);
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1.2;
}

.lang-switch button:hover { background: var(--grey-100); }

.lang-switch button[aria-current="true"] {
  border-color: var(--sunrise-red);
  color: var(--sunrise-red);
}

.lang-switch button:focus-visible,
.tile:focus-visible,
.link-button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.submit-button:focus-visible {
  outline: 2px solid var(--sunrise-red);
  outline-offset: 2px;
}

/* ---------- Main container ---------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 20px 40px;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  margin: 18px 0 6px;
}

.subtitle {
  color: var(--grey-600);
  font-size: 15px;
  margin: 0 0 18px;
}

hr {
  border: none;
  border-top: 1px solid var(--grey-300);
  margin: 20px 0;
}

.field-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Text inputs ---------- */

.text-input {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-m);
  padding: 13px 14px;
}

.text-input::placeholder { color: #9AA0A8; }

textarea.text-input {
  resize: vertical;
  min-height: 90px;
}

/* ---------- Issue tile grid ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  background: var(--grey-100);
  border: 1.5px solid var(--grey-100);
  border-radius: var(--radius-l);
  padding: 14px;
  cursor: pointer;
  user-select: none;
  transition: background-color .12s ease, border-color .12s ease;
}

.tile .tile-icon {
  width: 22px;
  height: 22px;
  color: var(--ink);
}

.tile .tile-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.tile.selected {
  background: var(--tile-selected-bg);
  border-color: var(--sunrise-red);
}

.tile.selected .tile-icon { color: var(--sunrise-red); }

.tile-check {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sunrise-red);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.tile.selected .tile-check { display: flex; }

.tile-check svg { width: 12px; height: 12px; }

.tile input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ---------- Add a comment ---------- */

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--font);
}

.comment-wrap {
  margin-top: 14px;
}

.comment-wrap[hidden] { display: none; }

/* ---------- Submit button ---------- */

.submit-button {
  width: 100%;
  background: var(--sunrise-red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-m);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  cursor: pointer;
  transition: background-color .12s ease;
}

.submit-button:hover { background: var(--sunrise-red-dark); }

.form-group { margin-bottom: 4px; }
.form-group + .form-group { margin-top: 16px; }

/* ---------- Success page ---------- */

.success-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.success-icon {
  width: 56px;
  height: 56px;
  color: var(--sunrise-red);
  margin: 0 auto 20px;
}

/* ---------- Responsive ---------- */

@media (max-width: 380px) {
  h1 { font-size: 24px; }
  .tile-grid { gap: 10px; }
}
