/* === Andre Alpar – Static Site === */
:root {
  --blue: #003aa5;
  --blue-light: #2ea3f2;
  --dark: #1a1a2e;
  --text: #444;
  --text-light: #666;
  --bg: #fff;
  --bg-alt: #f8f9fa;
  --border: #e8e8e8;
  --max-width: 1100px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  background: var(--bg);
}

a { color: var(--blue-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue); }

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

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

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: none;
}
.logo span { color: var(--blue-light); }

.nav-wrap { justify-content: center; }

.nav-links { display: flex; gap: 4px; list-style: none; position: relative; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  background: var(--bg-alt);
  color: var(--dark);
}

/* Dropdown */
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-radius: 8px; min-width: 220px; padding: 8px 0; box-shadow: 0 8px 30px rgba(0,0,0,.1); z-index: 200; }
.nav-links > li:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 20px; font-size: 14px; color: var(--text); }
.dropdown a:hover { background: var(--bg-alt); color: var(--dark); }

/* EN Language Switch */
.nav-en { margin-left: 4px; }
.nav-en a {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 5px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--blue) !important;
  border-radius: 4px;
  transition: all .2s;
}
.nav-en a:hover { background: var(--blue-light) !important; }
.nav-en .flag { font-size: 13px; line-height: 1; }

/* Mobile menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 5px 0; transition: .3s; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
  }
  .nav-links.open { display: flex; }
  .dropdown { position: static; box-shadow: none; border: none; padding-left: 16px; }
  .nav-links > li:hover .dropdown { display: none; }
  .nav-links > li.open .dropdown { display: block; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  filter: brightness(.45);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
  padding: 40px 24px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: .9;
  line-height: 1.6;
  font-weight: 300;
}

/* --- Page Hero (smaller for subpages) --- */
.page-hero {
  min-height: 50vh;
}
.page-hero .hero-content { max-width: 800px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .subtitle { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- Sections --- */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--bg-alt); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -.5px;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.card h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.card p { font-size: .95rem; color: var(--text-light); }

/* --- Investment list --- */
.investment-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.investment-item:last-child { border-bottom: none; }
.investment-logo {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.investment-logo img { max-height: 50px; width: auto; }
.investment-info h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: 4px; }
.investment-info p { font-size: .95rem; }

/* --- Testimonial --- */
.testimonial {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.testimonial:last-child { border-bottom: none; }
.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--blue-light);
}
.testimonial blockquote {
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--blue-light);
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--dark);
  font-size: .9rem;
}
.testimonial cite span { font-weight: 400; color: var(--text-light); }

/* --- Talk list --- */
.talk-year { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--blue-light); }
.talk-year:first-child { margin-top: 0; }
.talk-item { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: center; }
.talk-item:last-child { border-bottom: none; }
.talk-logo { width: 100px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.talk-logo img { max-height: 40px; width: auto; }
.talk-info h3 { font-size: 1rem; color: var(--dark); margin-bottom: 2px; }
.talk-info p { font-size: .9rem; color: var(--text-light); }
.talk-info .talk-date { font-size: .85rem; color: var(--blue-light); font-weight: 600; }

/* --- CV list --- */
.cv-list { list-style: none; }
.cv-list li {
  padding: 12px 0 12px 24px;
  border-left: 2px solid var(--border);
  position: relative;
  transition: border-color .2s;
}
.cv-list li:hover { border-color: var(--blue-light); }
.cv-list li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-light);
}

/* --- Exits grid --- */
.exits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.exit-card {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 24px;
}
.exit-card h3 { font-size: 1rem; color: var(--dark); margin-bottom: 4px; }
.exit-card p { font-size: .9rem; color: var(--text-light); }

/* --- Contact --- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-color: var(--blue-light);
  color: var(--blue-light);
}

/* --- Impressum / Datenschutz --- */
.legal-content h3 { font-size: 1.2rem; color: var(--dark); margin: 32px 0 12px; }
.legal-content h3:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 16px; }

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 40px 0;
  font-size: .9rem;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: rgba(255,255,255,.6); }
.footer-links a:hover { color: #fff; }

/* --- Photo Gallery --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.photo-grid img {
  border-radius: 8px;
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .3s, box-shadow .3s;
}
.photo-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}

/* --- Tweet Cards --- */
.tweet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.tweet-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.tweet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.tweet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.tweet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
}
.tweet-author {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tweet-name {
  font-weight: 700;
  color: var(--dark);
  font-size: .95rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tweet-handle {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.3;
}
.tweet-icon {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-light);
  opacity: .5;
}
.tweet-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.tweet-body {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.tweet-body a {
  color: var(--blue-light);
  font-weight: 500;
}
.tweet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.tweet-date {
  font-size: .8rem;
  color: var(--text-light);
}
.tweet-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tweet-link:hover {
  color: var(--blue);
}

@media (max-width: 768px) {
  .tweet-grid { grid-template-columns: 1fr; gap: 16px; }
  .tweet-card { padding: 20px; }
}

@media (max-width: 600px) {
  .tweet-grid { gap: 12px; }
  .tweet-card { padding: 16px; }
  .tweet-avatar { width: 40px; height: 40px; font-size: 16px; }
  .tweet-body { font-size: .9rem; }
}

/* --- Utilities --- */
.accent { color: var(--blue-light); }
.mt-0 { margin-top: 0; }

/* --- Tablet (max 900px) already handled above for nav --- */

/* --- Tablet refinement --- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 60px 0; }
  .section-title { font-size: 1.75rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 36px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
  .card { padding: 24px; }
  .hero-content { padding: 32px 20px; }
  .hero { min-height: 75vh; }
  .page-hero { min-height: 45vh; }
  .testimonial { gap: 20px; }
  .talk-item { gap: 16px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* --- Mobile --- */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  body { font-size: 16px; }
  section { padding: 40px 0; }
  .hero { min-height: 65vh; }
  .page-hero { min-height: 35vh; }
  .page-hero h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .page-hero .subtitle { font-size: 1rem; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: .95rem; margin-bottom: 28px; }
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 20px; }
  .card h3 { font-size: 1.05rem; }
  .testimonial { flex-direction: column; gap: 16px; }
  .testimonial-img { width: 64px; height: 64px; }
  .testimonial blockquote { padding-left: 16px; font-size: .95rem; }
  .investment-item { flex-direction: column; text-align: center; gap: 16px; }
  .investment-logo { width: 100%; justify-content: center; }
  .investment-logo img { max-height: 40px; }
  .talk-item { flex-direction: column; gap: 12px; }
  .talk-logo { width: 100%; }
  .talk-logo img { max-height: 35px; }
  .talk-year { font-size: 1.25rem; margin: 28px 0 12px; }
  .exits-grid { grid-template-columns: 1fr; }
  .exit-card { padding: 20px; }
  .social-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
  .social-link { padding: 16px 12px; font-size: .9rem; }
  .footer-wrap { flex-direction: column; text-align: center; gap: 12px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .photo-grid img { height: 160px; }
  .nav-links { top: 56px; }
  .nav-wrap { height: 56px; }
  .hero { margin-top: 56px; }
}
