/* Deutsch Lernen - magsimports.com
   Styles for German learning site for immigrants */

:root {
  --color-primary: #1a5f7a;
  --color-primary-dark: #134a5e;
  --color-accent: #159895;
  --color-bg: #f8fafb;
  --color-surface: #ffffff;
  --color-text: #2d3748;
  --color-text-muted: #718096;
  --color-border: #e2e8f0;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

/* Header */
.site-header {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover {
  color: var(--color-accent);
}

.logo-icon {
  font-size: 1.75rem;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
}

.lang-switcher a {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--color-text-muted);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  background: var(--color-primary);
  color: white;
}

/* Navigation */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.main-nav a {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.main-nav a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero-cta {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: white;
  color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-bg);
  transform: translateY(-1px);
}

/* Primary button on light background (sections) */
.section .btn-primary {
  background: var(--color-primary);
  color: white;
}

.section .btn-primary:hover {
  background: var(--color-primary-dark);
  color: white;
}

.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--color-primary);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Hero image */
.hero-image {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

.hero-image figcaption {
  padding: 1rem 1.5rem;
  background: var(--color-surface);
  font-size: 1rem;
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  border: 1px solid var(--color-border);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

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

/* Level badges */
.level-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  margin-right: 0.5rem;
}

.level-a1 { background: #e6fffa; color: #0d9488; }
.level-a2 { background: #dbeafe; color: #2563eb; }
.level-b1 { background: #fef3c7; color: #d97706; }

/* Feature list */
.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* FAQ */
.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.faq-question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--color-bg);
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: white;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

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

.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

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

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-copy small {
  display: block;
  margin-top: 0.5rem;
  opacity: 0.95;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Taboola disclosure – prominent for ad policy compliance */
.footer-copy small a {
  color: rgba(255,255,255,0.95);
  text-decoration: underline;
  font-weight: 500;
}

.footer-copy small a:hover {
  color: white;
}

.container h2 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.container h2:first-of-type {
  margin-top: 1rem;
}

.container ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

/* External link icon */
.ext-link::after {
  content: " ↗";
  font-size: 0.8em;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
  }

  .main-nav.open {
    display: flex;
    margin-top: 1rem;
  }

  .main-nav a {
    padding: 0.75rem;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary-dark);
  color: white;
  padding: 1rem 1.5rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  z-index: 1000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
  min-width: 200px;
}

.cookie-banner a {
  color: rgba(255,255,255,0.95);
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.cookie-banner .btn-accept {
  background: var(--color-accent);
  color: white;
  border: none;
}

.cookie-banner .btn-decline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.6);
}

/* Contact form */
.container-narrow {
  max-width: 600px;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Testimonials / Reviews */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}

.testimonial-card p {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

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