/*
Theme Name: Grafik Löser
Theme URI: https://grafik-loeser.de
Author: Grafik Löser
Author URI: https://grafik-loeser.de
Description: Modernes Studio-Theme für Grafik, Druck, Web, Social Media und Werbetechnik. Editorial-Typografie, Portfolio, Leistungen und Kontakt — zugeschnitten auf grafik-loeser.de.
Version: 1.5.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grafik-loeser
Tags: portfolio, custom-menu, featured-images, translation-ready, full-width-template
*/

:root {
  --ink: #141210;
  --ink-soft: #2a2622;
  --paper: #f3efe7;
  --paper-2: #e7e1d6;
  --paper-3: #faf7f2;
  --line: rgba(20, 18, 16, 0.14);
  --muted: #6d665e;
  --accent: #e23b24;
  --accent-deep: #c42d19;
  --white: #fffcf8;
  --shadow: 0 24px 60px rgba(20, 18, 16, 0.12);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --display: "Syne", "Avenir Next", sans-serif;
  --sans: "Manrope", "Avenir Next", sans-serif;
  --space: clamp(1.25rem, 2vw, 2rem);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.045em; line-height: 0.92; margin: 0; }
p { margin: 0 0 1rem; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  mix-blend-mode: normal;
  background: rgba(243, 239, 231, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 800; font-size: 1.25rem;
  border-radius: 2px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-size: 1rem; letter-spacing: -0.03em; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.custom-logo-link img { max-height: 46px; width: auto; }
.site-nav { margin-left: auto; }
.nav-list, .footer-links, .mobile-list { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.nav-list a, .footer-links a { text-decoration: none; font-size: .92rem; font-weight: 600; }
.nav-list a:hover { color: var(--accent); }
.header-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  text-decoration: none; border: 0; cursor: pointer;
  border-radius: 999px; padding: .78rem 1.15rem;
  font-weight: 700; letter-spacing: -0.02em;
}
.header-cta, .btn-solid { background: var(--ink); color: var(--paper); }
.header-cta:hover, .btn-solid:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px;
  border: 1px solid var(--line); background: transparent; border-radius: 50%;
  position: relative;
}
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.mobile-nav {
  display: none; padding: 1rem 1.4rem 1.6rem;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.mobile-nav.is-open { display: block; }
.mobile-nav .nav-list { flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.mobile-nav .nav-list a { text-decoration: none; font-family: var(--display); font-size: 2rem; letter-spacing: -0.04em; }
.mobile-list { flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.mobile-list a { text-decoration: none; font-family: var(--display); font-size: 2rem; letter-spacing: -0.04em; }

.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin: 0 auto; }
.wrap-wide { width: min(1440px, calc(100% - 2.4rem)); margin: 0 auto; }

.hero { padding: 2.4rem 0 1rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .75fr;
  gap: 2rem;
  align-items: end;
}
.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .75rem; font-weight: 700; color: var(--muted); margin-bottom: 1.2rem;
}
.eyebrow i { width: 2.2rem; height: 1px; background: var(--accent); display: block; font-style: normal; }
.display {
  font-size: clamp(3.4rem, 8.4vw, 7.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: .86;
}
.display em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.04em; }
.hero-copy { max-width: 34rem; color: var(--ink-soft); font-size: 1.12rem; margin: 1.4rem 0 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-panel {
  background: var(--ink); color: var(--paper);
  border-radius: 18px; padding: 1.4rem;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.hero-panel::after {
  content: "";
  position: absolute; right: -40px; bottom: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--accent); opacity: .9;
}
.hero-panel p, .hero-panel strong { position: relative; z-index: 1; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--display); font-size: 1.7rem; letter-spacing: -0.04em; }
.stat span { color: var(--muted); font-size: .86rem; }

.marquee {
  margin: 2.2rem 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
  background: var(--paper-3);
}
.marquee-track { display: inline-block; padding: .85rem 0; animation: glide 28s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; margin: 0 1.2rem; }
.marquee i { color: var(--accent); font-style: normal; }
@keyframes glide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

section { padding: 5.2rem 0; }
.section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 12ch; }
.section-head p { max-width: 28rem; color: var(--muted); margin: 0; }
.meta-label { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: .4rem; }

.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.service { min-height: 320px; }
.service {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
  min-height: 280px;
  display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service .num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.4rem; }
.service h3 { font-size: 1.65rem; margin: 1.4rem 0 .6rem; }
.service p { color: var(--ink-soft); }
.service ul { margin: auto 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.service li::before { content: "– "; color: var(--accent); }

.studio {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: center;
}
.studio-card {
  background: var(--paper-2);
  border-radius: 22px;
  min-height: 420px;
  padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.studio-card .big {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(4rem, 8vw, 7rem); line-height: .8; letter-spacing: -0.07em;
}
.studio-card .big span { color: var(--accent); }
.quote { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 1rem; }
.note { color: var(--muted); }

.portfolio-grid, .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.portfolio-grid-examples { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { text-decoration: none; display: block; }
.card-media {
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  position: relative;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover img { transform: scale(1.05); }
.ph {
  width: 100%; height: 100%;
  display: flex; align-items: flex-end;
  padding: 1.1rem;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}
.ph-1 { background: linear-gradient(160deg, #2a2420, #e23b24 140%); }
.ph-2 { background: linear-gradient(160deg, #1c2430, #d8c7a6); }
.ph-3 { background: linear-gradient(200deg, #3a2a24, #f3efe7 160%); }
.ph-4 { background: linear-gradient(160deg, #202820, #c9a27a); }
.ph-5 { background: linear-gradient(180deg, #141210, #6d665e); }
.ph-6 { background: linear-gradient(150deg, #e23b24, #141210 70%); }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem .1rem 0; }
.card-meta strong { font-family: var(--display); letter-spacing: -0.03em; }
.card-meta span { color: var(--muted); font-size: .86rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { border-top: 1px solid var(--ink); padding-top: 1rem; }
.step b { font-family: var(--display); font-size: 1.3rem; letter-spacing: -0.03em; display: block; margin-bottom: .4rem; }

.contact-band {
  background: var(--ink); color: var(--paper);
  border-radius: 28px; padding: clamp(1.4rem, 3vw, 2.4rem);
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem;
}
.contact-band h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.contact-band .note { color: rgba(243,239,231,.72); }
.form { display: grid; gap: .8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
label span { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .35rem; color: rgba(243,239,231,.7); }
input, textarea, select {
  width: 100%; background: rgba(255,252,248,.06);
  border: 1px solid rgba(255,252,248,.16);
  border-radius: 12px; padding: .85rem .9rem;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .92rem; }
.form-note.ok { color: #b6e3a8; }
.form-note.bad { color: #ffb4a8; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--accent); color: white; }

.page-hero { padding: 3.2rem 0 1rem; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); }
.prose { max-width: 72ch; }
.prose h2, .prose h3 { margin: 1.6rem 0 .6rem; letter-spacing: -0.04em; }
.prose h2 { font-size: 2rem; }
.entry-content > *:first-child { margin-top: 0; }
.single-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; padding-bottom: 4rem; }
.single-cover { border-radius: 18px; overflow: hidden; margin: 1rem 0 2rem; }
.single-cover img { width: 100%; max-height: 72vh; object-fit: cover; }

.site-footer { padding: 2rem 0 1.2rem; border-top: 1px solid var(--line); }
.footer-top, .footer-grid, .footer-base { width: min(1440px, calc(100% - 2.4rem)); margin: 0 auto; }
.footer-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--muted); }
.footer-word {
  display: block; text-decoration: none;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 8rem);
  letter-spacing: -0.07em; line-height: .85;
}
.footer-word:hover { color: var(--accent); }
.footer-lead { max-width: 36rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.footer-links { flex-direction: column; gap: .25rem; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .88rem; padding-bottom: .6rem; }
.legal-links { display: flex; gap: 1rem; }
.legal-links a { text-decoration: none; }
.search-form { display: flex; gap: .5rem; }
.search-form input { background: white; border: 1px solid var(--line); color: var(--ink); }
.notice { padding: 1rem 1.1rem; border-radius: 12px; background: var(--paper-2); }

@media (max-width: 980px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .hero-grid, .studio, .contact-band, .single-layout { grid-template-columns: 1fr; }
  .services, .portfolio-grid, .post-grid, .steps, .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: start; }
}
@media (max-width: 680px) {
  .services, .portfolio-grid, .post-grid, .steps, .footer-grid, .form-row, .stat-row { grid-template-columns: 1fr; }
  .display { font-size: 3.2rem; }
  .footer-base { flex-direction: column; }
}
