/* ===== SPEICHERWERK HH — Site CSS ===== */

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

:root {
  --primary: #2A4858;
  --primary-light: #3A6070;
  --primary-dark: #1A3040;
  --primary-darker: #0F1F2A;
  --bg: #F5F7F8;
  --bg-alt: #EAEEF0;
  --text: #1E2A30;
  --text-light: #4A5C64;
  --text-muted: #7A8E96;
  --white: #FFFFFF;
  --border: #D0D8DC;
  --accent: #5A9AAE;
  --accent-warm: #C87941;
  --shadow-sm: 0 1px 3px rgba(26, 48, 64, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 48, 64, 0.1);
  --shadow-lg: 0 8px 24px rgba(26, 48, 64, 0.12);
  --radius: 6px;
  --radius-lg: 10px;
  --max-width: 1140px;
  --header-h: 64px;
  --transition: 0.2s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent);
}

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

/* ---------- HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary-dark);
  height: var(--header-h);
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

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

.logo span {
  opacity: 0.6;
  font-weight: 400;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- HERO ---------- */

.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  padding: 72px 24px 64px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.85;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto;
}

/* ---------- SECTION ---------- */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px;
  width: 100%;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 36px;
}

/* ---------- CARD GRID ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

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

.card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--border) 100%);
  position: relative;
}

.card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.card-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--primary-dark);
}

.card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.55;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.82rem;
}
.card-link:hover {
  color: var(--accent);
}

/* ---------- ARTICLE PAGE ---------- */

.article-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 56px 24px 48px;
  text-align: center;
}

.article-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.article-hero .category-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.article-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.88rem;
  opacity: 0.8;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin: 32px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 28px 0;
  padding: 16px 24px;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

.article-content ul,
.article-content ol {
  margin: 0 0 18px 24px;
}

.article-content li {
  margin-bottom: 6px;
  font-size: 1.02rem;
  line-height: 1.65;
}

.article-emoji-block {
  text-align: center;
  font-size: 5rem;
  padding: 32px;
  margin: 32px 0;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}

.article-nav {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 56px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.article-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--transition);
}

.article-nav a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ---------- PAGE HEADER (about, contact, privacy) ---------- */

.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 48px 24px 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.8;
  font-size: 1.05rem;
}

/* ---------- ABOUT PAGE ---------- */

.about-intro {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-intro p {
  margin-bottom: 18px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 32px 24px;
}

.team-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.team-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ---------- CONTACT PAGE ---------- */

.contact-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.contact-note {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

.contact-note h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

/* ---------- PRIVACY PAGE ---------- */

.privacy-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.privacy-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 36px 0 12px;
}

.privacy-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 24px 0 10px;
}

.privacy-content p {
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
}

.privacy-content ul {
  margin: 0 0 14px 24px;
}

.privacy-content li {
  margin-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
}

/* ---------- FOOTER ---------- */

.site-footer {
  margin-top: auto;
  background: var(--primary-darker);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}

.footer-brand span {
  font-weight: 400;
  opacity: 0.6;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 2rem;
  }
  .article-hero h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 56px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .main-nav a {
    display: block;
    padding: 12px 16px;
  }

  .hero {
    padding: 48px 20px 40px;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .card-grid,
  .card-grid.cols-2 {
    grid-template-columns: 1fr;
  }

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

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

  .section {
    padding: 40px 16px;
  }

  .article-hero h1 {
    font-size: 1.5rem;
  }

  .article-content {
    padding: 32px 16px 48px;
  }

  .article-content p {
    font-size: 1rem;
  }

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

  .footer-links {
    justify-content: center;
  }

  .article-nav {
    flex-direction: column;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }
}
