/* ============================================
   Patrick Max – Premium Finance Brand
   Dark / White / Gold | Playfair + Inter
   ============================================ */

:root {
  --bg-dark: #0a0a0a;
  --bg-card: #111111;
  --bg-section: #0d0d0d;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --gold: #c9a227;
  --gold-light: #d4af37;
  --gold-dark: #a88622;
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

ul {
  list-style: none;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: radial-gradient(circle at top left, rgba(201, 162, 39, 0.16), transparent 55%), rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), padding var(--transition);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.logo-first {
  color: var(--gold);
}

.logo-second {
  color: var(--white);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-bottom: 0.15rem;
}

.nav a:hover {
  color: var(--gold);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
  box-shadow: 0 14px 30px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: #0a0a0a;
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 6.5rem 2rem 4.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 162, 39, 0.18), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(135deg, var(--bg-dark) 0%, #0f0f12 50%, #12121a 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  max-width: 580px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--transition) forwards;
}

.hero-accent {
  width: 4px;
  height: 80px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
  border-radius: 2px;
  animation: fadeUp 0.8s 0.2s var(--transition) forwards;
  opacity: 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: inline-block;
  margin-bottom: 2rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-backdrop.is-visible {
  display: flex;
}

.modal-dialog {
  max-width: 520px;
  width: 90%;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem 2.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}

.modal-dialog h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.modal-text {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--gold);
}

.hero-intro {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.8s 0.25s var(--transition) forwards;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s var(--transition) forwards;
}

.hero-image-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: min(70vh, 620px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--bg-card) 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 1.5rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Sections ========== */
.section {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.section:nth-child(even) {
  background: var(--bg-section);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* About */
.about-lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-main p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* Timeline / Experience */
.timeline {
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.2);
}

.timeline-content h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.timeline-content p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.timeline-content {
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.timeline-content ul {
  margin-top: 0.5rem;
}

.timeline-content li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

/* Achievements */
.achievements-list {
  display: grid;
  gap: 1rem;
}

.achievements-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.achievements-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* Media / Bekannt aus – gleicher Abschnittsstil wie übrige Sektionen */

.media-logos {
  overflow: hidden;
}

.media-track {
  display: inline-flex;
  gap: 1.25rem;
  align-items: center;
  animation: media-marquee 28s linear infinite;
  will-change: transform;
}

.media-logo {
  padding: 0.9rem 1.4rem;
  background: #141414;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.media-logo:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@keyframes media-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Education */
.education-grid {
  display: grid;
  gap: 2rem;
}

.education-item {
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.education-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.education-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Certifications */
.cert-list {
  display: grid;
  gap: 0.75rem;
}

.cert-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.cert-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

/* Philosophy */
.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  border-left: 4px solid var(--gold);
}

.philosophy-name {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.philosophy-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.philosophy-pillars li {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.95rem;
  border: 1px solid var(--border);
}

/* Contact – gleicher Kartenstil wie Ausbildung / Philosophie */
.contact-header {
  margin-bottom: 2.5rem;
}

.contact-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.65;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-form-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
}

.contact-form-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  margin-top: 0.5rem;
  width: 100%;
}

.contact-direct {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-direct-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}

.contact-email-link:hover {
  color: var(--gold-light);
}

.contact-email-icon {
  font-size: 1.25rem;
  opacity: 0.9;
}

.btn-linkedin {
  align-self: flex-start;
}

/* Footer – gleicher Stil wie Sektionen */
.footer {
  padding: 4rem 2rem 2.5rem;
  background: var(--bg-section);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-first,
.footer-brand .logo-second {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
}

.footer-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* ========== Scroll animations ========== */
.section .section-title,
.section .about-lead,
.timeline-item,
.achievements-list li,
.education-item,
.cert-list li,
.philosophy-quote,
.contact-form-card,
.contact-direct {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

.section.visible .section-title,
.section.visible .about-lead,
.section.visible .timeline-item,
.section.visible .achievements-list li,
.section.visible .education-item,
.section.visible .cert-list li,
.section.visible .philosophy-quote,
.section.visible .contact-form-card,
.section.visible .contact-direct {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.achievements-list li:nth-child(1) { transition-delay: 0.1s; }
.achievements-list li:nth-child(2) { transition-delay: 0.15s; }
.achievements-list li:nth-child(3) { transition-delay: 0.2s; }
.achievements-list li:nth-child(4) { transition-delay: 0.25s; }
.education-item:nth-child(1) { transition-delay: 0.1s; }
.education-item:nth-child(2) { transition-delay: 0.2s; }
.cert-list li:nth-child(1) { transition-delay: 0.1s; }
.cert-list li:nth-child(2) { transition-delay: 0.15s; }
.cert-list li:nth-child(3) { transition-delay: 0.2s; }
.contact-direct { transition-delay: 0.1s; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    justify-content: center;
  }

  .hero-accent {
    display: none;
  }

  .hero-intro {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image-wrap {
    justify-content: center;
  }

  .hero-image {
    max-width: 360px;
    margin: 0 auto;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 1rem 1.25rem;
  }

  .hero {
    padding: 5rem 1.25rem 3rem;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .contact-form-card,
  .contact-direct {
    padding: 1.5rem 1.25rem;
  }

  .contact-header {
    margin-bottom: 2rem;
  }

  .container {
    padding: 0;
  }

  .philosophy-pillars {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}
