:root {
  --bg: #ffffff;
  --bg-soft: #faf8f3;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-dim: #6b6b6b;
  --text-mute: #999999;
  --accent: #e30613;        /* Swiss Red */
  --accent-hover: #b30410;
  --border: #e8e6e1;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }

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

/* ================ Navigation ================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.brand::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--accent);
}
.nav-right { display: flex; align-items: center; gap: 1rem; }
.user-email {
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* ================ Buttons ================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  padding: 0.55rem 1.2rem;
  font-size: 0.875rem;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ================ Landing Hero ================ */
.landing { min-height: 100vh; display: flex; flex-direction: column; }

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 8rem;
  background: linear-gradient(135deg, #faf8f3 0%, #ffffff 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(227, 6, 19, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}
.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.2fr 1fr; }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
  color: var(--text);
}
.hero h1 .accent { color: var(--accent); }
.hero .lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-cta-row .footnote {
  color: var(--text-mute);
  font-size: 0.875rem;
}

.hero-visual {
  display: none;
  position: relative;
  aspect-ratio: 4 / 5;
}
@media (min-width: 900px) {
  .hero-visual { display: block; }
}
.hero-visual .panel {
  position: absolute;
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual .panel-1 {
  top: 0; left: 0;
  width: 70%; height: 60%;
  background: linear-gradient(135deg, #2a2a2a 0%, #4a4a4a 100%);
}
.hero-visual .panel-2 {
  bottom: 0; right: 0;
  width: 65%; height: 55%;
  background: linear-gradient(135deg, var(--accent) 0%, #b30410 100%);
}
.hero-visual .panel-3 {
  top: 35%; left: 25%;
  width: 50%; height: 35%;
  background: linear-gradient(135deg, #e8e6e1 0%, #faf8f3 100%);
  border: 1px solid var(--border);
}

/* ================ Stats / About ================ */
.about {
  padding: 5rem 2rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) {
  .about-inner { grid-template-columns: 1fr 2fr; }
}
.about h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.about p { color: var(--text-dim); font-size: 1.05rem; }
.about p + p { margin-top: 1rem; }

/* ================ Footer ================ */
.footer {
  padding: 2.5rem 2rem;
  background: #1a1a1a;
  color: #999;
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer .brand { color: #fff; }
.footer .brand::before { background: var(--accent); }
.footer a { color: #ccc; }
.footer a:hover { color: var(--accent); }

/* ================ Dashboard ================ */
.dashboard-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}
.dashboard-header { margin-bottom: 3rem; }
.dashboard-header .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.dashboard-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.dashboard-header .subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.tile {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: all 0.22s ease;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.tile-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-soft) 0%, #e8e6e1 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border-bottom: 3px solid var(--accent);
  transition: filter 0.22s ease;
}
.tile:hover .tile-image { filter: brightness(0.97); }

/* Bunte Hintergründe pro Tile, dezent farbcodiert */
.tile-1 .tile-image { background: linear-gradient(135deg, #e8f0fe 0%, #c7d8f5 100%); }
.tile-2 .tile-image { background: linear-gradient(135deg, #e6f7e6 0%, #bce0bc 100%); }
.tile-3 .tile-image { background: linear-gradient(135deg, #fef3e8 0%, #f5d8b8 100%); }
.tile-4 .tile-image { background: linear-gradient(135deg, #fce8eb 0%, #f5b8c0 100%); }
.tile-5 .tile-image { background: linear-gradient(135deg, #f0e8fc 0%, #d8b8f5 100%); }

.tile-content { padding: 1.4rem 1.6rem 1.6rem; }
.tile-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.tile-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
}
.tile-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
.tile-arrow::after {
  content: "→";
  transition: transform 0.18s ease;
}
.tile:hover .tile-arrow::after { transform: translateX(4px); }

/* ================ Empty state ================ */
.empty {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}
.empty .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.empty h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.empty p {
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}
