/*
Theme Name: Fotografen CMS Theme
Theme URI: https://example.local/fotografen-cms-theme
Author: Bauprojektsteuerung & Digital Services UG
Author URI: https://bauprojektsteuerung-digital.de
Description: Ein schnelles, elegantes WordPress-CMS-Theme für Fotografen, Portfolio-Websites, Galerien und Kundenanfragen. Version 1.1: dunkles, magazinartiges Fotografen-Design nach dem Stil des gelieferten Template-Links, ohne fremden Code oder fremde Bilder zu kopieren.
Version: 1.1.0
Requires at least: 6.0
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: fotografen-cms
Tags: portfolio, photography, custom-logo, featured-images, custom-menu, one-column, two-columns, blog
*/

:root {
  --photo-accent: #E67E22;
  --photo-accent-deep: #b85012;
  --photo-text: #f7f2ee;
  --photo-ink: #111111;
  --photo-muted: #a9a09a;
  --photo-bg: #151515;
  --photo-soft: #f3eee7;
  --photo-dark: #090909;
  --photo-panel: #202020;
  --photo-panel-2: #2a2928;
  --photo-border: rgba(255, 255, 255, .12);
  --photo-border-light: rgba(17, 17, 17, .12);
  --photo-radius: 0px;
  --photo-shadow: 0 28px 70px rgba(0, 0, 0, .38);
  --photo-serif: Georgia, "Times New Roman", serif;
  --photo-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--photo-text);
  background: var(--photo-bg);
  font-family: var(--photo-sans);
  line-height: 1.62;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--photo-accent); }
img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1180px, calc(100% - 38px));
  margin-inline: auto;
}

.btn,
input[type="submit"],
button.photo-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 0;
  border: 1px solid var(--photo-accent);
  background: var(--photo-accent);
  color: #fff;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
  font-size: .78rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover:hover,
input[type="submit"]:hover,
button.photo-submit:hover {
  color: #fff;
  background: var(--photo-accent-deep);
  border-color: var(--photo-accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}

.btn.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.48);
}

.btn.btn-outline:hover {
  border-color: var(--photo-accent);
  background: var(--photo-accent);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(10,10,10,.94);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-logo img { max-height: 52px; width: auto; }
.site-title {
  margin: 0;
  font-family: var(--photo-serif);
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}
.site-title::first-letter { color: var(--photo-accent); }
.site-description {
  margin: 6px 0 0;
  color: rgba(255,255,255,.58);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: rgba(255,255,255,.82);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.main-navigation a:hover { color: var(--photo-accent); }

.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.24);
  background: transparent;
  color: #fff;
  border-radius: 0;
  padding: 10px 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.photo-hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: stretch;
  color: #fff;
  background: linear-gradient(120deg, rgba(0,0,0,.84), rgba(0,0,0,.35)), var(--photo-dark);
  position: relative;
  overflow: hidden;
}

.photo-hero.has-image {
  background-size: cover;
  background-position: center;
}

.photo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 25%, rgba(230,126,34,.28), transparent 26%),
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.18) 55%, rgba(0,0,0,.76));
  pointer-events: none;
}
.photo-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0,0,0,.86), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(28px, 7vw, 80px);
  align-items: end;
  padding: clamp(88px, 9vw, 150px) 0 clamp(72px, 8vw, 120px);
}

.hero-copy { max-width: 760px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: rgba(255,255,255,.82);
  font-weight: 850;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .76rem;
}
.eyebrow::before {
  content: "";
  width: 46px;
  height: 2px;
  background: var(--photo-accent);
}

.hero-title {
  margin: 0;
  font-family: var(--photo-serif);
  font-size: clamp(4.2rem, 12vw, 10.4rem);
  line-height: .78;
  letter-spacing: -.09em;
  max-width: 940px;
  text-shadow: 0 12px 42px rgba(0,0,0,.36);
}
.hero-title em,
.hero-title .accent { color: var(--photo-accent); font-style: italic; }

.hero-subtitle {
  max-width: 650px;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: rgba(255,255,255,.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-card {
  align-self: end;
  background: rgba(17,17,17,.74);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--photo-shadow);
  padding: 30px;
  backdrop-filter: blur(10px);
}
.hero-card h2 {
  margin: 0;
  font-family: var(--photo-serif);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: .95;
  letter-spacing: -.055em;
}
.hero-card p {
  color: rgba(255,255,255,.68);
  margin: 16px 0 0;
}
.hero-card-line {
  width: 58px;
  height: 3px;
  background: var(--photo-accent);
  margin: 0 0 22px;
}

.hero-strip {
  position: relative;
  z-index: 2;
  margin-top: -74px;
  margin-bottom: 0;
}
.hero-strip-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  background: rgba(12,12,12,.88);
  border: 1px solid rgba(255,255,255,.12);
  padding: 10px;
  box-shadow: var(--photo-shadow);
}
.hero-thumb {
  min-height: 112px;
  background: linear-gradient(135deg, #302923, #756255);
  overflow: hidden;
  position: relative;
}
.hero-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 4px solid transparent;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent);
  transition: border-color .2s ease, background .2s ease;
}
.hero-thumb:hover::after { border-bottom-color: var(--photo-accent); background: rgba(0,0,0,.1); }
.hero-thumb img { width: 100%; height: 112px; object-fit: cover; filter: grayscale(.25); transition: transform .35s ease, filter .35s ease; }
.hero-thumb:hover img { transform: scale(1.08); filter: grayscale(0); }
.hero-thumb-placeholder-1 { background: linear-gradient(135deg,#242424,#5f4b3d); }
.hero-thumb-placeholder-2 { background: linear-gradient(135deg,#181818,#8b6d56); }
.hero-thumb-placeholder-3 { background: linear-gradient(135deg,#2b201b,#5d5c5c); }
.hero-thumb-placeholder-4 { background: linear-gradient(135deg,#111,#3f3029); }
.hero-thumb-placeholder-5 { background: linear-gradient(135deg,#4b372f,#171717); }

.section {
  padding: clamp(72px, 9vw, 124px) 0;
  position: relative;
}
.section-soft { background: var(--photo-soft); color: var(--photo-ink); }
.section-dark { background: var(--photo-dark); color: #fff; }
.section-panel { background: #1d1d1d; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}
.section-kicker {
  color: var(--photo-accent);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 850;
  font-size: .76rem;
  margin: 0 0 11px;
}
.section-title {
  font-family: var(--photo-serif);
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: .88;
  letter-spacing: -.075em;
  margin: 0;
}
.section-text {
  max-width: 640px;
  color: var(--photo-muted);
  margin: 12px 0 0;
}
.section-soft .section-text,
.section-soft .card p,
.section-soft .feature-list li { color: #625b55; }
.section-dark .section-text { color: rgba(255,255,255,.70); }

.icon-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  color: var(--photo-ink);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.icon-item {
  padding: 34px 26px;
  text-align: center;
  border-right: 1px solid var(--photo-border-light);
}
.icon-item:last-child { border-right: 0; }
.icon-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border: 2px solid var(--photo-ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--photo-serif);
  font-weight: 700;
  color: var(--photo-accent);
}
.icon-item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.icon-item p { margin: 0; color: #6b625b; font-size: .92rem; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--photo-shadow);
}
.portfolio-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #232323;
  border-right: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.portfolio-card:nth-child(4n) { border-right: 0; }
.portfolio-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transform: scale(1.02);
  filter: grayscale(.22) contrast(1.04);
  transition: transform .48s ease, filter .48s ease, opacity .48s ease;
}
.portfolio-card:hover img { transform: scale(1.09); filter: grayscale(0) contrast(1.05); opacity: .88; }
.portfolio-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.86), rgba(0,0,0,.18), transparent);
}
.portfolio-card-title {
  margin: 0;
  font-family: var(--photo-serif);
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.portfolio-card-meta {
  margin-top: 8px;
  color: rgba(255,255,255,.70);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.service-grid,
.process-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  border: 1px solid rgba(255,255,255,.12);
  padding: 30px;
  background: rgba(255,255,255,.035);
  box-shadow: 0 18px 42px rgba(0,0,0,.12);
}
.section-soft .card { background: #fff; border-color: var(--photo-border-light); color: var(--photo-ink); }
.card-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--photo-accent);
  color: var(--photo-accent);
  font-family: var(--photo-serif);
  font-weight: 700;
  margin-bottom: 26px;
}
.card h3 { margin: 0 0 10px; font-size: 1.28rem; }
.card p { margin: 0; color: var(--photo-muted); }

.about-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}
.about-media {
  overflow: hidden;
  box-shadow: var(--photo-shadow);
  background: var(--photo-dark);
  min-height: 510px;
  position: relative;
}
.about-media::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.24);
  pointer-events: none;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; min-height: 510px; filter: grayscale(.12); }
.feature-list {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--photo-muted);
}
.feature-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 8px;
  background: var(--photo-accent);
  flex: 0 0 9px;
}

.blog-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  align-items: start;
}
.blog-thumb {
  width: 104px;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg,#272727,#5f4b3d);
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-date {
  color: rgba(255,255,255,.48);
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.blog-card h3 {
  margin: 0 0 8px;
  color: var(--photo-accent);
  font-family: var(--photo-serif);
  font-size: 1.35rem;
  line-height: 1.05;
}
.blog-card p { margin: 0; color: rgba(255,255,255,.64); font-size: .94rem; }
.blog-card a:hover h3 { color: #fff; }

.cta-panel {
  padding: clamp(36px, 7vw, 76px);
  background:
    linear-gradient(135deg, rgba(230,126,34,.22), transparent 35%),
    linear-gradient(135deg, #0d0d0d, #26211d);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,.12);
}
.cta-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.14);
  pointer-events: none;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 {
  margin: 0;
  font-family: var(--photo-serif);
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: .88;
  letter-spacing: -.07em;
}
.cta-panel p { margin: 16px 0 0; color: rgba(255,255,255,.70); max-width: 650px; }

.content-area {
  padding: clamp(54px, 8vw, 94px) 0;
  background: var(--photo-soft);
  color: var(--photo-ink);
}
.entry-header { margin-bottom: 28px; }
.entry-title {
  margin: 0;
  font-family: var(--photo-serif);
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: .88;
  letter-spacing: -.075em;
}
.entry-meta { color: #786f68; margin-top: 12px; }
.entry-content { font-size: 1.05rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { color: var(--photo-accent); font-weight: 800; }
.entry-content img { box-shadow: var(--photo-shadow); }

.post-list { display: grid; gap: 24px; }
.post-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid var(--photo-border-light);
  overflow: hidden;
  background: #fff;
}
.post-card-media img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.post-card-content { padding: 28px; }
.post-card-title { margin: 0 0 10px; font-family: var(--photo-serif); font-size: 1.7rem; line-height: 1.05; }
.post-card-excerpt { color: #625b55; }

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
  align-items: start;
}
.contact-box,
.photo-form {
  border: 1px solid var(--photo-border-light);
  padding: 32px;
  background: #fff;
  color: var(--photo-ink);
}
.photo-form label { display: block; font-weight: 850; margin: 16px 0 8px; }
.photo-form input,
.photo-form textarea {
  width: 100%;
  border: 1px solid var(--photo-border-light);
  border-radius: 0;
  padding: 14px 15px;
  font: inherit;
  background: #faf8f5;
}
.photo-form textarea { min-height: 150px; resize: vertical; }

.site-footer {
  background: #080808;
  color: rgba(255,255,255,.68);
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  color: #fff;
  font-family: var(--photo-serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.04em;
}
.footer-brand::first-letter { color: var(--photo-accent); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.68); }
.footer-links a:hover { color: var(--photo-accent); }

.pagination,
.nav-links { display: flex; gap: 10px; margin-top: 34px; }
.page-numbers,
.nav-links a,
.nav-links span {
  padding: 10px 14px;
  border: 1px solid var(--photo-border-light);
}
.current { background: var(--photo-dark); color: #fff; }

@media (max-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card:nth-child(2n) { border-right: 0; }
  .portfolio-card:nth-child(4n) { border-right: 0; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-navigation {
    position: absolute;
    inset: 82px 20px auto 20px;
    background: #111;
    border: 1px solid var(--photo-border);
    box-shadow: var(--photo-shadow);
    padding: 18px;
    display: none;
  }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { display: grid; gap: 14px; }
  .hero-content,
  .service-grid,
  .process-grid,
  .blog-grid,
  .about-split,
  .contact-grid,
  .cta-panel,
  .icon-row { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .hero-strip { margin-top: -34px; }
  .hero-strip-inner { grid-template-columns: repeat(3, 1fr); }
  .icon-item { border-right: 0; border-bottom: 1px solid var(--photo-border-light); }
  .portfolio-card, .portfolio-card img { min-height: 360px; }
  .post-card { grid-template-columns: 1fr; }
  .section-heading { display: block; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 26px, 1180px); }
  .header-inner { min-height: 70px; }
  .main-navigation { inset: 70px 13px auto 13px; }
  .site-description { display: none; }
  .hero-title { font-size: clamp(3.6rem, 18vw, 5.5rem); }
  .hero-content { padding-top: 72px; }
  .btn { width: 100%; }
  .hero-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-thumb:nth-child(n+5) { display: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card, .portfolio-card img { min-height: 340px; }
  .portfolio-card-overlay { padding: 22px; }
  .blog-card { grid-template-columns: 86px 1fr; }
  .blog-thumb { width: 86px; }
}
