/*
Theme Name:  PB-Projektleitung
Theme URI:   https://pb-projektleitung.de
Author:      Pierre Banning
Description: Custom one-page WordPress theme – Bau- & Projektleitung Lph 6–8 in Köln/Rheinland. Parallax, 3D-Effekte, animiertes Logo, AJAX-Kontaktformular. Kein Page-Builder erforderlich.
Version:     1.1.0
License:     Private
Text Domain: pb-projektleitung
*/

/* ══════════════════════════════════════
   CSS CUSTOM PROPERTIES
══════════════════════════════════════ */
:root {
  --dark:        #212529;
  --dark-2:      #2d3436;
  --dark-3:      #343a40;
  --dark-4:      #495057;
  --dark-5:      #6c757d;
  --mid:         #adb5bd;
  --light:       #f8f9fa;
  --light-2:     #e9ecef;
  --light-3:     #dee2e6;
  --accent:      #4a9eda;
  --accent-dark: #3a8ec8;
  --accent-glow: rgba(74,158,218,.35);
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 8px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.07);
  --shadow-md: 0 8px 32px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.18);
  --transition: .3s ease;
}

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: #fff;
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: var(--accent); text-decoration: none; }
ul, ol { list-style: none; }
blockquote { quotes: none; }
button { font-family: var(--font); }

/* ══════════════════════════════════════
   TYPOGRAPHY HELPERS
══════════════════════════════════════ */
.section-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
  display: block;
}
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
  line-height: 1.25;
}
.section-sub { font-size: .85rem; color: var(--dark-5); }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: var(--dark);
  transition: height var(--transition),
              background var(--transition),
              box-shadow var(--transition),
              backdrop-filter var(--transition);
}
.nav.scrolled {
  height: 50px;
  background: rgba(21,25,28,.92);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 2px 28px rgba(0,0,0,.55);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--light);
}
.nav-logo:hover { color: var(--light); }
.nav-logo img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  border-radius: 3px;
  background: var(--light);
  padding: 2px;
  transition: height var(--transition), width var(--transition);
}
.nav.scrolled .nav-logo img { height: 28px; width: 28px; }
.nav-logo-text {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--light);
  transition: font-size var(--transition);
}
.nav.scrolled .nav-logo-text { font-size: .72rem; }

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  color: var(--mid);
  font-size: .75rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: .5rem .9rem;
  border-radius: 3px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: background .2s, transform .2s, box-shadow .2s, padding var(--transition);
}
.nav.scrolled .nav-cta { padding: .35rem .8rem; }
.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--accent-glow);
  color: #fff;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--mid);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, background .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */

/* Limit text content to 1600px zone while backgrounds stay full-width.
   hero-left pushes inner content toward center (margin-left: auto),
   hero-right-inner is already centered via justify-content:center. */
.hero-left-inner {
  max-width: 880px;   /* 55% of 1600px */
  margin-left: auto;
  width: 100%;
}
.hero-right-inner {
  max-width: 720px;   /* 45% of 1600px */
  margin-right: auto;
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 500px;
  overflow: clip;
}
.hero-left {
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 5rem 3.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  will-change: background-position;
}
.hero-left::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,158,218,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: .7rem;
  color: var(--accent);
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-headline {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--light);
  line-height: 1.15;
  margin-bottom: 1.1rem;
}
.hero-sub {
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 420px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  padding: .9rem 1.75rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  border-radius: 3px;
  width: fit-content;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.hero-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  color: #fff;
}
.hero-right {
  background: linear-gradient(160deg, var(--dark-3) 0%, var(--dark-4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  will-change: background-position;
}
.hero-right-inner { text-align: center; width: 100%; }
.hero-region-label {
  font-size: .65rem;
  color: var(--mid);
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.hero-region {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 700;
  color: var(--light);
  line-height: 1.3;
  margin-bottom: 1.4rem;
}
.hero-badges { display: flex; flex-direction: column; gap: .5rem; }
.hero-badge {
  background: rgba(248,249,250,.07);
  border: 1px solid rgba(248,249,250,.12);
  border-left: 3px solid var(--accent);
  padding: .5rem .9rem;
  font-size: .75rem;
  color: var(--light);
  text-align: left;
  border-radius: 0 3px 3px 0;
}

/* ══════════════════════════════════════
   USP BAR
══════════════════════════════════════ */
.usp-bar {
  position: relative;
  z-index: 10;
  background: var(--light);
  border-top: 3px solid var(--accent);
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-bottom: 1px solid var(--light-3);
}
.usp-item {
  padding: 1.4rem 1.75rem;
  border-right: 1px solid var(--light-3);
  display: flex;
  align-items: center;
  gap: .9rem;
  transition: background .25s, transform .25s;
}
.usp-item:last-child { border-right: none; }
.usp-item:hover { background: #fff; transform: translateY(-2px); }
.usp-icon { font-size: 1.5rem; flex-shrink: 0; transition: transform .3s; }
.usp-item:hover .usp-icon { transform: scale(1.25) rotate(-5deg); }
.usp-title { font-size: .75rem; font-weight: 700; color: var(--dark); }
.usp-desc  { font-size: .65rem; color: var(--dark-5); margin-top: 2px; }

/* ══════════════════════════════════════
   INTRO / KURZVORSTELLUNG
══════════════════════════════════════ */
.intro {
  padding: 5rem 4rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: center;
  background: #fff;
}

/* Animated Logo */
.intro-logo-animated {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.logo-ring-outer {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,158,218,.13) 0%, transparent 70%);
  animation: logo-pulse 3s ease-in-out infinite;
}
.logo-ring-inner {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(74,158,218,.22);
  animation: logo-rotate 12s linear infinite;
}
.logo-float-img {
  width: 140px; height: 140px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  animation: logo-float 4s ease-in-out infinite;
}
.logo-dot {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: logo-shimmer 2s ease-in-out infinite;
}
.logo-dot-tl { top: 20px; left: 20px; }
.logo-dot-br { bottom: 20px; right: 20px; animation-delay: 1s; }

@keyframes logo-pulse  {
  0%,100% { transform: scale(.9); opacity: .6; }
  50%     { transform: scale(1.1); opacity: 1; }
}
@keyframes logo-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes logo-float {
  0%,100% { transform: translateY(0);    filter: drop-shadow(0 6px 16px rgba(74,158,218,.35)); }
  50%     { transform: translateY(-10px); filter: drop-shadow(0 16px 28px rgba(74,158,218,.65)); }
}
@keyframes logo-shimmer {
  0%,100% { opacity: .5; }
  50%     { opacity: 1; }
}

.intro-text h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--dark);
  margin: .75rem 0 1rem;
  line-height: 1.3;
}
.intro-text p { font-size: .875rem; color: var(--dark-4); line-height: 1.8; margin-bottom: .9rem; }
.intro-text strong { color: var(--dark); }

/* ══════════════════════════════════════
   LEISTUNGEN TILES
══════════════════════════════════════ */
.leistungen { background: var(--light); padding: 5rem 4rem; }
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.tile {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--accent);
  transition: box-shadow .35s;
  transform-style: preserve-3d;
  cursor: pointer;
}
.tile:hover { box-shadow: var(--shadow-lg); }
.tile-wide { grid-column: span 2; }
.tile-img  { position: relative; overflow: hidden; height: 180px; background: var(--dark-3); }
.tile-wide .tile-img { height: 220px; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(33,37,41,.7) 100%);
}
.tile-lph-tag {
  position: absolute;
  bottom: 8px; left: 10px;
  font-size: .6rem;
  color: #fff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: .05em;
}
.tile-body  { padding: 1.1rem; }
.tile-title { font-size: .82rem; font-weight: 700; color: var(--dark); margin-bottom: .4rem; }
.tile-desc  { font-size: .72rem; color: var(--dark-5); line-height: 1.6; }

/* ══════════════════════════════════════
   ARBEITSWEISE
══════════════════════════════════════ */
.arbeitsweise { background: var(--dark); padding: 5rem 4rem; }
.arbeitsweise .section-header h2 { color: var(--light); }
.arbeitsweise .section-sub { color: var(--mid); }
.aw-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1.25rem;
}
.aw-item {
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease, background .4s;
  cursor: default;
}
.aw-item::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, rgba(74,158,218,.12) 0%, transparent 68%);
  animation: aw-glow 4s ease-in-out infinite;
}
.aw-item:nth-child(2)::before { animation-delay: 1s; }
.aw-item:nth-child(3)::before { animation-delay: 2s; }
.aw-item:nth-child(4)::before { animation-delay: 3s; }
.aw-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: aw-shimmer 3s ease-in-out infinite;
}
.aw-item:nth-child(2)::after { animation-delay: .75s; }
.aw-item:nth-child(3)::after { animation-delay: 1.5s; }
.aw-item:nth-child(4)::after { animation-delay: 2.25s; }
.aw-item:hover {
  transform: perspective(700px) translateY(-7px) rotateX(5deg);
  box-shadow: 0 20px 44px rgba(0,0,0,.35);
  background: rgba(74,158,218,.07);
}

@keyframes aw-glow {
  0%,100% { opacity: .5; transform: scale(.9); }
  50%     { opacity: 1; transform: scale(1.08); }
}
@keyframes aw-shimmer {
  0%,100% { opacity: .15; transform: scaleX(.2); }
  50%     { opacity: 1;   transform: scaleX(1);  }
}

.aw-num {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: .65rem;
  opacity: .55;
  animation: aw-float 4s ease-in-out infinite;
  position: relative; z-index: 1;
}
.aw-item:nth-child(2) .aw-num { animation-delay: 1s; }
.aw-item:nth-child(3) .aw-num { animation-delay: 2s; }
.aw-item:nth-child(4) .aw-num { animation-delay: 3s; }
@keyframes aw-float {
  0%,100% { transform: translateY(0);    filter: drop-shadow(0 4px 8px rgba(74,158,218,.3)); }
  50%     { transform: translateY(-8px); filter: drop-shadow(0 12px 22px rgba(74,158,218,.65)); }
}

.aw-title { font-size: .82rem; font-weight: 700; color: var(--light); margin-bottom: .5rem; position: relative; z-index: 1; }
.aw-desc  { font-size: .72rem; color: var(--mid); line-height: 1.65; position: relative; z-index: 1; }

/* ══════════════════════════════════════
   ÜBER MICH
══════════════════════════════════════ */
.uebermich {
  background: #fff;
  padding: 5rem 4rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.um-photo-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.um-photo { width: 100%; display: block; object-fit: cover; }
.um-photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(33,37,41,.9) 0%, transparent 100%);
  padding: 2rem 1rem .9rem;
  color: var(--light);
  font-size: .72rem;
  font-weight: 600;
}
.um-content h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--dark);
  margin: .75rem 0 1.1rem;
  line-height: 1.3;
}
.um-content p { font-size: .875rem; color: var(--dark-4); line-height: 1.8; margin-bottom: .9rem; }
.um-content strong { color: var(--dark); }
.um-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  margin-top: 1.5rem;
}
.um-stat {
  background: var(--light);
  border-left: 3px solid var(--accent);
  padding: .75rem 1rem;
  border-radius: 0 5px 5px 0;
  transition: transform .3s;
}
.um-stat:hover { transform: translateX(4px); }
.um-stat-num    { font-size: 1.6rem; font-weight: 800; color: var(--dark); line-height: 1; }
.um-stat-suffix { font-size: 1.1rem; font-weight: 800; color: var(--accent); }
.um-stat-label  { font-size: .65rem; color: var(--dark-5); margin-top: 3px; }

/* ══════════════════════════════════════
   REFERENZEN
══════════════════════════════════════ */
.referenzen { background: var(--light); padding: 5rem 4rem; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.4rem;
}
.review-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .35s;
  transform-style: preserve-3d;
}
.review-card:hover { box-shadow: var(--shadow-lg); }
.review-photo { height: 160px; background: var(--dark-3); position: relative; overflow: hidden; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.review-card:hover .review-photo img { transform: scale(1.05); }
.review-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .4rem;
  color: var(--dark-5);
  font-size: .75rem;
  background: linear-gradient(135deg, var(--dark-4), var(--dark-5));
  text-align: center;
  padding: 1rem;
}
.review-photo-placeholder span:first-child { font-size: 1.75rem; }
.review-body    { padding: 1.1rem; }
.review-stars   { color: #f59f00; font-size: .9rem; margin-bottom: .5rem; letter-spacing: 2px; }
.review-text    { font-size: .78rem; color: var(--dark-4); line-height: 1.65; font-style: italic; margin-bottom: .75rem; }
.review-author  { font-size: .75rem; font-weight: 700; color: var(--dark); }
.review-project { font-size: .65rem; color: var(--dark-5); margin-top: 2px; }

/* ══════════════════════════════════════
   PORTFOLIO
══════════════════════════════════════ */
.portfolio {
  background: var(--dark);
  border-top: 3px solid var(--accent);
  padding: 3.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}
.portfolio-text h2 { font-size: 1.4rem; font-weight: 700; color: var(--light); margin-bottom: .6rem; }
.portfolio-text p  { font-size: .82rem; color: var(--mid); line-height: 1.7; }
.portfolio-text em { font-size: .7rem; color: var(--dark-5); font-style: normal; }
.portfolio-btn {
  background: var(--accent);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 3px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.portfolio-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #fff;
}

/* ══════════════════════════════════════
   KONTAKT
══════════════════════════════════════ */
.kontakt {
  background: #fff;
  padding: 5rem 4rem;
}
.kontakt-info h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--dark);
  margin: .75rem 0 1rem;
}
.kontakt-info p  { font-size: .875rem; color: var(--dark-4); line-height: 1.8; margin-bottom: 1.5rem; }
.kontakt-detail  { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; font-size: .875rem; color: var(--dark); }
.kontakt-icon    { font-size: 1.2rem; flex-shrink: 0; display: inline-flex; align-items: center; line-height: 1; }
.kontakt-detail a { color: var(--dark); transition: color .2s; }
.kontakt-detail a:hover { color: var(--accent); }

/* Kontakt – neues zentriertes Layout */
.pb-container--kontakt-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.kontakt-header {
  text-align: center;
  max-width: 680px;
  width: 100%;
}
.kontakt-header h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--dark);
  margin: .75rem 0 1rem;
}
.kontakt-header p {
  font-size: .875rem;
  color: var(--dark-4);
  line-height: 1.8;
}
.kontakt-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 3rem;
}
.kontakt-form-wrap {
  width: 100%;
  max-width: 680px;
}
.kontakt-form   { display: flex; flex-direction: column; gap: .9rem; }
.form-row       { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-input {
  border: 1.5px solid var(--light-3);
  border-radius: 5px;
  padding: .75rem 1rem;
  font-size: .82rem;
  color: var(--dark-4);
  background: var(--light);
  font-family: var(--font);
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,158,218,.15);
  outline: none;
}
select.form-input { appearance: none; -webkit-appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit {
  background: var(--accent);
  color: #fff;
  padding: .9rem;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.form-submit:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 14px var(--accent-glow); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.form-status { font-size: .8rem; padding: .4rem 0; min-height: 1.4rem; }
.form-status--success { color: #28a745; font-weight: 600; }
.form-status--error   { color: #dc3545; font-weight: 600; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: #1a1e21;
  padding: 1.75rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-left { display: flex; align-items: center; gap: .75rem; }
.footer-logo-link { display: block; }
.footer-logo-img {
  height: 32px; width: 32px;
  object-fit: contain;
  background: var(--light);
  border-radius: 3px;
  padding: 2px;
}
.footer-name  { color: var(--light); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.footer-claim { font-size: .65rem; color: var(--dark-5); margin-top: 2px; }
.footer-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.footer-links a, .footer-links span { font-size: .65rem; color: var(--dark-5); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* ══════════════════════════════════════
   3D SCROLL REVEAL
══════════════════════════════════════ */
.reveal-3d {
  opacity: 0;
  transform: perspective(900px) translateY(50px) rotateX(10deg);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-3d.visible {
  opacity: 1;
  transform: perspective(900px) translateY(0) rotateX(0);
}
.reveal-3d.d1 { transition-delay: .1s; }
.reveal-3d.d2 { transition-delay: .2s; }
.reveal-3d.d3 { transition-delay: .3s; }
.reveal-3d.d4 { transition-delay: .4s; }
.reveal-left {
  opacity: 0;
  transform: perspective(900px) translateX(-60px) rotateY(14deg);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.visible  { opacity: 1; transform: perspective(900px) translateX(0) rotateY(0); }
.reveal-right {
  opacity: 0;
  transform: perspective(900px) translateX(60px) rotateY(-14deg);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right.visible { opacity: 1; transform: perspective(900px) translateX(0) rotateY(0); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .tiles-grid { grid-template-columns: 1fr 1fr; }
  .tile-wide  { grid-column: span 2; }
  .aw-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 0 1.25rem; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--dark);
    padding: 1rem 1.25rem 1.5rem;
    gap: 1.1rem;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  .nav-links.open { display: flex; }
  .nav-toggle     { display: flex; }
  .nav-cta        { display: none; }

  /* Hero */
  .hero       { grid-template-columns: 1fr; }
  .hero-left  { padding: 3rem 1.5rem 2rem; }
  .hero-right { padding: 2rem 1.5rem; min-height: 200px; }

  /* USP */
  .usp-bar  { grid-template-columns: 1fr; }
  .usp-item { border-right: none; border-bottom: 1px solid var(--light-3); }
  .usp-item:last-child { border-bottom: none; }

  /* Intro */
  .intro { grid-template-columns: 1fr; padding: 3rem 1.5rem; gap: 2rem; }
  .intro-logo-animated { min-height: 240px; }

  /* Leistungen */
  .leistungen { padding: 3rem 1.5rem; }
  .tiles-grid { grid-template-columns: 1fr; }
  .tile-wide  { grid-column: span 1; }
  .tile-wide .tile-img { height: 180px; }

  /* Arbeitsweise */
  .arbeitsweise { padding: 3rem 1.5rem; }
  .aw-grid      { grid-template-columns: 1fr; }

  /* Über mich */
  .uebermich { grid-template-columns: 1fr; padding: 3rem 1.5rem; gap: 2rem; }

  /* Referenzen */
  .referenzen   { padding: 3rem 1.5rem; }
  .reviews-grid { grid-template-columns: 1fr; }

  /* Portfolio */
  .portfolio { flex-direction: column; align-items: flex-start; padding: 2.5rem 1.5rem; }

  /* Kontakt */
  .kontakt  { grid-template-columns: 1fr; padding: 3rem 1.5rem; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer       { padding: 1.5rem; flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 1rem; }
}

/* ══════════════════════════════════════
   GUTENBERG BLOCK WRAPPER RESETS
   Removes automatic spacing WordPress adds between blocks.
══════════════════════════════════════ */
.wp-block-html,
.wp-block-group,
.wp-block-post-content,
.entry-content {
  margin-block: 0 !important;
  padding: 0 !important;
}
#main-content > * { margin: 0; }

/* ══════════════════════════════════════
   1600px CONTENT CONTAINER (Gutenberg patterns)
   Used by sections in patterns/ to limit content width
   while keeping section backgrounds full-width.
══════════════════════════════════════ */
.pb-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 5rem 4rem;
}
.pb-container--usp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
}

/* Reset usp-bar layout when pb-pattern */
.usp-bar.pb-pattern {
  display: block;
}

.pb-container--intro {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: center;
}
.pb-container--um {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.pb-container--kontakt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.pb-container--portfolio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}
.pb-container--narrow {
  padding: 3.5rem 4rem;
}

/* Reset section's own padding/layout when pb-container is used inside */
.intro.pb-pattern,
.uebermich.pb-pattern,
.kontakt.pb-pattern {
  padding: 0;
  display: block;
}
.portfolio.pb-pattern {
  padding: 0;
  display: block;
}
.leistungen.pb-pattern,
.arbeitsweise.pb-pattern,
.referenzen.pb-pattern {
  padding: 0;
}

@media (max-width: 1024px) {
  .pb-container--intro,
  .pb-container--um { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .pb-container { padding: 3rem 1.5rem; }
  .pb-container--narrow { padding: 2.5rem 1.5rem; }
  .pb-container--usp  { grid-template-columns: 1fr; }
  .pb-container--intro,
  .pb-container--um { grid-template-columns: 1fr; gap: 2rem; }
  .kontakt-meta { flex-direction: column; align-items: center; gap: .75rem; }
  .pb-container--portfolio { flex-direction: column; align-items: flex-start; }
}

