/* ============================================
   Institut für Anerkennung — Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy: #1A2744;
  --navy-light: #2a3d5c;
  --navy-dark: #111b30;
  --white: #ffffff;
  --offwhite: #f5f5f5;
  --text: #1a1a1a;
  --text-light: #555555;
  --max-width: 1200px;
  --content-width: 800px;
  --header-height: 75px;
  --header-height-scrolled: 55px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Libre Baskerville', Georgia, serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.2em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.intro-text {
  font-family: 'Zahrah', 'Libre Baskerville', Georgia, serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
}

p {
  margin-bottom: 1.2em;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  transition: var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--header-height);
  transition: height var(--transition);
}

.site-header.scrolled .header-inner {
  height: var(--header-height-scrolled);
}

/* Nav left/right */
.nav-left,
.nav-right {
  display: flex;
  gap: 2rem;
  flex: 1;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.nav-left a,
.nav-right a {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-left a:hover,
.nav-right a:hover {
  color: var(--navy);
}

.nav-left a.active,
.nav-right a.active {
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
}

/* Logo */
.logo-wrapper {
  margin: 0 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-full {
  height: 42px;
  transition: opacity var(--transition), height var(--transition);
}

.logo-icon {
  height: 30px;
  display: none;
  transition: opacity var(--transition);
}

.site-header.scrolled .logo-full {
  display: none;
}

.site-header.scrolled .logo-icon {
  display: block;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -6px);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  padding-top: calc(var(--header-height) + 2rem);
  text-align: center;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mobile-nav a {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
}

.mobile-nav a:hover {
  color: var(--navy);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 400px;
  overflow: hidden;
  margin-top: var(--header-height);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  background: var(--white);
  max-width: 800px;
  margin: -80px auto 0;
  padding: 3rem 3rem 2rem;
  text-align: center;
  z-index: 10;
}

.hero-overlay h1 {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.12em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Homepage hero (image + floating overlay) */
.hero-home {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-home .hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-home::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 39, 68, 0.35) 0%, rgba(26, 39, 68, 0.55) 100%);
  z-index: 1;
}

.hero-home .hero-overlay {
  margin: 4rem 0 0;
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  padding: 3rem 4rem 2.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

/* --- Content Sections --- */
.section {
  padding: 4rem 2rem;
}

.section-light {
  background: var(--offwhite);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.section-wide {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.section-dark h2 {
  color: var(--white);
}

/* Article content */
.article-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.article-content h2 {
  text-align: left;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.article-content p {
  text-align: left;
}

.article-meta {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

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

.card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

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

.card-author {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* --- Book Section --- */
.books-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.book-item {
  text-align: center;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-item .btn {
  margin-top: auto;
}

.book-cover {
  width: 200px;
  height: 300px;
  object-fit: contain;
  box-shadow: 4px 4px 15px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
}

.book-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.9rem;
  font-style: italic;
}

.book-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.btn-sm {
  font-size: 0.7rem;
  padding: 0.6rem 1.8rem;
}

/* --- Expert Profile --- */
.expert-profile {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: var(--content-width);
  margin: 0 auto 2.5rem;
}

.expert-profile:last-child {
  margin-bottom: 0;
}

.expert-photo {
  width: 160px;
  flex-shrink: 0;
  border-radius: 2px;
  object-fit: cover;
}

.expert-info h3 {
  margin-bottom: 0.5rem;
}

.expert-info p {
  font-size: 0.95rem;
}

/* --- Questions Carousel --- */
.questions-list {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.question-item {
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,0.08);
  border-left: 3px solid rgba(255,255,255,0.3);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 2rem 0;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0;
  max-width: 300px;
}

.footer-heading {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

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

.footer-connect {
  display: flex;
  flex-direction: column;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-icons a:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
}

.social-icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom p {
  margin: 0;
}

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

.footer-legal a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

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

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.95rem;
  transition: border var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.btn {
  display: inline-block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2.5rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.btn:hover {
  background: var(--navy-light);
}

/* --- Legal Pages --- */
.legal-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.legal-content h2 {
  text-align: left;
  margin-top: 2rem;
  font-size: 1.1rem;
}

.legal-content h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --header-height-scrolled: 55px;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .logo-wrapper {
    margin: 0;
  }

  .header-inner {
    justify-content: center;
    position: relative;
  }

  .hero {
    height: 50vh;
    margin-top: var(--header-height);
  }

  .hero-home {
    height: 70vh;
    min-height: 480px;
  }

  .hero-overlay {
    margin: -50px 1rem 0;
    padding: 2rem 1.5rem 1.5rem;
  }

  .hero-home .hero-overlay {
    margin: 2rem 1rem 0;
    padding: 2rem 1.5rem;
    max-width: 90%;
  }

  .section {
    padding: 3rem 1.5rem;
  }

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

  .expert-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .expert-photo {
    width: 200px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-tagline {
    max-width: none;
  }

  .footer-nav {
    align-items: center;
  }

  .footer-connect {
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .books-grid {
    flex-direction: column;
    align-items: center;
  }

  .article-content {
    padding: 2rem 1rem;
  }

  .logo-full {
    height: 45px;
  }

  .logo-icon {
    height: 35px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
    letter-spacing: 0.12em;
  }

  .hero {
    height: 40vh;
    min-height: 280px;
  }

  .hero-overlay {
    margin: -40px 0.5rem 0;
    padding: 1.5rem 1rem 1rem;
  }
}
