/* CF Alarm for Time Office - EINFACHES Design ohne Hide-on-Scroll */

/* CSS Custom Properties */
:root {
  --primary-500: #667eea;
  --primary-600: #5a67d8;
  --surface: #ffffff;
  --surface-variant: #f8fafc;
  --on-surface: #1e293b;
  --on-surface-variant: #64748b;
  --outline: #e2e8f0;
  --accent-500: #2196f3;
  --accent-600: #1976d2;
  
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

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

*:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  color: var(--on-surface);
  background-color: var(--surface-variant);
  font-size: var(--text-base);
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

body.loaded {
  opacity: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* KOMPAKTE Navigation - Nimmt weniger Platz weg */
.nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--outline);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4); /* Weniger Gap */
  padding: var(--space-6) 0; /* Weniger Padding */
}

.app-logo {
  width: 60px; /* Kleiner */
  height: 60px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-xl);
  display: grid;
  place-items: center;
  font-size: var(--text-2xl); /* Kleiner */
  color: white;
  box-shadow: var(--shadow-md);
}

.nav h1 {
  font-size: var(--text-2xl); /* Kleiner */
  font-weight: 700;
  color: var(--on-surface);
  text-align: center;
  margin: 0;
}

.nav .subtitle {
  font-size: var(--text-base); /* Kleiner */
  color: var(--on-surface-variant);
  text-align: center;
  margin: 0;
}

/* Kompakte Navigation Links */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  max-width: 100%;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3); /* Weniger Padding */
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--on-surface);
  font-weight: 500;
  font-size: var(--text-sm);
  background: var(--surface);
  border: 1px solid var(--outline);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.nav-links a:hover {
  background: var(--accent-500);
  color: white;
  transform: translateY(-1px);
}

.nav-links a.active {
  background: var(--primary-500);
  color: white;
}

/* Kompaktes Breadcrumb */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--outline);
  padding: var(--space-3) 0; /* Weniger Padding */
  position: sticky;
  top: 0;
  z-index: 49;
}

.breadcrumb-content {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--on-surface-variant);
}

.breadcrumb a {
  color: var(--accent-600);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Page Header */
.page-header {
  text-align: center;
  padding: var(--space-8) 0; /* Weniger Padding */
}

.page-header h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--on-surface);
  margin-bottom: var(--space-4);
}

.page-header p {
  font-size: var(--text-lg);
  color: var(--on-surface-variant);
  max-width: 65ch;
  margin: 0 auto;
}

/* Content Cards */
.content-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--outline);
}

.content-card h3 {
  color: var(--primary-600);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.content-card h4 {
  color: var(--on-surface);
  font-size: var(--text-lg);
  font-weight: 600;
  margin: var(--space-4) 0 var(--space-2) 0;
}

.content-card p {
  margin-bottom: var(--space-4);
  color: var(--on-surface-variant);
}

.content-card ul {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}

.content-card li {
  margin-bottom: var(--space-2);
  color: var(--on-surface-variant);
}

.content-card li strong {
  color: var(--on-surface);
}

/* Code blocks */
.content-card code {
  background: var(--surface-variant);
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  font-family: monospace;
  font-size: var(--text-sm);
}

.content-card pre {
  background: var(--surface-variant);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--space-4) 0;
}

.content-card pre code {
  background: none;
  padding: 0;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--accent-500);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  background: var(--surface-variant);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  margin-top: var(--space-8);
}

.footer-content {
  padding: var(--space-8) 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-links a {
  color: #60a5fa;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer p {
  opacity: 0.8;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

/* Responsive */
@media (max-width: 640px) {
  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
    width: 100%;
    max-width: 400px;
  }
  
  .nav-links a {
    justify-content: center;
    font-size: 0.75rem;
  }
  
  .nav h1 {
    font-size: var(--text-xl);
  }
  
  .page-header h2 {
    font-size: var(--text-2xl);
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0f172a;
    --surface-variant: #1e293b;
    --on-surface: #f8fafc;
    --on-surface-variant: #cbd5e1;
    --outline: #475569;
  }
  
  .nav {
    background: rgba(15, 23, 42, 0.95);
  }
}

/* Print */
@media print {
  .nav, .footer, .breadcrumb {
    display: none;
  }
}