/*
Theme Name: PublishMotion
Theme URI: https://publishmotion.at
Author: PublishMotion
Author URI: https://publishmotion.at
Description: Landing page for PublishMotion - redaktionelle Video-Formate skalieren.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: publishmotion
*/

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  --bg-color: #fcfbf9;
  --bg-dark: #121212;
  --text-primary: #111111;
  --text-primary-inverse: #fcfbf9;
  --text-secondary: #666666;
  --text-secondary-inverse: #a0a0a0;
  --accent: #ff0080;
  --border-color: #e0e0e0;
  --border-color-inverse: #333333;
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --content-width: 1400px;
  --section-padding: 10rem 4rem;
  --header-height: 90px;
  --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.05;
  color: inherit;
  margin-bottom: 2rem;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: var(--transition-smooth);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.theme-dark {
  background-color: var(--bg-dark);
  color: var(--text-primary-inverse);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: transparent;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease;
}

header.scrolled {
  background-color: var(--accent);
}

.nav-container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  transition: color 0.4s ease;
}

header.scrolled .nav-container {
  color: #fff;
}

.logo-wrapper { display: flex; align-items: center; }
.logo-svg { height: 36px; width: auto; filter: invert(1); }

header.scrolled .logo-svg {
  filter: none;
}

.nav-links { display: flex; gap: 3rem; align-items: center; }

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  position: relative;
  transition: opacity 0.3s;
}

.nav-links a:hover { opacity: 0.5; }

.nav-links a.nav-cta {
  background-color: var(--accent);
  color: #fff !important;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-links a.nav-cta:hover {
  opacity: 1;
  transform: scale(1.05);
  background-color: #e60073;
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.burger-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.4s ease;
}

header.scrolled .burger-menu span {
  background: #fff;
}

.burger-menu.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-symbol {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1;
  pointer-events: none;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-content {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 4rem;
  position: relative;
  z-index: 2;
}

.hero-content h1,
.hero-content p { max-width: 55%; }

.hero h1 {
  font-size: clamp(3.5rem, 7vw, 7rem);
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  line-height: 1;
}

.hero h1 span.highlight {
  position: relative;
  display: inline-block;
  font-style: italic;
  font-weight: 500;
}

.hero h1 span.highlight::after {
  content: '';
  position: absolute;
  bottom: 8%;
  left: -2%;
  width: 104%;
  height: 30%;
  background-color: rgba(255, 0, 128, 0.15);
  z-index: -1;
  transform: rotate(-1deg);
}

.hero p {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.5;
  font-weight: 300;
}

.abstract-hero-svg {
  display: block;
  height: 100%;
  width: auto;
  border: 0;
  background: transparent;
  opacity: 1;
  overflow: visible;
  pointer-events: none;
  animation: heroGraphicDrift 18s ease-in-out infinite;
  will-change: transform;
}

@keyframes heroGraphicDrift {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-14px) rotate(0.5deg) scale(1.01); }
}

/* ==========================================================================
   General Sections
   ========================================================================== */
section { padding: var(--section-padding); }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 5rem;
  color: inherit;
}

.theme-dark .section-label { color: var(--text-secondary-inverse); }

.section-label::before {
  content: '';
  display: inline-block;
  width: 60px;
  height: 1px;
  background-color: currentColor;
}

/* ==========================================================================
   How It Works Header
   ========================================================================== */
.how-it-works-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 6rem;
}

.how-it-works-header h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.how-it-works-header p {
  font-size: 1.4rem;
  color: var(--text-secondary-inverse);
  font-weight: 300;
}

/* ==========================================================================
   Process Split Layout (Steps Left | Claim Right)
   ========================================================================== */
.process-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: stretch;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color-inverse);
  flex: 1;
}

.step-item:first-child {
  padding-top: 0;
}

.step-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-number {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  flex-shrink: 0;
}

.step-icon {
  width: 28px;
  height: 28px;
  color: var(--text-secondary-inverse);
  flex-shrink: 0;
}

.step-text {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 300;
  font-family: var(--font-sans);
  color: var(--text-secondary-inverse);
}

.process-claim {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.10) 0%, rgba(255, 0, 128, 0.02) 100%);
  border-radius: 0 16px 16px 0;
}

.claim-body {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  line-height: 1.45;
  font-weight: 300;
  color: var(--text-primary-inverse);
  margin-bottom: 2.5rem;
}

.claim-tagline {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--accent);
  line-height: 1.3;
}

/* ==========================================================================
   Security
   ========================================================================== */
.security-header {
  max-width: 1000px;
  margin-bottom: 6rem;
}

.security-header h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.2;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 4rem;
}

.security-item { display: flex; flex-direction: column; }

.security-item svg {
  width: 48px;
  height: 48px;
  margin-bottom: 2rem;
  stroke: var(--text-primary);
  stroke-width: 1;
}

.security-item p {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==========================================================================
   Pricing / Contact
   ========================================================================== */
.pricing-section {
  text-align: center;
  padding: 12rem 4rem;
  background-color: #fff;
}

.pricing-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-cta {
  padding: 10rem 4rem;
  text-align: center;
  background-color: var(--text-primary);
  color: var(--text-primary-inverse);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 4rem;
  background-color: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
}

.cta-button:hover {
  transform: scale(1.05);
  background-color: #e60073;
}

.cta-symbol {
  width: 60px;
  height: auto;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.footer-bottom {
  background-color: var(--text-primary);
  color: #fff;
  padding: 0 4rem 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 3rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer-logo-small { height: 36px; filter: none; }

.footer-meta {
  font-size: 0.9rem;
  color: var(--text-secondary-inverse);
}

.footer-separator {
  margin: 0 0.75rem;
  opacity: 0.3;
}

.footer-link {
  color: var(--text-secondary-inverse);
  transition: color 0.3s;
}

.footer-link:hover {
  color: #fff;
}

/* ==========================================================================
   Impressum Modal
   ========================================================================== */
.impressum-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.impressum-overlay.active {
  opacity: 1;
  visibility: visible;
}

.impressum-modal {
  background: var(--bg-color);
  color: var(--text-primary);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.impressum-overlay.active .impressum-modal {
  transform: translateY(0);
}

.impressum-close {
  position: sticky;
  top: 0;
  float: right;
  background: var(--bg-color);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: color 0.3s;
  border-radius: 0 16px 0 8px;
}

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

.impressum-content {
  padding: 3rem 4rem 4rem;
  overflow-y: auto;
  max-height: 85vh;
}

.impressum-content h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.impressum-content h1:first-child {
  margin-top: 0;
}

.impressum-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.impressum-content h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.impressum-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.impressum-content a {
  color: var(--accent);
  transition: opacity 0.3s;
}

.impressum-content a:hover {
  opacity: 0.7;
}

.impressum-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.impressum-content ul li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.impressum-content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 3rem 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  :root {
    --section-padding: 8rem 3rem;
  }

  .hero-bg-symbol { height: 100%; }

  .process-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .process-claim {
    position: static;
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 5rem 1.5rem;
    --header-height: 70px;
  }

  .nav-container { padding: 0 1.5rem; }

  .burger-menu { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--accent);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; color: #fff; }

  .nav-links a.nav-cta {
    background-color: rgba(255, 255, 255, 0.2);
    text-align: center;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
  }

  .hero {
    padding: calc(var(--header-height)) 0 2rem;
    align-items: flex-end;
  }

  .hero-content { padding: 0 1.5rem; }
  .hero-content h1, .hero-content p { max-width: 100%; }
  .hero h1 { font-size: 3rem; }

  .hero-bg-symbol {
    top: 10vh;
    right: 0;
    left: auto;
    width: 80vw;
    height: auto;
  }

  .abstract-hero-svg { width: 100%; height: auto; }
  .how-it-works-header h2 { font-size: 2.5rem; }

  .security-header h2 {
    font-size: 1.6rem;
    line-height: 1.35;
  }

  .security-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .process-claim {
    padding: 2rem;
  }

  .claim-body { font-size: 1.3rem; }
  .claim-tagline { font-size: 1.3rem; }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .impressum-content {
    padding: 2rem 1.5rem 3rem;
  }

  .impressum-content h1 {
    font-size: 1.3rem;
  }

  .impressum-content h3 {
    font-size: 0.85rem;
  }

  .impressum-content p,
  .impressum-content ul li {
    font-size: 0.9rem;
  }

  .impressum-modal {
    width: 95%;
    max-height: 90vh;
  }
}
