/*
Theme Name: Tischlerei Freitag
Theme URI: https://tischlerei-freitag.de
Description: A custom, lightweight, modernized theme for Tischlerei Freitag GmbH.
Version: 1.0.0
Author: Antigravity AI
License: GNU General Public License v2 or later
Text Domain: tischlerei-freitag
*/

/* Core Design System Tokens */
:root {
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --freitag-rot: rgb(44, 40, 37); /* Deep warm charcoal wood */
  --freitag-rot-hover: rgb(150, 115, 75); /* Muted wood bronze */
  --freitag-hellgrau: rgb(245, 245, 245);
  --freitag-mittelgrau: rgb(130, 130, 130);
  --freitag-dunkelgrau: rgb(18, 18, 18);
  --freitag-beige: rgb(190, 145, 95);
  --freitag-beige-light: rgb(210, 170, 125);
  --accent-gold: rgb(200, 165, 125);
  --accent-bronze: rgb(150, 115, 75);
  --text-dark: rgb(24, 24, 26);
  --text-light: rgb(255, 255, 255);
}

/* Global Reset & Base Styling */
* {
  box-sizing: border-box;
  padding: 0px;
  margin: 0px;
  
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--text-light);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--freitag-rot);
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-top: 40px;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--freitag-beige);
}

p {
  margin-bottom: 20px;
}

a {
  color: var(--freitag-rot);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--freitag-rot-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Elements */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Modernized Header & Navigation */
header.site-header {
  background-color: var(--text-light);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

header.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 50px;
}

/* Modernized Navigation Dropdown Support */
nav.main-nav {
  position: relative;
}

nav.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav.main-nav li {
  position: relative;
}

nav.main-nav > ul > li > a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 5px 0;
  display: block;
}

nav.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--freitag-rot);
  transition: width 0.2s ease-in-out;
}

nav.main-nav > ul > li > a:hover::after,
nav.main-nav > ul > li.current-menu-item > a::after,
nav.main-nav > ul > li.current-page-ancestor > a::after {
  width: 100%;
}

/* Sub-menus (dropdowns) */
nav.main-nav ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 4px;
  list-style: none;
  min-width: 220px;
  padding: 10px 0;
  margin: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, transform 0.2s ease-in-out;
  z-index: 1010;
  border-top: 3px solid var(--freitag-rot);
}

nav.main-nav li:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

nav.main-nav ul.sub-menu li {
  width: 100%;
}

nav.main-nav ul.sub-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

nav.main-nav ul.sub-menu a:hover {
  background-color: var(--freitag-hellgrau);
  color: var(--freitag-rot);
}

/* Remove underline style from sub-menu links */
nav.main-nav ul.sub-menu a::after {
  display: none;
}


/* Modern Card Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.card {
  background-color: var(--text-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-img {
  height: 200px;
  background-position: center;
  background-size: cover;
}

.card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.card-body p {
  font-size: 14px;
  color: var(--freitag-mittelgrau);
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-more {
  align-self: flex-start;
  background-color: var(--freitag-rot);
  color: var(--text-light);
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s;
}

.btn-more:hover {
  background-color: var(--freitag-rot-hover);
  color: var(--text-light);
}

/* Footer */
footer.site-footer {
  background-color: var(--freitag-hellgrau);
  padding: 60px 0 20px 0;
  margin-top: 80px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

footer.site-footer .grid-3 {
  margin: 0 0 40px 0;
}

.footer-col h4 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.footer-col p, .footer-col a {
  font-size: 14px;
  color: #666;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 12px;
  color: #888;
}

/* Responsive Menu */
@media (max-width: 768px) {
  header.site-header .container {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 15px;
  }
  nav.main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}

/* Siquando CMS Legacy Layout Overrides */
#ngparatrisplit-w7e8511093b26aa4f721754323135064>ul>li>div>h3 { color:#ffffff !important; font-size:48px; font-weight:bold; text-transform:none; }
#ngparatrisplit-w7e8511093b26aa4f721754323135064>ul>li>div>p { color:#ffffff !important; font-size:16px; font-weight:normal; text-transform:none; }
#ngparatrisplit-w7e8511093b26aa4f721754323135064>ul>li>div>a { background-color:#ffffff; text-decoration:none; color:#444444; font-size:14px; font-weight:normal; text-transform:uppercase; }
#ngparatrisplit-w7e8511093b26aa4f721754323135064>ul>li>div>a:hover { background-color:#444444; color:#ffffff; }
#ngparatrisplit-w7e8511093b26aa4f721754323135064>ul>li>div>p a, #ngparatrisplit-w7e8511093b26aa4f721754323135064>ul>li>div>p a:hover { color:#ffffff !important; }

#ngparatilevideo-w7e98150d261b2914c52831884866018 { padding-bottom:56.250%; border-radius: 0px; }
#ngparatilevideo-w7e98150d261b2914c52831884866018>div { border-radius: 0px; background-color: rgba(50,50,50,0.8); color: #ffffff; }
#ngparatilevideo-w7e98150d261b2914c52831884866018>ul { border-radius: 0px; width: 128px; bottom: 15px; left: 15px; background-color: rgba(50,50,50,0.8); color: #ffffff; }
#ngparatilevideo-w7e98150d261b2914c52831884866018>video::cue { font-family: 'Open Sans',Verdana,Helvetica,sans-serif; background-color: rgba(50,50,50,0.8); color: #ffffff; }
#ngparapanotextw7e81170d12157f5f321754323135064 p, #ngparatxtslw7e81170d12157f5f321754323135064 a { color: #323232 }

/* Grid Cards & Carousel Styles */
.unternehmen a i{font-family: 'Font Awesome 6 Free' !important;}
.unternehmen p{color: white !important;}
.unternehmen h4 {
    font-size: 24px;
    text-transform: unset;
    font-weight: 600;
    color: white !important;
    margin-bottom: 0;
    pointer-events: none;}
.unternehmen{
    text-decoration: none;
    display: flex;
    align-items: flex-end;}
.unternehmen ul{
    color: white;
    padding-inline-start: 20px;
    line-height: 1.6;}
.unternehmen li {margin-bottom: 5px;}
.unternehmen a {
    color: white;
    background: var(--profis-gruen);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px 0 0 0;
    text-decoration: none;
    padding: 10px;
    position: absolute;
    bottom: 0;
    right: 0;}
.unternehmen {
    padding: 20px 30px;
    background-size: cover !important;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    max-height: 50vh;
    aspect-ratio: 2/3 !important;
    width: 100%;
    text-shadow: 0 0 20px rgb(35 30 20 / 80%);
    min-height: 450px;
    box-sizing: border-box;}

/* Card Backgrounds */
.unternehmen:after{
    background: linear-gradient(to bottom, rgb(35 30 20 / 0%) 5%, rgb(35 30 20 / 80%)), url(/images/pictures/slider/pxl_20231004_140449952.jpg);
    background-position: center;}
.maschinenpark:after{
    background: linear-gradient(to bottom, rgb(35 30 20 / 0%) 5%, rgb(35 30 20 / 80%)), url(/images/pictures/slider/adobestock_654274953.jpeg);
    background-position: center;}
.produkte:after{
    background: linear-gradient(to bottom, rgb(35 30 20 / 0%) 30%, rgb(35 30 20 / 80%)), url(/images/pictures/slider/pth-tischler-klein-02.jpg);
    background-position: left bottom;}
.ablaeufe:after{
    background: linear-gradient(to bottom, rgb(35 30 20 / 0%) 30%, rgb(35 30 20 / 80%)), url(/images/pictures/slider/adobestock_647973458.jpeg);
    background-position: center;}
.materialien:after{
    background: linear-gradient(to bottom, rgb(35 30 20 / 0%) 40%, rgb(35 30 20 / 95%)), url(/images/pictures/slider/adobestock_663045816.jpeg);
    background-position: center 60%;
    filter: brightness(0.9);}
.referenzen:after{
    background: linear-gradient(to bottom, rgb(35 30 20 / 0%) 30%, rgb(35 30 20 / 80%)), url(/images/pictures/slider/pth-tischler-klein-51.jpg);
    background-position: center;}
.jobangebote:after{
     background: linear-gradient(to bottom, rgb(35 30 20 / 5%), rgb(35 30 20 / 80%)), url(/images/pictures/slider/job.jpg);
    background-position: right;}
.finanzierungen:after{
     background: linear-gradient(to bottom, rgb(35 30 20 / 5%), rgb(35 30 20 / 80%)), url(/images/pictures/fianzierungen/adobestock_686430030.jpeg);
    background-position: center;}
.kontakt:after{
    background: linear-gradient(to bottom, rgb(35 30 20 / 0%) 30%, rgb(35 30 20 / 80%)), url(/images/pictures/slider/adobestock_410489065.jpeg);
    background-position: center;}
.bewertungen:after{
     background: linear-gradient(to bottom, rgb(35 30 20 / 5%), rgb(35 30 20 / 80%)), url(/images/pictures/slider/adobestock_691205783.jpeg);
    background-position: center;}

.unternehmen:after{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    margin-inline: auto;
    background-size: cover !important;
    transition: transform 0.3s ease-in-out;}

@media (hover: hover){
.unternehmen:hover:after {transform: scale(1.1);}
}

/* Force Panorama Text Overlay Visibility */
.ngparapanotextgrow {
    opacity: 1 !important;
    transform: none !important;
}

/* ==========================================================================
   NEW PREMIUM DESIGN SYSTEM & COMPONENTS
   ========================================================================== */

/* Dark Section styling */
.bg-dark-section {
  background-color: var(--freitag-dunkelgrau);
  color: var(--text-light);
  padding: 80px 0;
}

.bg-dark-section h2, 
.bg-dark-section h3 {
  color: var(--text-light);
}

.text-gold {
  color: var(--accent-gold) !important;
}

/* Premium Button Styling */
.btn-premium {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--accent-gold);
  color: #121212 !important;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(207, 174, 128, 0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-premium:hover {
  background-color: var(--accent-bronze);
  box-shadow: 0 6px 20px rgba(184, 147, 92, 0.4);
  transform: translateY(-2px);
}

.btn-premium-outline {
  display: inline-block;
  padding: 13px 33px;
  background-color: transparent;
  color: var(--text-light) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  border: 2px solid var(--accent-gold);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-premium-outline:hover {
  background-color: var(--accent-gold);
  color: #121212 !important;
  transform: translateY(-2px);
}

/* Hero Video Layout */
.premium-hero {
  position: relative;
  height: 80vh;
  min-height: 550px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.premium-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(18,18,18,0.4) 0%, rgba(18,18,18,0.85) 100%);
  z-index: 2;
}

.premium-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  color: var(--text-light);
}

.premium-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  letter-spacing: -0.5px;
}

.premium-hero-content p {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto 35px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.9);
}

/* Service Pillars Grid */
.pillars-section {
  padding: 100px 0;
  background-color: var(--text-light);
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--freitag-rot);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-intro p {
  font-size: 17px;
  color: var(--freitag-mittelgrau);
  line-height: 1.7;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.pillar-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  border-color: rgba(190, 145, 95, 0.2);
}

.pillar-img-container {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.pillar-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pillar-card:hover .pillar-img-container img {
  transform: scale(1.08);
}

.pillar-body {
  padding: 35px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pillar-body h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 15px;
}

.pillar-body p {
  color: var(--freitag-mittelgrau);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.pillar-link {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--freitag-rot);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pillar-link:after {
  content: '→';
  transition: transform 0.2s ease;
}

.pillar-card:hover .pillar-link:after {
  transform: translateX(4px);
}

/* Why Choose Us Icons */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.why-card {
  text-align: center;
  padding: 20px;
}

.why-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  background-color: rgba(207, 174, 128, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(207, 174, 128, 0.3);
}

.why-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--accent-gold);
}

.why-card h3 {
  font-family: var(--font-heading);
  color: var(--text-light);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 15px;
}

.why-card p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  line-height: 1.6;
}

/* Premium Filterable Gallery Grid */
.gallery-filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: transparent;
  border: 1px solid rgba(0,0,0,0.15);
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--freitag-rot);
  color: white;
  border-color: var(--freitag-rot);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  width: 100%;
}

.gallery-item {
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.gallery-overlay h4 {
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
}

.gallery-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* Contact / Conversion Banner Form Styling */
.contact-banner-container {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 40px;
  background-color: var(--bg-dark-accent);
  border-radius: 8px;
  border: 1px solid rgba(207, 174, 128, 0.3);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.contact-banner-container h3 {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
}

/* CF7 Premium Form Restyle */
.contact-banner-container form p {
  margin-bottom: 25px;
}

.contact-banner-container .wpcf7-form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: 2px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: white;
  font-family: var(--font-primary);
  font-size: 15px;
  transition: all 0.3s ease;
}

.contact-banner-container .wpcf7-form-control:focus {
  outline: none;
  background-color: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  border-bottom-color: var(--accent-gold);
}

.contact-banner-container textarea.wpcf7-form-control {
  min-height: 120px;
  resize: vertical;
}

.contact-banner-container input.wpcf7-submit {
  background-color: var(--accent-gold);
  color: #121212;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  padding: 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.contact-banner-container input.wpcf7-submit:hover {
  background-color: var(--accent-bronze);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(184, 147, 92, 0.4);
}

.contact-banner-container span.wpcf7-not-valid-tip {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.contact-banner-container .wpcf7-response-output {
  border: 1px solid var(--accent-gold) !important;
  color: white !important;
  border-radius: 4px;
  padding: 10px 15px !important;
  margin-top: 20px !important;
  text-align: center;
}
/* Force Earthy Wood Charcoal and Muted Bronze Tones (Overriding Siquando CSS) */
body h1, body h2, body h3, body h4, body h5, body h6 {
  color: var(--freitag-rot) !important;
  font-family: var(--font-heading) !important;
}

body .bg-dark-section h1, 
body .bg-dark-section h2, 
body .bg-dark-section h3, 
body .bg-dark-section h4, 
body .bg-dark-section h5, 
body .bg-dark-section h6,
body .premium-hero h1, 
body .premium-hero h2, 
body .premium-hero h3, 
body .premium-hero h4, 
body .premium-hero h5, 
body .premium-hero h6,
body .gallery-overlay h1, 
body .gallery-overlay h2, 
body .gallery-overlay h3, 
body .gallery-overlay h4, 
body .gallery-overlay h5, 
body .gallery-overlay h6 {
  color: var(--text-light) !important;
}

body .text-gold {
  color: var(--accent-gold) !important;
}

/* Underline override for premium earthy tone */
body h2::after {
  background-color: var(--freitag-beige) !important;
}

/* Link overrides */
body a {
  color: var(--freitag-rot-hover);
  transition: color 0.2s ease;
}

body a:hover {
  color: var(--freitag-rot);
}

/* Navigation link overrides to prevent reddish text on hover */
body .site-header a {
  color: #333333;
}

body .site-header a:hover {
  color: var(--freitag-rot-hover) !important;
}

/* Custom Contact Page Split Layout */
.contact-split-layout {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-info-col {
  flex: 1.2;
  min-width: 320px;
}

.contact-form-col {
  flex: 1;
  min-width: 320px;
}

.contact-heading {
  font-size: clamp(22px, 3vw, 28px) !important;
  line-height: 1.4 !important;
  font-style: italic;
  font-weight: 500 !important;
  color: var(--freitag-rot) !important;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 0 !important;
}

.contact-heading::after {
  display: none !important; /* Remove the underline decoration from this h2 */
}

.contact-subheading {
  font-size: 16px;
  color: var(--freitag-mittelgrau);
  margin-bottom: 40px;
}

.boss-image-wrapper {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.boss-image {
  width: 100%;
  height: auto;
  display: block;
}

.boss-details {
  display: flex;
  flex-direction: column;
}

.boss-details strong {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--freitag-rot);
}

.boss-details span {
  font-size: 14px;
  color: var(--freitag-mittelgrau);
}

/* Contact Page Form Card */
.contact-form-card {
  background-color: var(--freitag-hellgrau);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-form-card .form-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  margin-bottom: 30px;
  color: var(--freitag-rot) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 14px;
}

.contact-form-card form p {
  margin-bottom: 20px;
}

.contact-form-card .wpcf7-form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: white;
  border: 1px solid rgba(0,0,0,0.12);
  border-bottom: 2px solid rgba(0,0,0,0.18);
  border-radius: 4px;
  color: var(--text-dark);
  font-family: var(--font-primary);
  font-size: 15px;
  transition: all 0.3s ease;
}

.contact-form-card .wpcf7-form-control:focus {
  outline: none;
  border-color: rgba(0,0,0,0.2);
  border-bottom-color: var(--freitag-beige);
}

.contact-form-card select.wpcf7-form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
  padding-right: 40px;
}

.contact-form-card textarea.wpcf7-form-control {
  min-height: 120px;
  resize: vertical;
}

.contact-form-card input.wpcf7-submit {
  background-color: var(--freitag-rot);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  padding: 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.contact-form-card input.wpcf7-submit:hover {
  background-color: var(--freitag-rot-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(44, 40, 37, 0.3);
}

.contact-form-card span.wpcf7-not-valid-tip {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.contact-form-card .wpcf7-response-output {
  border: 1px solid var(--freitag-rot) !important;
  color: var(--text-dark) !important;
  border-radius: 4px;
  padding: 10px 15px !important;
  margin-top: 20px !important;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 991px) {
  .contact-split-layout {
    flex-direction: column;
    gap: 40px;
  }
  .contact-info-col, .contact-form-col {
    width: 100%;
  }
}

/* Force hero headings to remain white (overriding global !important heading color rule) */
#header h1, #header h2, #header h3, #header h4, #header h5, #header h6,
#headercontainer h1, #headercontainer h2, #headercontainer h3, #headercontainer h4, #headercontainer h5, #headercontainer h6 {
  color: #ffffff !important;
}
