/* LOADING STATE */
#app-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #999999;
}
#app-content {
  display: none;
}

/* MODALER */
.link-overlay-style,
#link-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 13, 13, 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
#link-overlay.active,
.link-overlay-style.active {
  display: flex;
}
.link-box {
  background: #FFFFFF;
  border: 1px solid #E2E2E2;
  padding: 48px 40px;
  max-width: 440px;
  width: 90%;
}
.link-box h2 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #0D0D0D;
  margin-bottom: 12px;
}
.link-box p {
  font-size: 14px;
  color: #5A5A5A;
  line-height: 1.6;
  margin-bottom: 24px;
}
.link-box input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  border: 1px solid #E2E2E2;
  background: #FAFAFA;
  margin-bottom: 16px;
  outline: none;
}
.link-box input:focus {
  border-color: #c8996a;
}
.link-error {
  font-size: 13px;
  color: #c0392b;
  margin-bottom: 12px;
  display: none;
}
.link-success {
  font-size: 13px;
  color: #2A7A4F;
  margin-bottom: 12px;
  display: none;
}

:root {
  --black: #0D0D0D;
  --dark: #1C1C1C;
  --mid: #5A5A5A;
  --muted: #999999;
  --border: #E2E2E2;
  --border-light: #F0F0F0;
  --bg: #faf9f7;
  --white: #FFFFFF;
  --accent: #c8996a;
  --accent-hover: #b8875a;
  --accent-light: #fdf6ee;
  --green: #2A7A4F;
  --green-light: #F0FAF5;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--black);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-user {
  font-size: 13px;
  font-weight: 400;
  color: var(--dark);
}
.btn-text {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CONTENT */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 32px 96px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
h1 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 48px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 16px;
}
.intro-text {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 56px;
  max-width: 540px;
}
.divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin-bottom: 48px;
}

/* MESSAGE PLACEHOLDER */
.message-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 13, 13, 0.4);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.message-overlay.active {
  display: flex;
}
.message-box {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 40px;
  max-width: 480px;
  width: 90%;
}
.message-box h3 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 6px;
}
.message-box p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.message-box textarea {
  min-height: 120px;
  margin-bottom: 16px;
}
.message-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-primary {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); }

/* EDUCATION LINK */
.education-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.15s;
}
.education-link:hover {
  color: var(--black);
}

.btn-secondary {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
}
.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
}

/* ONBOARDING */
#onboarding-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
#onboarding-modal {
  background: #fff; border-radius: 12px;
  padding: 32px; max-width: 480px; width: 90%;
  position: relative;
}
.ob-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #c8996a; margin-bottom: 8px;
}
.ob-titel {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.6rem; font-weight: 400;
  color: var(--dark); margin-bottom: 12px; line-height: 1.3;
}
.ob-text {
  font-size: 14px; line-height: 1.7;
  color: var(--mid); margin-bottom: 16px;
}
.ob-highlight {
  background: var(--bg); border: 0.5px solid var(--border);
  border-left: 4px solid #c8996a;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px; margin-bottom: 20px;
  font-size: 13px; color: var(--mid); line-height: 1.6;
}
.ob-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.ob-dots { display: flex; gap: 6px; align-items: center; }
.ob-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); transition: all 0.2s;
}
.ob-dot.aktiv { background: #c8996a; width: 18px; border-radius: 3px; }
.ob-actions { display: flex; align-items: center; gap: 16px; }
.ob-hoppa {
  font-size: 12px; color: var(--muted); background: none;
  border: none; cursor: pointer; text-decoration: underline;
  font-family: inherit;
}
.ob-nasta {
  background: #c8996a; color: white; border: none;
  border-radius: 8px; padding: 10px 24px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: inherit;
}

/* ALUMNI ONBOARDING */
#alumni-ob-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
}
#alumni-ob-modal {
  background: #fff; border-radius: 12px;
  padding: 32px; max-width: 520px; width: 90%;
  border-left: 4px solid #c8996a;
}
#alumni-ob-modal textarea,
#alumni-ob-modal input[type="text"] {
  width: 100%; padding: 12px 14px; font-size: 14px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); resize: vertical; margin-bottom: 8px;
  box-sizing: border-box;
}
#alumni-ob-modal textarea:focus,
#alumni-ob-modal input[type="text"]:focus { border-color: #c8996a; outline: none; }

/* NYHETER / AKTUELLT */
.news-section {
  margin-bottom: 48px;
}
.news-section h2 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 24px;
}
.news-list {
  display: flex;
  flex-direction: column;
}
.news-item {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.news-item:last-child {
  border-bottom: 1px solid var(--border);
}
.news-item a {
  text-decoration: none;
  display: block;
}
.news-item a:hover .news-title {
  color: var(--accent-hover);
}
.news-date {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.news-title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 6px;
  transition: color 0.15s;
}
.news-text {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
footer a {
  color: var(--mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rapport-knapp {
  border: 1.5px solid #e0e0e0;
  background: white;
  border-radius: 20px;
  padding: 0.4rem 1.2rem;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: border-color 0.2s, color 0.2s;
}
.rapport-knapp:hover {
  border-color: #c8996a;
  color: #c8996a;
}
.rapport-typ-label {
  flex: 1;
  text-align: center;
  padding: 0.4rem 0.75rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  font-size: 14px;
  color: #888;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.rapport-typ-label:hover {
  border-color: #c8996a;
  color: #c8996a;
}
.rapport-typ-active {
  border-color: #c8996a;
  color: #c8996a;
  background: #FFF8F0;
}

/* PORTAL-BANNER */
.portal-banner {
  font-size: 13px;
  color: #999;
  text-align: center;
  padding: 10px 16px;
  border-bottom: 1px solid #f0ede8;
  margin-bottom: 0;
}
.portal-banner a {
  color: #c8996a;
  text-decoration: none;
  font-weight: 500;
}
.portal-banner a:hover {
  text-decoration: underline;
}

/* ANMÄL */
.anmal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.anmal-box {
  background: #fff; border-radius: 10px; padding: 24px;
  width: 340px; max-width: 90vw;
}
.anmal-box h3 { margin: 0 0 12px; font-size: 16px; font-weight: 500; }
.anmal-box select {
  width: 100%; padding: 10px; font-size: 14px;
  border: 0.5px solid var(--border); border-radius: 6px;
  margin-bottom: 12px; font-family: inherit;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  nav { padding: 18px 20px; }
  .wrap { padding: 48px 20px 72px; }
  h1 { font-size: 36px; }
  footer { padding: 24px 20px; }
}
