/*
Theme Name: mamero design CMS
Theme URI: https://mamero-design.de 
Author: mamero design
Description: WordPress CMS Theme für mamero design
Version: 1.0.3
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #808080;
  background-color: #000;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.3; color: #808080; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #d9d9d9; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease;
}
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 1024px) { .nav-container { height: 80px; } }

.site-logo {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #808080;
  font-family: 'Century Gothic', 'Didact Gothic', 'Apple Gothic', sans-serif;
}
.site-logo:hover { color: #d9d9d9; }

.main-nav { display: none; }
@media (min-width: 1024px) {
  .main-nav { display: flex; align-items: center; gap: 32px; }
}
.main-nav a {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #808080;
}
.main-nav a:hover, .main-nav a.active { color: #d9d9d9; }

.lang-switch {
  font-size: 14px;
  color: #808080;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid #404040;
}
.lang-switch a {
  color: #808080;
  padding: 2px 4px;
  transition: color 0.2s ease;
}
.lang-switch a.active {
  color: #d9d9d9;
  font-weight: 500;
}
.lang-switch a:hover { color: #d9d9d9; }

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #808080;
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { font-size: 24px; color: #808080; }
.mobile-menu a.active { color: #d9d9d9; font-weight: 500; }

.mobile-lang-switch {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 20px;
}
.mobile-lang-switch a {
  color: #808080;
  padding: 4px 12px;
  display: inline-block;
}
.mobile-lang-switch a.active {
  color: #d9d9d9;
  font-weight: 500;
}
.mobile-lang-switch span { color: #404040; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: 80px;
  padding-bottom: 48px;
  background: #000;
}

/* Mobile: Nur mobiler Hero sichtbar */
.hero-mob { display: block; }
.hero-desk { display: none; }

.hero-mob-text { padding-top: 32px; }

.hero-text {
  font-size: 18px;
  line-height: 1.7;
  color: #808080;
}

/* Desktop: Nur Desktop-Hero sichtbar */
@media (min-width: 1024px) {
  .hero-mob { display: none; }
  .hero-desk { display: block; }
  
  .hero-desk-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: end;
  }
}

/* ============================================
   IMAGE GRID (5x3)
   ============================================ */
.image-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  width: 100%;
}

.image-grid-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
}

.image-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.image-grid-item:hover img { transform: scale(1.05); }

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 64px 0; }
@media (min-width: 1024px) { section { padding: 96px 0; } }

/* ============================================
   PROJECTS
   ============================================ */
.projects { background: #000; }

.project-item { padding: 48px 0; }
@media (min-width: 1024px) { .project-item { padding: 64px 0; } }

/* Mobile: Flexbox, natürliche DOM-Reihenfolge (Bild zuerst) */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Desktop: Grid mit order */
@media (min-width: 1024px) {
  .project-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: end;
  }
  
  .project-grid.desktop-image-right .project-image { order: 2; }
  .project-grid.desktop-image-right .project-content { order: 1; }
  
  .project-grid.desktop-image-left { grid-template-columns: 2fr 1fr; }
  .project-grid.desktop-image-left .project-image { order: 1; }
  .project-grid.desktop-image-left .project-content { order: 2; }
}

.project-headline {
  font-size: 24px;
  font-weight: 300;
  color: #808080;
  margin-bottom: 24px;
}
@media (min-width: 1024px) { .project-headline { font-size: 28px; } }

.project-description { margin-bottom: 24px; }

.project-description p {
  font-size: 15px;
  line-height: 1.7;
  color: #808080;
  margin-bottom: 16px;
}
.project-description p:last-child { margin-bottom: 0; }

.project-meta { padding-top: 16px; }

.project-awards {
  font-size: 13px;
  color: #808080;
  margin-bottom: 4px;
}

/* Project Images */
.project-image-thumbnail { overflow: hidden; }
.project-image-thumbnail img { width: 100%; height: auto; display: block; }

.project-image-placeholder {
  aspect-ratio: 4/3;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-image-placeholder .placeholder-content { text-align: center; padding: 32px; }
.project-image-placeholder .placeholder-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.project-image-placeholder .placeholder-text { font-size: 13px; color: #808080; }

.no-content {
  text-align: center;
  padding: 48px 0;
  color: #808080;
}

/* ============================================
   CONTENT SECTIONS (Usability, Art, About, Contact)
   ============================================ */
.usability, .kunst, .about, .contact { background: #000; }

/* Mobile: Flexbox, natürliche DOM-Reihenfolge (Bild zuerst) */
.content-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Desktop: Grid mit 2:1 Verhältnis */
@media (min-width: 1024px) {
  .content-grid {
    display: grid;
    gap: 48px;
    align-items: end;
  }
  
  /* Bild rechts: Text 1fr (links), Bild 2fr (rechts) */
  .content-grid.desktop-image-right {
    grid-template-columns: 1fr 2fr;
  }
  .content-grid.desktop-image-right .content-text { order: 1; }
  .content-grid.desktop-image-right .project-image-wrapper { order: 2; }
  
  /* Bild links: Bild 2fr (links), Text 1fr (rechts) */
  .content-grid.desktop-image-left {
    grid-template-columns: 2fr 1fr;
  }
  .content-grid.desktop-image-left .project-image-wrapper { order: 1; }
  .content-grid.desktop-image-left .content-text { order: 2; }
}

.content-text h3 {
  font-size: 20px;
  font-weight: 400;
  color: #808080;
  margin-bottom: 24px;
  line-height: 1.5;
}
@media (min-width: 1024px) { .content-text h3 { font-size: 24px; } }

.content-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #808080;
  margin-bottom: 16px;
}

.content-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #808080;
  margin-top: 16px;
}
.content-link:hover { color: #d9d9d9; }

.content-link svg {
  width: 14px; height: 14px;
  transition: transform 0.2s ease;
}
.content-link:hover svg { transform: translate(2px, -2px); }

/* ============================================
   CONTACT
   ============================================ */
.contact-info h3 {
  font-size: 18px;
  font-weight: 500;
  color: #808080;
  margin-bottom: 4px;
}

.contact-info .subtitle {
  font-size: 16px;
  color: #808080;
  margin-bottom: 24px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-item svg {
  width: 18px; height: 18px;
  color: #808080;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item .text {
  font-size: 14px;
  color: #808080;
  line-height: 1.6;
}

.contact-item a { color: #808080; }
.contact-item a:hover { color: #d9d9d9; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #000;
  color: #808080;
  padding: 48px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #808080;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.footer-nav a { font-size: 13px; color: #808080; }
.footer-nav a:hover { color: #d9d9d9; }

.footer-copyright { font-size: 13px; color: #808080; }

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ============================================
   PAGE TEMPLATE
   ============================================ */
.page-content {
  padding-top: 120px;
  padding-bottom: 96px;
  background: #000;
  min-height: 60vh;
}

.page-content h1 {
  font-size: 32px;
  font-weight: 300;
  color: #808080;
  margin-bottom: 48px;
}

.page-content .content { max-width: 800px; }

.page-content .content h2 {
  font-size: 20px;
  font-weight: 500;
  color: #808080;
  margin-top: 32px;
  margin-bottom: 16px;
}

.page-content .content p {
  font-size: 15px;
  line-height: 1.7;
  color: #808080;
  margin-bottom: 16px;
}

.page-content .content a {
  color: #808080;
  text-decoration: underline;
}
.page-content .content a:hover { color: #d9d9d9; }