/* ===================================
   number10 - Gemeinsames Stylesheet
   =================================== */

/* CSS-Variablen für einheitliches Design */
:root {
   --primary-color: #2c3e50;
   --secondary-color: #3498db;
   --accent-color: #e74c3c;
   --text-color: #333;
   --text-light: #666;
   --bg-light: #f8f9fa;
   --border-color: #ddd;
   --max-width: 1200px;
   --transition: all 0.3s ease;
}

/* Reset & Base */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
   line-height: 1.6;
   color: var(--text-color);
   background-color: #fff;
}

a {
   color: var(--secondary-color);
   text-decoration: none;
   transition: var(--transition);
}

a:hover {
   color: var(--accent-color);
}

/* Header */
header {
   background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
   color: #fff;
   padding: 0.75rem 0;
   box-shadow: 0 2px 10px rgba(0,0,0,0.1);
   position: sticky;
   top: 0;
   z-index: 1000;
}

header .container {
   max-width: var(--max-width);
   margin: 0 auto;
   padding: 0 10px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
}

header h1 {
   font-size: 2rem;
   font-weight: 700;
   letter-spacing: 1px;
}

header .tagline {
   font-size: 0.95rem;
   opacity: 0.9;
   margin-top: 0.25rem;
}

/* Navigation */
nav {
   margin-top: 1rem;
}

nav ul {
   list-style: none;
   display: flex;
   gap: 1.5rem;
   flex-wrap: wrap;
}

nav a {
   color: #fff;
   padding: 0.5rem 1rem;
   border-radius: 4px;
   transition: var(--transition);
   font-weight: 500;
}

nav a:hover,
nav a.active {
   background: rgba(255, 255, 255, 0.2);
}

/* Language Switcher */
.lang-switch {
   display: flex;
   gap: 0.5rem;
   margin-top: 1rem;
}

.lang-switch button {
   background: rgba(255, 255, 255, 0.1);
   color: #fff;
   border: 1px solid rgba(255, 255, 255, 0.3);
   padding: 0.4rem 0.8rem;
   border-radius: 4px;
   cursor: pointer;
   transition: var(--transition);
   font-size: 0.9rem;
}

.lang-switch button:hover,
.lang-switch button.active {
   background: rgba(255, 255, 255, 0.3);
}

/* Container */
.container {
   max-width: var(--max-width);
   margin: 0 auto;
   padding: 0 20px;
}

/* Main Content */
main {
   min-height: calc(100vh - 300px);
   padding: 2rem 0;
}

section {
   margin: 2rem 0;
}

/* Typography */
h1 {
   font-size: 2.5rem;
   margin-bottom: 1rem;
   color: var(--primary-color);
}

h2 {
   font-size: 2rem;
   margin-bottom: 1rem;
   padding-bottom: 0.5rem;
   border-bottom: 3px solid var(--secondary-color);
   color: var(--primary-color);
}

h3 {
   font-size: 1.5rem;
   margin: 1.5rem 0 1rem;
   color: var(--primary-color);
}

p {
   margin-bottom: 1rem;
   color: var(--text-color);
}

/* Cards Grid */
.cards-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 2rem;
   margin: 2rem 0;
}

.card {
   background: #fff;
   border-radius: 8px;
   padding: 2rem;
   box-shadow: 0 4px 6px rgba(0,0,0,0.1);
   transition: var(--transition);
   border: 1px solid var(--border-color);
}

.card:hover {
   transform: translateY(-5px);
   box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.card img {
   width: 100%;
   height: 200px;
   object-fit: cover;
   border-radius: 6px;
   margin-bottom: 1rem;
}

.card h3 {
   margin-top: 0;
   border: none;
}

.card .btn {
   display: inline-block;
   margin-top: 1rem;
   padding: 0.75rem 1.5rem;
   background: var(--secondary-color);
   color: #fff;
   border-radius: 4px;
   font-weight: 500;
   transition: var(--transition);
}

.card .btn:hover {
   background: var(--accent-color);
   transform: translateX(5px);
}

/* Content Area für Markdown */
.content {
   background: #fff;
   padding: 2rem;
   border-radius: 8px;
   box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.content img {
   max-width: 300px;
   height: auto;
   border-radius: 6px;
   margin: 1rem 0;
   display: block;
}

.content ul,
.content ol {
   margin-left: 2rem;
   margin-bottom: 1rem;
}

.content li {
   margin-bottom: 0.5rem;
}

.content code {
   background: var(--bg-light);
   padding: 0.2rem 0.4rem;
   border-radius: 3px;
   font-family: 'Courier New', monospace;
   font-size: 0.9em;
}

.content pre {
   background: var(--bg-light);
   padding: 1rem;
   border-radius: 6px;
   overflow-x: auto;
   margin: 1rem 0;
}

.content blockquote {
   border-left: 4px solid var(--secondary-color);
   padding-left: 1rem;
   margin: 1rem 0;
   color: var(--text-light);
   font-style: italic;
}

/* Hero Section */
.hero {
   background: linear-gradient(135deg, var(--bg-light) 0%, #e8ecef 100%);
   padding: 4rem 0;
   margin: -2rem 0 3rem 0;
   text-align: center;
}

.hero h1 {
   font-size: 3rem;
   margin-bottom: 1rem;
}

.hero p {
   font-size: 1.25rem;
   color: var(--text-light);
   max-width: 700px;
   margin: 0 auto;
}

/* Footer */
footer {
   background: var(--bg-light);
   border-top: 1px solid var(--border-color);
   padding: 2rem 0;
   margin-top: 4rem;
}

footer .container {
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   gap: 1rem;
}

footer p {
   margin: 0.5rem 0;
   color: var(--text-light);
}

footer .footer-links {
   display: flex;
   gap: 1.5rem;
   flex-wrap: wrap;
}

footer .footer-links a {
   color: var(--text-color);
}

footer .footer-links a:hover {
   color: var(--secondary-color);
}

/* Loading Indicator */
.loading {
   text-align: center;
   padding: 3rem;
   color: var(--text-light);
}

.loading::after {
   content: '...';
   animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
   0%, 20% { content: '.'; }
   40% { content: '..'; }
   60%, 100% { content: '...'; }
}

/* Responsive */
@media (max-width: 768px) {
   header .container {
      flex-direction: column;
      text-align: center;
   }

   nav ul {
      justify-content: center;
   }

   .cards-grid {
      grid-template-columns: 1fr;
   }

   .hero h1 {
      font-size: 2rem;
   }

   footer .container {
      flex-direction: column;
      text-align: center;
   }
}

/* Utility Classes */
.text-center {
   text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.hidden {
   display: none;
}
