/*
Theme Name: TCM GeneratePress Child
Theme URI: https://tcm.eviteko.de
Description: Projektbezogenes Child-Theme für Thißen Construction Management auf Basis von GeneratePress.
Author: Data
Template: generatepress
Version: 0.1.4
Text Domain: tcm-gp-child
*/

@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --tcm-bg: #f5f1ea;
  --tcm-surface: #ffffff;
  --tcm-surface-soft: #f0ece4;
  --tcm-text: #243042;
  --tcm-text-muted: #5a6575;
  --tcm-brand: #fc620c;
  --tcm-brand-dark: #d9550b;
  --tcm-deep: #24486b;
  --tcm-deep-strong: #183651;
  --tcm-border: #d8d1c5;
  --tcm-shadow: 0 18px 42px rgba(24, 54, 81, 0.10);
  --tcm-radius: 16px;
  --tcm-container: 1120px;
}

body {
  background: linear-gradient(180deg, #f7f3ed 0%, var(--tcm-bg) 100%);
  color: var(--tcm-text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
.main-title,
.site-title {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--tcm-deep-strong);
}

.site-header {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(24,54,81,0.10);
}

.inside-header,
.main-navigation .inside-navigation,
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .site-content,
.inside-footer-widgets,
.site-info {
  max-width: var(--tcm-container);
}

.inside-header {
  min-height: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-branding {
  display: none;
}

.main-navigation {
  background: #fff;
  border-bottom: 1px solid rgba(24,54,81,0.10);
}

.main-navigation .inside-navigation {
  min-height: 58px;
  justify-content: center;
}

.main-navigation .main-nav ul {
  gap: 8px;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-left: 14px;
  padding-right: 14px;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
  color: var(--tcm-brand);
}

.separate-containers .inside-article,
.separate-containers .page-header,
.separate-containers .comments-area {
  background: transparent;
  padding: 20px;
}

.site-main .entry-content,
.site-main .entry-summary,
.page-content {
  margin-top: 0;
}

.entry-content > [class*="wp-block-"]:not(:last-child) {
  margin-bottom: 0;
}

.tcm-page,
.tcm-home {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tcm-section {
  background: var(--tcm-surface);
  border: 1px solid var(--tcm-border);
  border-radius: var(--tcm-radius);
  box-shadow: var(--tcm-shadow);
  padding: 38px;
}

.tcm-section--deep {
  background: linear-gradient(180deg, var(--tcm-deep) 0%, var(--tcm-deep-strong) 100%);
  color: #fff;
  border-color: rgba(255,255,255,0.10);
}

.tcm-section--deep h1,
.tcm-section--deep h2,
.tcm-section--deep h3,
.tcm-section--deep h4 {
  color: #fff;
}

.tcm-section--soft {
  background: linear-gradient(180deg, #f6f2eb 0%, var(--tcm-surface-soft) 100%);
}

.tcm-brand-band {
  background: linear-gradient(135deg, var(--tcm-deep-strong) 0%, var(--tcm-deep) 100%);
  border-radius: var(--tcm-radius);
  padding: 28px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 145px;
  box-shadow: 0 22px 44px rgba(24,54,81,0.18);
}

.tcm-brand-band__inner {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.tcm-brand-band img {
  max-width: min(340px, 100%);
  height: auto;
  display: block;
}

.tcm-brand-band__claim {
  margin: 0;
  color: rgba(255,255,255,0.84);
  font-size: 0.98rem;
  line-height: 1.5;
}

.tcm-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 26px;
  align-items: stretch;
}

.tcm-eyebrow {
  display: inline-flex;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(252, 98, 12, 0.12);
  color: var(--tcm-brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tcm-hero h1,
.tcm-page h1 {
  font-size: clamp(2rem, 4.3vw, 3.35rem);
  line-height: 1.06;
  margin: 16px 0 18px;
}

.tcm-page h1 {
  max-width: none;
}

.tcm-lead {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--tcm-text-muted);
}

.tcm-hero .tcm-lead {
  max-width: 60ch;
}

.tcm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.tcm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.tcm-btn:hover,
.tcm-btn:focus {
  transform: translateY(-1px);
}

.tcm-btn--primary {
  background: var(--tcm-brand);
  color: #fff;
  box-shadow: 0 12px 28px rgba(252,98,12,0.28);
}

.tcm-btn--primary:hover,
.tcm-btn--primary:focus {
  background: var(--tcm-brand-dark);
  color: #fff;
}

.tcm-btn--secondary {
  background: transparent;
  color: var(--tcm-deep-strong);
  border: 1px solid rgba(24,54,81,0.20);
}

.tcm-btn--secondary:hover,
.tcm-btn--secondary:focus {
  border-color: var(--tcm-brand);
  color: var(--tcm-brand-dark);
}

.tcm-grid {
  display: grid;
  gap: 20px;
}

.tcm-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tcm-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tcm-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tcm-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--tcm-border);
  border-radius: 14px;
  padding: 24px;
}

.tcm-card h3,
.tcm-card h4 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.18rem;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.tcm-card p:last-child,
.tcm-section p:last-child,
.tcm-section ul:last-child {
  margin-bottom: 0;
}

.tcm-kicker {
  color: var(--tcm-brand-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.tcm-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.tcm-split > .tcm-photo {
  aspect-ratio: 16 / 10;
  align-self: start;
  max-height: 420px;
}

.tcm-section--services {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 26px;
  align-items: start;
}

.tcm-services-copy {
  min-width: 0;
}

.tcm-service-grid {
  margin-top: 18px;
}

.tcm-services-visual {
  padding: 0;
  overflow: hidden;
  position: sticky;
  top: 24px;
}

.tcm-services-visual .tcm-photo {
  aspect-ratio: 16 / 10;
  max-height: 360px;
  border-radius: 14px 14px 0 0;
}

.tcm-services-visual__body {
  padding: 22px;
}

.tcm-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.tcm-list li {
  position: relative;
  padding-left: 18px;
}

.tcm-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tcm-brand);
  transform: translateY(-50%);
}

.tcm-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.tcm-step__num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--tcm-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.tcm-note {
  font-size: 0.94rem;
  color: var(--tcm-text-muted);
}

.tcm-legal-placeholder {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(252,98,12,0.08);
  border: 1px dashed rgba(252,98,12,0.34);
}

.tcm-tbd {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(252,98,12,0.12);
  color: var(--tcm-brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: 6px;
  white-space: nowrap;
}

.tcm-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.tcm-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tcm-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--tcm-text);
}

.tcm-form input[type="text"],
.tcm-form input[type="email"],
.tcm-form input[type="tel"],
.tcm-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--tcm-border);
  background: #fff;
  color: var(--tcm-text);
  resize: vertical;
}

.tcm-form input:focus,
.tcm-form textarea:focus {
  outline: 2px solid var(--tcm-brand);
  outline-offset: 1px;
  border-color: var(--tcm-brand);
}

.tcm-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500 !important;
  font-size: 0.92rem;
}

.tcm-checkbox input {
  margin-top: 4px;
  width: auto;
}

.tcm-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.tcm-form-status {
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.tcm-form-status--ok {
  background: rgba(36,143,84,0.12);
  color: #1c6b41;
  border: 1px solid rgba(36,143,84,0.3);
}

.tcm-form-status--error {
  background: rgba(217,64,64,0.1);
  color: #a02323;
  border: 1px solid rgba(217,64,64,0.3);
}

.tcm-faq {
  display: grid;
  gap: 12px;
}

.tcm-faq details {
  border: 1px solid var(--tcm-border);
  border-radius: 12px;
  padding: 4px 18px;
  background: #fff;
}

.tcm-faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  color: var(--tcm-deep-strong);
  list-style: none;
}

.tcm-faq summary::-webkit-details-marker {
  display: none;
}

.tcm-faq summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--tcm-brand);
}

.tcm-faq details[open] summary::after {
  content: "–";
}

.tcm-faq p {
  padding-bottom: 16px;
  margin: 0;
  color: var(--tcm-text-muted);
}

.tcm-photo,
.tcm-photo img {
  width: 100%;
  display: block;
}

.tcm-photo {
  overflow: hidden;
  border-radius: 14px;
  min-height: 100%;
  background: #d5ddd4;
}

.tcm-photo img {
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.tcm-hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 520px;
  box-shadow: 0 24px 46px rgba(32,53,47,0.18);
}

.tcm-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,54,81,0.08) 0%, rgba(24,54,81,0.68) 100%);
}

.tcm-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tcm-hero-badges {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tcm-badge {
  background: rgba(255,255,255,0.92);
  color: var(--tcm-deep-strong);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.14);
}

.tcm-badge strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.1;
}

.tcm-badge span {
  display: block;
  font-size: 0.9rem;
  color: var(--tcm-text-muted);
  margin-top: 6px;
}

.tcm-feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tcm-feature-card .tcm-photo {
  aspect-ratio: 16 / 10;
}

.tcm-project-card {
  overflow: hidden;
  padding: 0;
}

.tcm-project-card .tcm-photo {
  border-radius: 14px 14px 0 0;
  aspect-ratio: 16 / 11;
}

.tcm-project-card__body {
  padding: 22px;
}

.tcm-portrait-stack {
  display: grid;
  gap: 18px;
}

.tcm-portrait-stack .tcm-photo:first-child {
  aspect-ratio: 4 / 5;
}

.tcm-portrait-stack .tcm-photo:last-child {
  aspect-ratio: 16 / 10;
}

.tcm-process-grid .tcm-card {
  padding: 0;
  overflow: hidden;
}

.tcm-process-grid .tcm-photo {
  aspect-ratio: 16 / 10;
  border-radius: 14px 14px 0 0;
}

.tcm-process-grid .tcm-card__body {
  padding: 22px;
}

.site-info,
.site-info a {
  color: var(--tcm-text-muted);
}

@media (max-width: 1024px) {
  .tcm-hero,
  .tcm-split,
  .tcm-grid--4,
  .tcm-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .tcm-section--services {
    grid-template-columns: 1fr;
  }

  .tcm-services-visual {
    position: static;
  }

  .tcm-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tcm-hero-visual {
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .inside-header {
    display: none;
  }

  .main-navigation .inside-navigation {
    min-height: 54px;
    justify-content: space-between;
    padding-left: 16px;
    padding-right: 16px;
  }

  .main-navigation .main-nav ul li a,
  .main-navigation .menu-toggle,
  .main-navigation .menu-bar-items {
    padding-left: 10px;
    padding-right: 10px;
  }

  .tcm-section,
  .tcm-brand-band {
    padding: 24px;
  }

  .tcm-hero,
  .tcm-split,
  .tcm-grid--4,
  .tcm-grid--3,
  .tcm-grid--2,
  .tcm-hero-badges {
    grid-template-columns: 1fr;
  }

  .tcm-hero {
    gap: 18px;
  }

  .tcm-hero h1,
  .tcm-page h1 {
    font-size: clamp(1.72rem, 8vw, 2.45rem);
    line-height: 1.1;
  }

  .tcm-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tcm-btn {
    min-height: 46px;
  }

  .tcm-brand-band {
    min-height: 110px;
    padding: 18px 20px;
  }

  .tcm-brand-band img {
    max-width: 250px;
  }

  .tcm-brand-band__claim {
    font-size: 0.9rem;
  }

  .tcm-hero-visual {
    min-height: auto;
    overflow: visible;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .tcm-hero-visual::after {
    display: none;
  }

  .tcm-hero-visual img {
    aspect-ratio: 16 / 12;
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(24,54,81,0.16);
    height: auto;
    min-height: 0;
  }

  .tcm-hero-badges {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 0;
    z-index: 1;
    gap: 12px;
  }

  .tcm-badge {
    position: relative;
    z-index: 2;
    background: #ffffff;
  }

  .tcm-hero + .tcm-section {
    margin-top: 6px;
  }

  .tcm-split > .tcm-photo,
  .tcm-feature-card .tcm-photo,
  .tcm-process-grid .tcm-photo,
  .tcm-project-card .tcm-photo {
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .tcm-field-row {
    grid-template-columns: 1fr;
  }
}
