/* ============================================================
   start.io — shared stylesheet
   All colors driven by CSS variables set per brand via data-theme.
   No external resources. No tracking.
   ============================================================ */

/* Local fonts — Carlito (Calibri-compatible, SIL Open Font License) */
@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Carlito-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Carlito-Bold.woff') format('woff');
}

/* ------------------------------------------------------------
   Themes
   ------------------------------------------------------------ */

:root {
  /* Default (light-blue = Engelmann) */
  --bg: #eef1f5;
  --bg-radial-1: rgba(43, 167, 214, 0.10);
  --bg-radial-2: rgba(43, 167, 214, 0.06);
  --surface: #ffffff;
  --surface-hover: #f7f9fc;
  --text: #0f1a2b;
  --text-dim: #5d6b82;
  --accent: #2ba7d6;
  --accent-dark: #1e8cb8;
  --accent-soft: rgba(43, 167, 214, 0.10);
  --accent-contrast: #ffffff;
  --border: #dfe4ec;
  --badge-bg: #2ba7d6;
  --badge-text: #ffffff;
  --shadow: 0 1px 2px rgba(15, 26, 43, 0.04), 0 2px 8px rgba(15, 26, 43, 0.04);
  --shadow-hover: 0 4px 14px rgba(43, 167, 214, 0.18);
  --avatar-shadow: rgba(43, 167, 214, 0.25);
  --menu-shadow: 0 8px 28px rgba(15, 26, 43, 0.12);
}

[data-theme="dark-orange"] {
  --bg: #141619;
  --bg-radial-1: rgba(255, 140, 42, 0.12);
  --bg-radial-2: rgba(255, 140, 42, 0.06);
  --surface: #1f2328;
  --surface-hover: #272c33;
  --text: #f5f6f8;
  --text-dim: #97a0ad;
  --accent: #ff8c2a;
  --accent-dark: #e8751a;
  --accent-soft: rgba(255, 140, 42, 0.14);
  --accent-contrast: #1a1206;
  --border: rgba(255,255,255,0.08);
  --badge-bg: #ff8c2a;
  --badge-text: #1a1206;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 4px 16px rgba(255, 140, 42, 0.25);
  --avatar-shadow: rgba(255, 140, 42, 0.35);
  --menu-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: 'Carlito', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, var(--bg-radial-1), transparent 45%),
    radial-gradient(circle at 85% 100%, var(--bg-radial-2), transparent 40%);
  color: var(--text);
  min-height: 100vh;
  padding: 44px 20px 40px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 600px; margin: 0 auto; }

/* ------------------------------------------------------------
   Language switcher
   ------------------------------------------------------------ */

.lang-bar { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.lang-switcher { position: relative; }

.lang-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: background 0.15s;
}
.lang-btn:hover { background: var(--surface-hover); }
.lang-btn svg { width: 14px; height: 14px; opacity: 0.6; }

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--menu-shadow);
  min-width: 180px;
  display: none;
  z-index: 10;
}
.lang-menu.open { display: block; }

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
.lang-menu button:hover { background: var(--surface-hover); }
.lang-menu button.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.lang-flag { font-size: 16px; line-height: 1; }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

header { text-align: center; margin-bottom: 28px; }

.avatar {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--avatar-shadow);
  border: 4px solid var(--surface);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

h1 {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.tagline {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 420px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   Social row
   ------------------------------------------------------------ */

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
  box-shadow: var(--shadow);
}
.social:hover,
.social:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  transform: translateY(-2px);
  outline: none;
}
.social svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------
   Link cards
   ------------------------------------------------------------ */

.links { display: flex; flex-direction: column; gap: 12px; }

.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  box-shadow: var(--shadow);
}
.link-item:hover,
.link-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  outline: none;
}

.link-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.link-icon svg { width: 22px; height: 22px; }

.link-title {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
}

.link-badge {
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ------------------------------------------------------------
   Made-in badge + footer
   ------------------------------------------------------------ */

.made-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px auto 0;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: max-content;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
}
.made-in .flag { font-size: 14px; line-height: 1; }
.made-in strong { color: var(--text); font-weight: 700; }

footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-dim);
}
footer strong { color: var(--text); font-weight: 700; }

/* ------------------------------------------------------------
   Imprint (legal notice)
   ------------------------------------------------------------ */

.imprint {
  margin: 24px auto 0;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.imprint summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
}
.imprint summary::-webkit-details-marker { display: none; }
.imprint summary::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 4px;
  margin-top: -3px;
}
.imprint[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.imprint summary:hover { color: var(--text); }

.imp-body {
  padding: 4px 20px 18px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  border-top: 1px solid var(--border);
}
.imp-company {
  margin: 12px 0 14px;
  color: var(--text);
}
.imp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 5px 0;
  border-top: 1px dashed var(--border);
}
.imp-row:first-of-type { border-top: none; }
.imp-label {
  flex: 0 0 130px;
  font-weight: 700;
  color: var(--text);
}
.imp-body a { color: var(--accent); text-decoration: none; }
.imp-body a:hover { text-decoration: underline; }

@media (max-width: 420px) {
  .imp-label { flex-basis: 100%; margin-bottom: -3px; }
}

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

@media (max-width: 420px) {
  body { padding: 24px 14px; }
  .avatar { width: 92px; height: 92px; }
  h1 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
