/* =============================================================================
   BASE STYLES – Universität zu Köln Corporate Design
   Farben nach Markenhandbuch Oktober 2025
   ============================================================================= */

@import url('fonts.css');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Primärfarben UzK */
  --color-uni-blau: #005176;
  --color-uni-blau-90: rgba(0, 81, 118, 0.9);
  --color-uni-blau-70: rgba(0, 81, 118, 0.7);
  --color-uni-blau-50: rgba(0, 81, 118, 0.5);
  --color-uni-blau-30: rgba(0, 81, 118, 0.3);
  --color-uni-blau-10: rgba(0, 81, 118, 0.1);

  --color-tuerkis: #009dcc;
  --color-tuerkis-70: rgba(0, 157, 204, 0.7);
  --color-tuerkis-30: rgba(0, 157, 204, 0.3);
  --color-tuerkis-10: rgba(0, 157, 204, 0.1);

  --color-korall: #ea564f;
  --color-korall-70: rgba(234, 86, 79, 0.7);
  --color-korall-30: rgba(234, 86, 79, 0.3);
  --color-korall-10: rgba(234, 86, 79, 0.1);

  /* Neutrale Farben (Claude-Ästhetik: warme Grautöne) */
  --color-white: #ffffff;
  --color-sand-50: #faf9f7;
  --color-sand-100: #f5f3ef;
  --color-sand-200: #e8e4dc;
  --color-sand-300: #d4cfc5;
  --color-gray-400: #9b9589;
  --color-gray-500: #6e6861;
  --color-gray-700: #3d3935;
  --color-gray-900: #1a1816;
  --color-black: #0d0c0b;

  /* Typografie – durchgängig Albert Sans (Barrierefreiheit: serifenlos).
     --font-serif bewusst auf den Sans-Stack gelegt, damit Alt-Regeln,
     die noch die Variable nutzen, ebenfalls serifenlos rendern. */
  --font-sans: 'Albert Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Albert Sans', system-ui, -apple-system, sans-serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.125rem;  /* 18px */
  --font-size-lg: 1.25rem;   /* 20px */
  --font-size-xl: 1.5rem;    /* 24px */
  --font-size-2xl: 2rem;     /* 32px */
  --font-size-3xl: 2.5rem;   /* 40px */
  --font-size-4xl: 3rem;     /* 48px */
  --font-size-5xl: 4rem;     /* 64px */

  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Abstände (Raster basiert auf Siegeleinheit) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* Layout */
  --container-max: 1280px;
  --container-content: 800px;
  --header-height: 72px;

  /* Sphären (Kreismotiv) */
  --sphere-sm: 200px;
  --sphere-md: 400px;
  --sphere-lg: 600px;
  --sphere-xl: 900px;

  /* Effekte */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 81, 118, 0.08), 0 1px 2px rgba(0, 81, 118, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 81, 118, 0.10), 0 2px 6px rgba(0, 81, 118, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 81, 118, 0.12), 0 4px 12px rgba(0, 81, 118, 0.08);
  --shadow-xl: 0 24px 48px rgba(0, 81, 118, 0.16);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- Reset & Box Model --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-gray-900);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Verhindert horizontales Rauswachsen der Seite (mobil).
     clip statt hidden: erzeugt keinen Scroll-Container und bricht
     daher den sticky Header nicht. */
  overflow-x: clip;
}

/* Lange Wörter im Fließtext umbrechen (Barrierefreiheit / Mobile) */
p, li, dd, dt, blockquote, figcaption, label, a, td, th {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --- Basis-Elemente --- */
img,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--color-uni-blau);
  text-decoration: underline;
  text-decoration-color: var(--color-tuerkis-30);
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--color-tuerkis);
  text-decoration-color: var(--color-tuerkis);
}

a:focus-visible {
  outline: 3px solid var(--color-tuerkis);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

hr {
  border: none;
  border-top: 1px solid var(--color-sand-200);
  margin: var(--space-8) 0;
}

/* --- Utility Classes --- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--container-content);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
