/* ============================================
   PAGES.CSS — Page-specific styles
   Steky Studio Portfolio Website
   ============================================ */

/* ----------------------------------------
   HOMEPAGE
   ---------------------------------------- */

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* === HERO LOGO ANIMATION === */
.hero-logo-animation {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(450px, 35vw);
  height: min(450px, 35vw);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-logo-animation {
    width: 250px;
    height: 250px;
    right: -5%;
    opacity: 0.6;
  }
}

.hero-logo-animation .draw-stroke {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-logo-animation .stroke-outer {
  stroke: #006D6F;
  stroke-dasharray: 8000;
  stroke-dashoffset: 8000;
}

.hero-logo-animation .stroke-inner {
  stroke: #2B2119;
  stroke-dasharray: 8000;
  stroke-dashoffset: 8000;
}

.hero-logo-animation .fill-outer,
.hero-logo-animation .fill-inner {
  opacity: 0;
}

.hero-logo-animation .segment {
  opacity: 0;
  transform-origin: 500px 550px;
  transform: scale(0.88);
}

/* Playing state — triggered once on page load */
.hero-logo-animation.playing .stroke-outer {
  animation: heroDrawLine 2s cubic-bezier(0.4, 0, 0.2, 1) 0s forwards,
             heroFadeOut 0.3s ease 2.1s forwards;
}

.hero-logo-animation.playing .stroke-inner {
  animation: heroDrawLine 2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards,
             heroFadeOut 0.3s ease 2.1s forwards;
}

.hero-logo-animation.playing .fill-outer {
  animation: heroFadeIn 0.35s ease 1.8s forwards;
}

.hero-logo-animation.playing .fill-inner {
  animation: heroFadeIn 0.35s ease 1.8s forwards;
}

.hero-logo-animation.playing .segment {
  animation: heroSegPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-logo-animation.playing .seg-1 { animation-delay: 2.0s; }
.hero-logo-animation.playing .seg-2 { animation-delay: 2.1s; }
.hero-logo-animation.playing .seg-3 { animation-delay: 2.2s; }
.hero-logo-animation.playing .seg-4 { animation-delay: 2.3s; }
.hero-logo-animation.playing .seg-5 { animation-delay: 2.4s; }
.hero-logo-animation.playing .seg-6 { animation-delay: 2.5s; }
.hero-logo-animation.playing .seg-7 { animation-delay: 2.6s; }
.hero-logo-animation.playing .seg-8 { animation-delay: 2.7s; }
.hero-logo-animation.playing .seg-9 { animation-delay: 2.8s; }

/* After animation completes, stay fully visible */
.hero-logo-animation.done {
  opacity: 1;
}

@keyframes heroDrawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes heroFadeIn {
  to { opacity: 1; }
}

@keyframes heroFadeOut {
  to { opacity: 0; }
}

@keyframes heroSegPop {
  0% { opacity: 0; transform: scale(0.88); }
  100% { opacity: 1; transform: scale(1); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-logo-animation .stroke-outer,
  .hero-logo-animation .stroke-inner,
  .hero-logo-animation .fill-outer,
  .hero-logo-animation .fill-inner,
  .hero-logo-animation .segment {
    animation: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
    transform: scale(1) !important;
  }
  .hero-logo-animation .draw-stroke {
    opacity: 0 !important;
  }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero h1 {
  margin-bottom: 24px;
}
.hero .subtitle {
  font-size: 18px;
  color: rgba(229, 212, 192, 0.8);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-link {
  color: #006D6F;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.hero-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #006D6F;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Service Cards Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card .service-number {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: rgba(0, 109, 111, 0.45);
  line-height: 1;
  margin-bottom: 16px;
}
.service-card h3 {
  color: #F6F2EC;
  margin-bottom: 12px;
}
.service-card p {
  color: rgba(229, 212, 192, 0.7);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.service-card .card-link {
  color: #006D6F;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}
.service-card .card-link:hover {
  color: #005456;
}

/* Portfolio Teaser — Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  min-height: 500px;
}
.bento-grid .project-card:first-child {
  grid-row: 1 / -1;
}
.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}
.project-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover .project-card-bg {
  transform: scale(1.05);
}
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 33, 25, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.3s;
}
.project-card:hover .project-card-overlay {
  background: linear-gradient(to top, rgba(43, 33, 25, 0.9) 0%, rgba(43, 33, 25, 0.3) 100%);
}
.project-card-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.project-card:hover .project-card-hover {
  opacity: 1;
}
.project-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.project-card .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Why Steky — Staggered Layout */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.why-grid .card-dark:nth-child(2) {
  margin-top: 40px;
}
.why-grid .card-dark:nth-child(3) {
  margin-top: 80px;
}
.why-grid .card-dark {
  border-left: 3px solid #006D6F;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 {
  color: #FFFFFF;
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(246, 242, 236, 0.85);
  margin-bottom: 32px;
  font-size: 18px;
}


/* ----------------------------------------
   LEISTUNGEN (SERVICES) PAGE
   ---------------------------------------- */

/* Service detail sections */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.service-detail.reverse {
  direction: rtl;
}
.service-detail.reverse > * {
  direction: ltr;
}
.service-detail-text .overline {
  margin-bottom: 12px;
}
.service-detail-text h2 {
  margin-bottom: 16px;
}
.service-detail-text p {
  margin-bottom: 24px;
  line-height: 1.7;
}
.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.service-price {
  font-size: 20px;
  font-weight: 700;
  color: #006D6F;
}
.service-mockup {
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
}

/* Premium bundle */
.premium-bundle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.premium-bundle .price-large {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #006D6F;
  margin: 16px 0;
}
.premium-bundle .savings {
  color: #922B3E;
  font-weight: 600;
  margin-bottom: 32px;
}

/* Process Timeline */
.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #006D6F;
}
.timeline-step {
  display: flex;
  gap: 32px;
  padding-bottom: 48px;
  position: relative;
}
.timeline-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #006D6F;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-content h3 {
  margin-bottom: 8px;
  color: #F6F2EC;
}
.timeline-content p {
  color: rgba(229, 212, 192, 0.7);
  font-size: 15px;
  line-height: 1.6;
}


/* ----------------------------------------
   PORTFOLIO PAGE
   ---------------------------------------- */

/* Filter bar */
.portfolio-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  justify-content: center;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 24px;
  border: 1.5px solid rgba(229, 212, 192, 0.2);
  background: transparent;
  color: #F6F2EC;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-btn:hover {
  border-color: #006D6F;
  color: #006D6F;
}
.filter-btn.active {
  background: #006D6F;
  color: #FFFFFF;
  border-color: #006D6F;
}

/* Portfolio Bento Galleries */
.portfolio-project {
  margin-bottom: 80px;
}

.project-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.project-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #F6F2EC;
}

.project-tags {
  display: flex;
  gap: 8px;
}

.project-tags .tag {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 109, 111, 0.15);
  color: #006D6F;
}

.project-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}

.bento-item {
  border-radius: 12px;
  overflow: hidden;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bento-item:hover img {
  transform: scale(1.03);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-medium {
  grid-column: span 2;
}

.bento-small {
  grid-column: span 1;
}

@media (max-width: 1024px) {
  .project-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }
  .bento-large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 768px) {
  .project-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .bento-large {
    grid-column: span 2;
    grid-row: span 1;
  }
  .bento-medium {
    grid-column: span 2;
  }
  .portfolio-project {
    margin-bottom: 56px;
  }
}


/* ----------------------------------------
   UEBER MICH (ABOUT) PAGE
   ---------------------------------------- */

/* About Hero — split layout */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-photo-placeholder {
  aspect-ratio: 3/4;
  border-radius: 16px;
  border: 2px solid #006D6F;
  overflow: hidden;
  min-height: 400px;
}
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 24px;
  background: rgba(45, 125, 70, 0.15);
  font-size: 14px;
  font-weight: 500;
  color: #F6F2EC;
  margin-bottom: 24px;
}
.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2D7D46;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.stats-row {
  display: flex;
  gap: 32px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.stat-item .stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #006D6F;
}
.stat-item .stat-label {
  font-size: 14px;
  color: rgba(229, 212, 192, 0.7);
}

/* ADHD Hyperfokus — Highlight Fun-Fact Card */
.fact-card.highlight {
  background: rgba(0, 109, 111, 0.15);
  border: 1px solid rgba(0, 109, 111, 0.4);
  box-shadow:
    0 0 20px rgba(0, 109, 111, 0.15),
    0 0 60px rgba(0, 109, 111, 0.05);
  position: relative;
}

.fact-card.highlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 109, 111, 0.2), transparent, rgba(0, 109, 111, 0.1));
  z-index: 0;
  animation: glowPulse 3s ease-in-out infinite;
}

.fact-card.highlight > * {
  position: relative;
  z-index: 1;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.fact-card.highlight h3 {
  color: #006D6F;
}

/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.tool-tile {
  text-align: center;
  padding: 24px 16px;
}
.tool-tile .tool-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}
.tool-tile .tool-name {
  font-size: 14px;
  font-weight: 500;
  color: #F6F2EC;
}

/* Fun facts grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.fact-card .fact-emoji {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}
.fact-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.fact-card p {
  font-size: 14px;
  color: rgba(229, 212, 192, 0.7);
  line-height: 1.6;
}

/* Warum Himbeere section */
.himbeere-section .story-text {
  max-width: 600px;
  font-size: 17px;
  line-height: 1.8;
}
.himbeere-section .story-text p {
  margin-bottom: 24px;
  color: rgba(229, 212, 192, 0.85);
}
.text-burgundy {
  color: #922B3E;
}


/* ----------------------------------------
   KONTAKT (CONTACT) PAGE
   ---------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 16px;
  color: rgba(229, 212, 192, 0.8);
}
.contact-info-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 109, 111, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #006D6F;
  flex-shrink: 0;
}


/* ----------------------------------------
   LEGAL PAGES (Impressum, Datenschutz)
   ---------------------------------------- */

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 120px;
  padding-bottom: 80px;
}
.legal-content h1 {
  margin-bottom: 32px;
}
.legal-content h2 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-content h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--beige);
}
.legal-content p {
  margin-bottom: 16px;
  color: rgba(229, 212, 192, 0.8);
  line-height: 1.7;
}


/* ----------------------------------------
   RESPONSIVE — All page styles
   ---------------------------------------- */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .about-hero-grid { grid-template-columns: 1fr !important; }
  .tools-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .service-detail { grid-template-columns: 1fr !important; gap: 32px !important; }
}

@media (max-width: 768px) {
  .hero { min-height: 80vh; }
  .services-grid { grid-template-columns: 1fr !important; }
  .bento-grid { grid-template-columns: 1fr !important; grid-template-rows: auto !important; }
  .bento-grid .project-card:first-child { grid-row: auto; }
  .why-grid { grid-template-columns: 1fr !important; }
  .why-grid .card-dark:nth-child(2),
  .why-grid .card-dark:nth-child(3) { margin-top: 0; }
  .portfolio-project { margin-bottom: 48px; }
  .about-hero-grid { gap: 32px !important; max-width: 100% !important; overflow: hidden !important; }
  .about-hero-grid > div:last-child { order: -1; } /* Photo first on mobile */
  .about-hero-grid > div { min-width: 0 !important; max-width: 100% !important; }
  .about-photo-placeholder { min-height: 300px !important; aspect-ratio: 4/3 !important; }
  .tools-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .facts-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .contact-grid { gap: 32px !important; }
  .stats-row { gap: 24px !important; }
  .section-padding { padding: 64px 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  /* Über-mich hero: buttons side by side on mobile */
  .about-hero-grid div > div:last-child {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  .about-hero-grid div > div:last-child .btn {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-size: 12px;
    padding: 12px 16px;
    white-space: nowrap;
  }

  /* Über-mich hero: photo must respect viewport */
  .about-hero-grid > div:last-child {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .about-photo-placeholder {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .about-photo-placeholder img {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Himbeere section: show mobile icon */
  .himbeere-mobile-icon {
    display: block !important;
  }
}


/* ----------------------------------------
   PORTFOLIO — Badges & extras
   ---------------------------------------- */

/* Amazon badge (inside bento item) */
.amazon-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 14px;
  background: rgba(43, 33, 25, 0.85);
  color: #F6F2EC;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(229, 212, 192, 0.2);
  z-index: 2;
}
.amazon-badge:hover {
  background: #006D6F;
  color: #FFFFFF;
  border-color: #006D6F;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

/* Bento grid project-card images */
.project-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* LightWidget Instagram feed */
.lightwidget-widget {
  min-height: 300px;
}
