/*
Theme Name: Disein Studio
Theme URI: https://diseinstudio.com
Description: Custom portfolio theme for disein studio
Author: Moritz Scheffer
Version: 1.0
*/

@font-face {
  font-family: 'Space Mono';
  src: url('assets/fonts/space-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('assets/fonts/space-mono-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('assets/fonts/space-mono-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DejaVu Sans';
  src: url('assets/fonts/dejavu-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DejaVu Sans';
  src: url('assets/fonts/dejavu-sans-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'DejaVu Sans';
  src: url('assets/fonts/dejavu-sans-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* VARIABLES */
:root {
  --black:  #111111;
  --orange: #E55A00;
  --cream:  #F5F0E8;
  --white:  #FFFFFF;
  --gray:   #888888;
  --border: #E0E0E0;
  --nav-h:  72px;
}

/* DOT FIELD CANVAS */
.dot-field {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
}
.hero, .text-section.dark, .project-hero, .page-hero, footer {
  position: relative;
}
.hero > *:not(.dot-field),
.text-section.dark > *:not(.dot-field),
.project-hero > *:not(.dot-field),
.page-hero > *:not(.dot-field),
footer > *:not(.dot-field) {
  position: relative;
  z-index: 1;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Mono', monospace;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'DejaVu Sans', sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.nav-logo img { width: 32px; height: 32px; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--black);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1.5px solid var(--black);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
}
.btn:hover { background: var(--black); color: var(--white); }
.btn-orange { border-color: var(--orange); color: var(--orange); }
.btn-orange:hover { background: var(--orange); color: var(--white); }
.btn-white { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-white:hover { background: var(--white); color: var(--black); }
.btn svg { transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

/* TAGS */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1.5px solid var(--orange);
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--orange);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.tag:hover { background: var(--orange); color: var(--white); }

/* Tags im dunklen Hero — weiß statt orange */
.tag.tag-projekt-hero {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
}
.tag.tag-projekt-hero:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* LABEL */
.label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
}

/* PLACEHOLDER IMAGES */
.placeholder-img {
  width: 100%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.placeholder-img.tall { aspect-ratio: 3/4; }
.placeholder-img.wide { aspect-ratio: 16/7; }
.placeholder-img span {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #AAAAAA;
}
.placeholder-img.dark { background: #1A1A1A; }
.placeholder-img.dark span { color: #444; }
.placeholder-img.mid { background: #D8D0C5; }

/* HERO */
.hero {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 60px) 60px 80px;
}
.hero-eyebrow { margin-bottom: 24px; }
.hero-headline {
  font-size: clamp(42px, 6.5vw, 84px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.04;
  letter-spacing: -1.5px;
  max-width: 820px;
  margin-bottom: 48px;
}
.hero-sub {
  font-size: 18px;
  color: #888;
  margin-bottom: 48px;
  max-width: 440px;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* PROJECT GRID */
.section-header {
  padding: 80px 60px 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.section-header h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid var(--border);
}
.project-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
}
.project-card:hover { background: var(--cream); }
.project-img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.project-img-wrap .placeholder-img {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img-wrap img,
.project-card:hover .project-img-wrap .placeholder-img { transform: scale(1.04); }
.project-info { padding: 28px 36px 36px; }
.project-category {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.project-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
  line-height: 1.2;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  margin-top: 20px;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.project-link:hover { color: var(--orange); border-color: var(--orange); }

/* TEXT SECTIONS */
.text-section { padding: 80px 60px; }
.text-section.dark { background: var(--black); color: var(--white); }
.text-section.cream { background: var(--cream); }
.text-section h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 24px;
}
.text-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  max-width: 600px;
}
.text-section.dark p { color: #888; }
.text-section .mt-32 { margin-top: 32px; }
.text-section .mt-48 { margin-top: 48px; }

/* CTA STRIP */
.cta-strip {
  background: var(--orange);
  padding: 64px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-strip h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

/* PROJECT DETAIL */
.project-hero {
  padding-top: var(--nav-h);
  background: var(--black);
}
.project-hero-inner { padding: 60px 60px 48px; }
.project-hero-inner .label { margin-bottom: 16px; }
.project-hero-inner h1 {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 32px;
}
.project-hero-img {
  margin-top: 0;
  aspect-ratio: 21/8;
  overflow: hidden;
}
.project-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  padding: 64px 60px 80px;
  align-items: start;
}
.project-description {
  font-size: 17px;
  line-height: 1.85;
  color: #333;
  margin-bottom: 32px;
}
.project-sidebar { padding-top: 8px; }
.sidebar-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}
.sidebar-value {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
}

/* GALLERY */
.project-gallery {
  padding: 0 60px 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.project-gallery .full { grid-column: 1 / -1; }

/* WP Block Gallery overrides */
.project-content { padding: 0 60px 80px; }
.project-content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin: 0;
}
.project-content .wp-block-gallery .wp-block-image { margin: 0; }
.project-content .wp-block-gallery .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-content .wp-block-image { margin: 0 0 2px; }
.project-content .wp-block-image img { width: 100%; display: block; }
.project-content .alignfull { margin-left: -60px; margin-right: -60px; }
.project-content p { display: none; }

.project-back {
  padding: 48px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  padding: 80px 60px;
  align-items: start;
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1.5px solid var(--border);
  font-family: 'DejaVu Sans', sans-serif;
  font-size: 15px;
  color: var(--black);
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group select {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1.5px solid var(--border);
  font-family: 'DejaVu Sans', sans-serif;
  font-size: 15px;
  color: var(--black);
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { resize: none; height: 120px; }
.form-hint {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-top: 6px;
}
.contact-sidebar { background: var(--cream); padding: 48px 40px; }
.step { margin-bottom: 32px; }
.step-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 6px;
}
.step-text { font-size: 14px; line-height: 1.7; color: #444; }

/* FOOTER */
footer {
  background: var(--black);
  padding: 60px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid #222;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-copy { font-size: 12px; color: #444; margin-top: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.footer-links a { font-size: 13px; color: #666; transition: color 0.15s; }
.footer-links a:hover { color: var(--orange); }
.footer-email {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 4px;
  display: inline-block;
}
.footer-email:hover { color: var(--orange); }

/* PAGE WRAPPER */
.page { padding-top: var(--nav-h); }
.page-hero {
  background: var(--black);
  padding: 80px 60px 64px;
}
.page-hero .label { margin-bottom: 16px; display: block; }
.page-hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.05;
  margin-top: 16px;
}
.page-hero p {
  font-size: 18px;
  color: #888;
  margin-top: 16px;
  max-width: 480px;
  line-height: 1.6;
}

/* ABOUT */
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.about-text {
  padding: 80px 60px;
  border-right: 1px solid var(--border);
}
.about-text p {
  font-size: 17px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 24px;
  max-width: 540px;
}
.about-img { padding: 80px 60px 80px 0; }
.about-section { padding: 64px 60px; border-top: 1px solid var(--border); }
.about-section h3 { font-size: 24px; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.3px; }
.about-section p { font-size: 16px; line-height: 1.85; color: #555; max-width: 640px; }

/* ABOUT CONTENT (Block Editor) */
.about-content {
  padding: 0;
}
.about-content p {
  font-size: 17px;
  line-height: 1.9;
  color: #333;
  max-width: 640px;
  margin-bottom: 20px;
}
.about-content h2 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 48px 0 16px;
}
.about-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 12px;
}
.about-content img {
  width: 100%;
  height: auto;
  display: block;
}
.about-content .wp-block-image {
  margin: 0 0 2px;
}
.about-content .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
}
/* Zweispaltig: Bild + Text nebeneinander */
.about-content .wp-block-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.about-content .wp-block-column {
  padding: 64px 60px;
}
.about-content .wp-block-column:first-child {
  border-right: 1px solid var(--border);
}
/* Vollbreite Bilder */
.about-content .wp-block-image.alignfull,
.about-content .alignfull {
  margin: 0;
}
.about-content .alignfull img {
  width: 100%;
}
/* Dunkle Section (Hintergrund setzen im Editor via "Background color") */
.about-content .wp-block-group {
  padding: 64px 60px;
  border-top: 1px solid var(--border);
}
.about-content .wp-block-group p {
  max-width: 640px;
}

@media (max-width: 900px) {
  .about-content .wp-block-columns { grid-template-columns: 1fr; }
  .about-content .wp-block-column { padding: 40px 24px; border-right: none !important; border-bottom: 1px solid var(--border); }
  .about-content .wp-block-group { padding: 48px 24px; }
}

/* LEGAL PAGES */
.legal-content {
  padding: 64px 60px 80px;
  max-width: 780px;
}
.legal-content h3 { font-size: 16px; font-weight: 700; margin: 32px 0 8px; }
.legal-content p { font-size: 15px; line-height: 2; color: #333; margin-bottom: 16px; }

/* UTILITIES */
.divider { border: none; border-top: 1px solid var(--border); }

/* WORDPRESS OVERRIDES */
.wp-caption { max-width: 100%; }
.alignnone, .aligncenter, .alignleft, .alignright { max-width: 100%; }
.screen-reader-text { position: absolute; left: -9999px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { gap: 24px; }
  .hero { padding: calc(var(--nav-h) + 40px) 24px 60px; }
  .hero-headline { letter-spacing: -0.5px; }
  .project-grid { grid-template-columns: 1fr; border-left: none; }
  .project-info { padding: 20px 24px 28px; }
  .section-header { padding: 48px 24px 32px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .text-section { padding: 60px 24px; }
  .cta-strip { padding: 48px 24px; }
  .project-body { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px 60px; }
  .project-gallery { padding: 0 24px 60px; grid-template-columns: 1fr; }
  .project-content { padding: 0 24px 60px; }
  .project-content .wp-block-gallery { grid-template-columns: 1fr; }
  .project-hero-inner { padding: 48px 24px 40px; }
  .project-back { padding: 40px 24px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; padding: 60px 24px; gap: 48px; }
  .about-body { grid-template-columns: 1fr; }
  .about-text { padding: 60px 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .about-img { padding: 40px 24px; }
  .about-section { padding: 48px 24px; }
  footer { padding: 48px 24px; }
  .page-hero { padding: 60px 24px 48px; }
  .legal-content { padding: 48px 24px 60px; }
}
