/* Calibri is a pre-installed system font — no import required */

:root {
  /* Color Palette */
  --primary-green: #0d5327;
  --primary-green-rgb: 13, 83, 39;
  --accent-gold: #c5a880;
  --accent-gold-rgb: 197, 168, 128;
  --accent-gold-hover: #b3956c;
  --vibrant-green: #1b8a43;
  --vibrant-green-hover: #156e35;
  --vibrant-green-rgb: 27, 138, 67;
  
  /* Backgrounds */
  --bg-light: #faf9f6; /* Warm ivory */
  --bg-white: #ffffff;
  --bg-dark: #07170e; /* Deep forest charcoal (NodeOps/Moonbeam dark style) */
  --bg-dark-card: #10351f;
  --bg-dark-glow: rgba(13, 83, 39, 0.15);
  
  /* Text Colors */
  --text-dark: #0f2115;
  --text-dark-muted: #4a5c50;
  --text-light: #faf9f6;
  --text-light-muted: #a4b5aa;
  
  /* Borders & Shadows */
  --border-color: rgba(13, 83, 39, 0.08);
  --border-color-dark: rgba(197, 168, 128, 0.15);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 12px 36px rgba(13, 83, 39, 0.06);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(27, 138, 67, 0.25);
  --shadow-gold-glow: 0 0 25px rgba(197, 168, 128, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Calibri', 'Calibri Light', 'Candara', Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Calibri', 'Calibri Light', 'Candara', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-green);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-center {
  text-align: center;
}

/* Section Headers */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  background-color: rgba(197, 168, 128, 0.05);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-dark-muted);
  max-width: 650px;
  margin: 0 auto 60px auto;
}

/* Glassmorphism Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  height: 90px;
  transition: var(--transition-normal);
}

.header.scrolled .header-container {
  height: 75px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: var(--transition-normal);
}

.logo-mark-negative {
  background-color: var(--primary-green);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(7, 23, 14, 0.18);
}

.logo-mark-negative .logo-img {
  filter: brightness(0) invert(1);
}

.header.scrolled .logo-link {
  padding-left: 0;
  padding-right: 0;
  background-color: var(--bg-white);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header.scrolled .logo-img {
  filter: none;
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: clamp(14px, 1.55vw, 28px);
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(0.813rem, 0.9vw, 0.938rem);
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-green);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

.emergency-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.813rem;
  font-weight: 700;
  background-color: rgba(27, 138, 67, 0.08);
  color: var(--vibrant-green);
  padding: 8px 14px;
  border-radius: 50px;
  border: 1px solid rgba(27, 138, 67, 0.15);
}

.emergency-dot {
  width: 8px;
  height: 8px;
  background-color: var(--vibrant-green);
  border-radius: 50%;
  animation: pulseGlow 1.8s infinite alternate;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.938rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(13, 83, 39, 0.15);
}

.btn-primary:hover {
  background-color: #083b1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 83, 39, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-green);
  border: 1px solid var(--primary-green);
}

.btn-secondary:hover {
  background-color: rgba(13, 83, 39, 0.04);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.2);
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-glow);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.btn-outline-gold:hover {
  background-color: rgba(197, 168, 128, 0.08);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #07170e;
  overflow: hidden;
  padding-top: 110px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: grayscale(20%) brightness(90%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 60% 40%, rgba(13, 83, 39, 0.2) 0%, rgba(7, 23, 14, 0.95) 75%);
}

.hero-dotted-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(197, 168, 128, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 780px;
  color: var(--bg-light);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--bg-white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-light-muted);
  margin-bottom: 40px;
  max-width: 680px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
}

.hero-trust-title {
  font-size: 0.813rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
}

.hero-badge-row {
  display: flex;
  gap: 24px;
  align-items: center;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
}

.hero-badge-item svg {
  color: var(--accent-gold);
}

/* Stats Row Section */
.stats-bar-section {
  position: relative;
  z-index: 20;
  margin-top: -60px;
  padding: 0;
}

.stats-container {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(197, 168, 128, 0.3);
  padding: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent-gold), transparent);
  opacity: 0.4;
}

.stat-number {
  font-size: 3rem;
  font-family: 'Calibri', 'Candara', Helvetica, Arial, sans-serif;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number span {
  color: var(--accent-gold);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  letter-spacing: 1px;
}

.stat-desc {
  font-size: 0.813rem;
  color: var(--text-dark-muted);
  opacity: 0.8;
}

/* Pillars Section ("Die 4 Säulen") */
.pillars-section {
  background-color: var(--bg-white);
}

.pillars-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pillars-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  list-style: none;
  background-color: var(--bg-light);
  padding: 8px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  max-width: 800px;
  margin: 0 auto;
}

.pillar-tab-btn {
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.938rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-dark-muted);
  transition: var(--transition-fast);
}

.pillar-tab-btn:hover {
  color: var(--primary-green);
}

.pillar-tab-btn.active {
  background-color: var(--primary-green);
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.pillar-content-card {
  display: none;
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 50px;
  border: 1px solid var(--border-color);
  animation: fadeIn 0.6s var(--transition-normal);
}

.pillar-content-card.active {
  display: grid;
}

.pillar-details h3 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--primary-green);
}

.pillar-details .pillar-headline {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

.pillar-details p {
  color: var(--text-dark-muted);
  margin-bottom: 30px;
  font-size: 1.063rem;
}

.pillar-features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.pillar-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.938rem;
  font-weight: 500;
}

.pillar-features-list li svg {
  color: var(--vibrant-green);
}

.pillar-visual {
  position: relative;
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.pillar-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.pillar-stat-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(13, 83, 39, 0.9);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: var(--radius-sm);
  color: var(--bg-white);
  border-left: 4px solid var(--accent-gold);
}

.pillar-stat-value {
  font-size: 1.5rem;
  font-family: 'Calibri', 'Candara', Helvetica, Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 4px;
}

.pillar-stat-desc {
  font-size: 0.813rem;
  opacity: 0.8;
}

/* Meisterbetrieb Unique Selling Point Section */
.meister-section {
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.meister-bg-glow {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.08) 0%, transparent 70%);
  z-index: 1;
}

.meister-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  aspect-ratio: 4/3;
  z-index: 2;
}

.meister-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meister-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background-color: var(--bg-white);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--accent-gold);
  text-align: center;
}

.meister-badge-icon {
  font-size: 1.25rem;
  color: var(--accent-gold);
}

.meister-badge-text {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-green);
  line-height: 1.2;
}

.meister-text-content {
  z-index: 2;
}

.meister-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.meister-card {
  display: flex;
  gap: 20px;
  background-color: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.meister-card:hover {
  transform: translateX(8px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.meister-card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(13, 83, 39, 0.05);
  color: var(--primary-green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.meister-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 6px;
}

.meister-card-desc {
  font-size: 0.875rem;
  color: var(--text-dark-muted);
}

/* Interactive Portal Showcase ("Mein OEC") */
.portal-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.portal-bg-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(27, 138, 67, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.7;
}

.portal-glow-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 83, 39, 0.4) 0%, transparent 70%);
  filter: blur(50px);
}

.portal-glow-2 {
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.15) 0%, transparent 70%);
  filter: blur(50px);
}

.portal-title {
  color: var(--bg-white);
}

.portal-subtitle {
  color: var(--text-light-muted);
}

.portal-build-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: -32px auto 42px;
  padding: 10px 14px;
  border: 1px solid rgba(197, 168, 128, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(7, 23, 14, 0.55);
  color: var(--text-light-muted);
  font-size: 0.875rem;
}

.portal-build-note span {
  color: var(--bg-dark);
  background: var(--accent-gold);
  border-radius: 4px;
  padding: 3px 8px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.688rem;
}

.portal-build-note strong {
  color: var(--bg-white);
}

.portal-interface {
  position: relative;
  background-color: rgba(12, 36, 23, 0.6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color-dark);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  z-index: 10;
}

/* Portal Title Bar / Window Controls */
.portal-window-header {
  background-color: rgba(7, 23, 14, 0.9);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portal-window-dots {
  display: flex;
  gap: 8px;
}

.portal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.portal-dot.red { background-color: #ff5f56; }
.portal-dot.yellow { background-color: #ffbd2e; }
.portal-dot.green { background-color: #27c93f; }

.portal-window-title {
  font-size: 0.813rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-light-muted);
  text-transform: uppercase;
}

.portal-window-tag {
  font-size: 0.813rem;
  font-weight: 700;
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(197, 168, 128, 0.25);
}

/* Portal Grid Layout */
.portal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 480px;
}

/* Portal Sidebar */
.portal-sidebar {
  background-color: rgba(7, 23, 14, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 20px;
}

.portal-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portal-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-weight: 700;
}

.portal-user-info h4 {
  font-family: 'Calibri', 'Candara', Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  color: var(--bg-white);
}

.portal-user-info span {
  font-size: 0.75rem;
  color: var(--text-light-muted);
}

.portal-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.portal-menu-item:hover, .portal-menu-item.active {
  color: var(--bg-white);
  background-color: rgba(197, 168, 128, 0.1);
}

.portal-menu-item.active {
  border-left: 3px solid var(--accent-gold);
}

/* Portal Dashboard Main Area */
.portal-main {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.portal-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-dashboard-header h3 {
  font-family: 'Calibri', 'Candara', Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  color: var(--bg-white);
  font-weight: 700;
}

.portal-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portal-dashboard-card {
  background-color: rgba(7, 23, 14, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.813rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}

.portal-card-value {
  font-size: 1.75rem;
  font-family: 'Calibri', 'Candara', Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--bg-white);
}

.portal-card-trend {
  font-size: 0.75rem;
  color: #27c93f;
  display: flex;
  align-items: center;
  gap: 4px;
}

.portal-card-trend.neutral {
  color: var(--text-light-muted);
}

/* Portal Interactive Ticket Widget */
.portal-ticket-widget {
  background-color: rgba(7, 23, 14, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 24px;
}

.portal-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.portal-widget-header h4 {
  font-family: 'Calibri', 'Candara', Helvetica, Arial, sans-serif;
  color: var(--bg-white);
  font-size: 1rem;
}

.portal-ticket-btn {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.portal-ticket-btn:hover {
  background-color: var(--accent-gold-hover);
}

.portal-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-ticket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(12, 36, 23, 0.6);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-fast);
}

.portal-ticket-item:hover {
  border-color: rgba(197, 168, 128, 0.3);
}

.portal-ticket-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portal-ticket-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-white);
}

.portal-ticket-meta {
  font-size: 0.75rem;
  color: var(--text-light-muted);
}

.portal-ticket-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.portal-ticket-status.open {
  background-color: rgba(255, 189, 46, 0.15);
  color: #ffbd2e;
  border: 1px solid rgba(255, 189, 46, 0.3);
}

.portal-ticket-status.resolved {
  background-color: rgba(39, 201, 63, 0.15);
  color: #27c93f;
  border: 1px solid rgba(39, 201, 63, 0.3);
}

.portal-ticket-status.progress {
  background-color: rgba(0, 122, 255, 0.15);
  color: #007aff;
  border: 1px solid rgba(0, 122, 255, 0.3);
}

/* Case Study & Testimonials */
.testimonials-section {
  background-color: var(--bg-white);
}

.case-study-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(197, 168, 128, 0.28);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
}

.case-study-layout {
  display: grid;
  grid-template-columns: 40% 60%;
}

.case-study-visual {
  background-color: var(--primary-green);
  color: var(--bg-white);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px;
  position: relative;
  overflow: hidden;
}

.case-study-visual-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: grayscale(100%);
}

.case-study-visual-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-study-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.case-study-metrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-metric-item {
  display: flex;
  flex-direction: column;
}

.case-metric-val {
  font-size: 2.25rem;
  font-family: 'Calibri', 'Candara', Helvetica, Arial, sans-serif;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.1;
}

.case-metric-lbl {
  font-size: 0.75rem;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-study-details {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-study-title {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.case-study-desc {
  color: var(--text-dark-muted);
  margin-bottom: 24px;
}

.case-study-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-study-steps li {
  position: relative;
  padding-left: 28px;
  font-size: 0.938rem;
  font-weight: 500;
}

.case-study-steps li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--vibrant-green);
  font-weight: 800;
}

/* Testimonials Grid */
.testimonials-grid {
  margin-top: 40px;
}

.testimonial-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-fast);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text-dark-muted);
  font-style: italic;
  margin-bottom: 30px;
  position: relative;
}

.testimonial-author-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-author-details h5 {
  font-family: 'Calibri', 'Candara', Helvetica, Arial, sans-serif;
  font-size: 0.938rem;
  color: var(--primary-green);
  font-weight: 700;
}

.testimonial-author-details span {
  font-size: 0.813rem;
  color: var(--text-dark-muted);
}

.testimonial-stars {
  color: var(--accent-gold);
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

/* Interactive Consultation / Offer Configurator */
.calculator-section {
  background-color: var(--bg-light);
  position: relative;
}

.calculator-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(197, 168, 128, 0.32);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calculator-layout {
  display: grid;
  grid-template-columns: 1fr;
}

.calculator-form {
  padding: clamp(30px, 4vw, 52px);
}

.calc-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.calc-desc {
  color: var(--text-dark-muted);
  max-width: 560px;
  margin-bottom: 32px;
  font-size: 0.938rem;
}

.form-group {
  margin-bottom: 30px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-green);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.range-slider-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.property-input-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field-label {
  display: block;
  color: var(--text-dark-muted);
  font-size: 0.813rem;
  font-weight: 700;
}

.form-input {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-dark);
  font: inherit;
}

.form-input:focus {
  outline: 2px solid rgba(197, 168, 128, 0.45);
  border-color: var(--accent-gold);
}

.range-slider {
  flex: 1;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(13, 83, 39, 0.1);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-green);
  cursor: pointer;
  border: 2px solid var(--accent-gold);
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-val-box {
  background-color: rgba(13, 83, 39, 0.05);
  color: var(--primary-green);
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 6px;
  min-width: 80px;
  text-align: center;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.checkbox-card {
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  border-radius: var(--radius-sm);
  min-height: 88px;
  padding: 16px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.checkbox-card:hover {
  border-color: var(--accent-gold);
  background-color: var(--bg-white);
}

.checkbox-card.selected {
  border-color: var(--primary-green);
  background-color: rgba(13, 83, 39, 0.03);
  box-shadow: 0 4px 12px rgba(13, 83, 39, 0.03);
}

.development-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  color: var(--text-dark-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.development-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.callback-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(197, 168, 128, 0.25);
}

.callback-fields[hidden] {
  display: none;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-green);
  margin-top: 2px;
  cursor: pointer;
}

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

.checkbox-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 2px;
}

.checkbox-desc {
  font-size: 0.75rem;
  color: var(--text-dark-muted);
}

/* Calculator Result Panel */
.calculator-result {
  background-color: var(--primary-green);
  color: var(--bg-white);
  min-height: 0;
  margin: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  align-self: stretch;
  position: relative;
  overflow: hidden;
}

.calc-result-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(197, 168, 128, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.calc-result-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.calc-result-content .btn-gold {
  width: 100% !important;
  max-width: 320px;
  padding: 16px 22px;
  font-size: 1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.result-header h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.125rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.result-header p {
  font-size: 0.875rem;
  color: var(--text-light-muted);
}

.result-summary-box {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--radius-md);
  margin: 30px 0;
}

.result-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-summary-item:last-child {
  border-bottom: none;
}

.result-summary-lbl {
  color: var(--text-light-muted);
}

.result-summary-val {
  font-weight: 700;
}

.result-price-block {
  text-align: center;
  margin-bottom: 30px;
}

.result-price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.result-price {
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  color: var(--bg-white);
  line-height: 1.1;
}

.result-price-period {
  font-size: 0.813rem;
  color: var(--text-light-muted);
}

.result-advantages {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.result-advantages li {
  position: relative;
  padding-left: 24px;
  font-size: 0.875rem;
}

.result-advantages li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

/* Footer styling */
.footer {
  background: linear-gradient(145deg, var(--bg-dark) 0%, #0c2417 100%);
  color: var(--text-light);
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.35fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo-wrap {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
}

.footer-brand-desc {
  color: var(--text-light-muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  transition: var(--transition-fast);
}

.footer-social-link:hover {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

.footer-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.938rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-light-muted);
}

.footer-link:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-light-muted);
  margin-bottom: 16px;
}

.footer-contact-item svg {
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.813rem;
  color: var(--text-light-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-link:hover {
  color: var(--accent-gold);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(27, 138, 67, 0.4);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(27, 138, 67, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(27, 138, 67, 0);
  }
}

@media (max-width: 1180px) {
  .emergency-tag {
    display: none;
  }

  .header-container {
    gap: 14px;
  }
}

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

  .header-container {
    justify-content: center;
  }

  .nav {
    display: none;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .grid-2, .grid-3, .grid-4 {
    gap: 24px;
  }
  .case-study-layout {
    grid-template-columns: 1fr;
  }
  .calculator-layout {
    grid-template-columns: 1fr;
  }
  .calculator-result {
    border-left: none;
    border-top: 1px solid rgba(197, 168, 128, 0.42);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .property-input-grid,
  .checkbox-grid,
  .callback-fields {
    grid-template-columns: 1fr;
  }

  .calculator-form,
  .calculator-result {
    padding: 28px 22px;
  }

  .calculator-result {
    min-height: 0;
    margin: 0;
    border-radius: 0;
    padding: 28px 22px;
  }

  .header-actions {
    display: none;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .pillar-content-card.active {
    grid-template-columns: 1fr;
  }
  .pillars-nav {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
  }
  .pillar-tab-btn {
    flex: 1 1 45%;
    padding: 10px 16px;
  }
  .portal-layout {
    grid-template-columns: 1fr;
  }
  .portal-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .portal-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-badge-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .vision-inner {
    grid-template-columns: 1fr;
  }
  .transformation-banner-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ==========================================================================
   Transformation Banner (Phase 1 Modernisation Signal)
   ========================================================================== */
.transformation-banner {
  background: linear-gradient(135deg, rgba(13, 83, 39, 0.95) 0%, rgba(7, 23, 14, 0.98) 100%);
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
  padding: 12px 0;
  position: relative;
  z-index: 999;
  margin-top: 90px;
}

.transformation-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.transformation-banner-icon {
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.transformation-banner-text {
  font-size: 0.875rem;
  color: rgba(250, 249, 246, 0.85);
  font-weight: 500;
}

.transformation-banner-link {
  font-size: 0.875rem;
  color: var(--accent-gold);
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.transformation-banner-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   Vision / Transformation Section
   ========================================================================== */
.vision-section {
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.vision-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(197, 168, 128, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.vision-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: start;
}

.vision-text-col .section-title {
  text-align: left;
  max-width: 520px;
}

.vision-goals {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.vision-goal-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.vision-goal-item:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
}

.vision-goal-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(13, 83, 39, 0.08), rgba(197, 168, 128, 0.08));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  flex-shrink: 0;
  border: 1px solid rgba(13, 83, 39, 0.1);
}

.vision-goal-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 4px;
}

.vision-goal-item p {
  font-size: 0.875rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
  margin: 0;
}

/* Vision Quote Column */
.vision-quote-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 110px;
}

.vision-quote-card {
  background: linear-gradient(145deg, var(--bg-dark), #0c2417);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color-dark);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.vision-quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.08) 0%, transparent 70%);
}

.vision-quote-mark {
  font-size: 5rem;
  line-height: 0.8;
  color: var(--accent-gold);
  opacity: 0.4;
  font-family: Georgia, serif;
  margin-bottom: 16px;
  display: block;
}

.vision-quote-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bg-white);
  line-height: 1.6;
  margin-bottom: 28px;
  font-style: italic;
}

.vision-quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(197, 168, 128, 0.15);
  padding-top: 20px;
}

.vision-quote-author strong {
  display: block;
  font-size: 0.938rem;
  color: var(--bg-white);
  font-weight: 700;
}

.vision-quote-author span {
  font-size: 0.813rem;
  color: var(--text-light-muted);
}

/* Vision Target Client Card */
.vision-target-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.vision-target-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-size: 0.813rem;
}

.vision-target-card p {
  font-size: 0.938rem;
  color: var(--text-dark-muted);
  line-height: 1.7;
}

/* Adjust hero top-padding since we now have the banner above it */
.hero {
  padding-top: 0;
}



/* Mobile friendliness pass */
@media (max-width: 768px) {
  .header-container {
    justify-content: center;
    height: 72px;
  }

  .header.scrolled .header-container {
    height: 68px;
  }

  .nav {
    display: none;
  }

  .logo-img {
    height: 34px;
  }

  .transformation-banner {
    margin-top: 72px;
  }

  .hero .container {
    min-height: calc(100vh - 120px) !important;
  }

  .hero-title {
    font-size: 2.35rem;
    line-height: 1.12;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .stats-container,
  .pillar-content-card,
  .case-study-details,
  .case-study-visual,
  .vision-quote-card,
  .vision-target-card,
  .calculator-card {
    padding: 24px;
  }

  .pillar-features-list {
    grid-template-columns: 1fr;
  }

  .pillars-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 6px;
  }

  .pillar-tab-btn {
    width: 100%;
    min-height: 44px;
    white-space: normal;
  }

  .portal-interface {
    border-radius: var(--radius-md);
  }

  .portal-window-header {
    gap: 12px;
    padding: 14px 16px;
  }

  .portal-window-title {
    display: none;
  }

  .portal-build-note {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: -24px;
    text-align: left;
  }

  .portal-main {
    padding: 20px;
  }

  .portal-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .portal-ticket-item,
  .portal-widget-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .vision-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .vision-quote-col {
    position: static;
    width: 100%;
    max-width: 100%;
  }

  .vision-quote-card,
  .vision-target-card {
    width: 100%;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .calculator-section .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .calculator-card {
    border-radius: 14px;
  }

  .calculator-form {
    padding: 24px 18px;
  }

  .calc-title {
    font-size: 1.65rem;
  }

  .calc-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .form-group {
    margin-bottom: 22px;
  }

  .form-label {
    font-size: 0.75rem;
  }

  .field-label {
    font-size: 0.75rem;
  }

  .form-input {
    min-height: 46px;
    font-size: 1rem;
  }

  .checkbox-grid {
    gap: 10px;
  }

  .checkbox-card {
    min-height: 72px;
    padding: 13px 12px;
  }

  .checkbox-title {
    font-size: 0.813rem;
  }

  .checkbox-desc,
  .development-options {
    font-size: 0.7rem;
  }

  .callback-fields {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
  }

  .calculator-result {
    padding: 22px 18px;
  }

  .calc-result-content .btn-gold {
    max-width: none;
  }

  .section-padding {
    padding: 72px 0;
  }

  .hero-title {
    font-size: 2.05rem;
  }

  .stats-grid,
  .pillars-nav {
    grid-template-columns: 1fr;
  }

  .stat-item::after {
    display: none !important;
  }

  .portal-dashboard-card {
    padding: 16px;
  }

  .portal-card-value {
    font-size: 1.45rem;
  }
}

/* Premium dark visual system */
body {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.stats-bar-section,
.pillars-section,
.testimonials-section,
.vision-section,
.calculator-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.stats-container,
.pillar-content-card,
.testimonial-card,
.vision-quote-card,
.vision-target-card,
.calculator-card,
.case-study-card {
  background-color: var(--bg-dark-card);
  border-color: rgba(197, 168, 128, 0.42);
}

.section-title,
.calc-title,
.case-study-title,
.pillar-details h3,
.vision-target-card h4,
.testimonial-author-details h5 {
  color: var(--text-light);
}

.section-subtitle,
.calc-desc,
.case-study-desc,
.pillar-details p,
.vision-target-card p,
.testimonial-quote,
.stat-item-label,
.checkbox-desc,
.field-label {
  color: var(--text-light-muted);
}

.pillars-nav,
.checkbox-card,
.case-study-details {
  background-color: rgba(12, 36, 23, 0.72);
  border-color: rgba(197, 168, 128, 0.24);
}

.checkbox-card:hover,
.checkbox-card.selected {
  background-color: rgba(13, 83, 39, 0.72);
  border-color: var(--accent-gold);
}

.checkbox-title,
.form-label,
.pillar-features-list li,
.case-study-steps li,
.stat-item-value {
  color: var(--text-light);
}

.testimonial-card,
.vision-quote-card,
.vision-target-card,
.calculator-card {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.stat-number {
  color: var(--text-light);
}

.stat-label,
.stat-desc {
  color: var(--text-light-muted);
}

.pillar-tab-btn {
  color: var(--text-light-muted);
}

.pillar-tab-btn:hover,
.pillar-tab-btn.active {
  color: var(--text-light);
}

.meister-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.meister-card {
  background-color: var(--bg-dark-card);
  border-color: rgba(197, 168, 128, 0.24);
}

.meister-card-title {
  color: var(--text-light);
}

.meister-card-desc {
  color: var(--text-light-muted);
}

.meister-card-icon {
  background-color: rgba(13, 83, 39, 0.65);
  color: var(--accent-gold);
}

.case-study-desc,
.testimonial-author-details span {
  color: var(--text-light-muted);
}
/* Eigentümer-Dashboard: klare, hochwertige Kontraste */
.portal-interface {
  background-color: #0b2415;
  border-color: rgba(197, 168, 128, 0.42);
}

.portal-window-header {
  background: linear-gradient(135deg, #123d25 0%, #07170e 100%);
  border-bottom-color: rgba(197, 168, 128, 0.28);
}

.portal-window-title,
.portal-menu-item,
.portal-user-info span {
  color: #c3d1c5;
}

.portal-sidebar {
  background-color: #07170e;
  border-right-color: rgba(197, 168, 128, 0.24);
}

.portal-menu-item:hover,
.portal-menu-item.active {
  color: #f7f3e8;
  background-color: rgba(197, 168, 128, 0.18);
}

.portal-dashboard-card,
.portal-ticket-widget {
  background-color: #10351f;
  border-color: rgba(197, 168, 128, 0.28);
  box-shadow: inset 0 1px 0 rgba(197, 168, 128, 0.12);
}

.portal-ticket-item {
  background-color: #0c2a19;
  border-color: rgba(197, 168, 128, 0.18);
}

.portal-dashboard-header h3,
.portal-user-info h4,
.portal-card-value,
.portal-widget-header h4 {
  color: #f7f3e8;
}

/* Inverted logo mark: white logo on a green frame */
.header .logo-link,
.header.scrolled .logo-link {
  padding: 8px 12px;
  background-color: var(--primary-green);
  border: 1px solid rgba(250, 249, 246, 0.48);
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(27, 138, 67, 0.16);
}

.header .logo-img,
.header.scrolled .logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 0 0.55px rgba(255, 255, 255, 0.96));
}

/* ==========================================================================
   Korrekturen: feste grüne Kopfleiste, freie Zertifikatszeile, Anfrageformular
   ========================================================================== */

/* --- Kopfleiste: bleibt durchgehend dunkelgrün und behält ihre Höhe ------ */
.header {
  background-color: rgba(7, 23, 14, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(197, 168, 128, 0.22);
}

.header.scrolled {
  background-color: rgba(7, 23, 14, 0.94);
  border-bottom: 1px solid rgba(197, 168, 128, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header.scrolled .header-container {
  height: 90px;
}

.header .nav-link,
.header.scrolled .nav-link {
  color: var(--text-light);
}

.header .nav-link:hover,
.header.scrolled .nav-link:hover {
  color: var(--accent-gold);
}

.header .nav-link::after,
.header.scrolled .nav-link::after {
  background-color: var(--accent-gold);
}

/* --- Zertifikatszeile wird nicht mehr von der Kennzahlenleiste verdeckt -- */
.hero {
  padding-bottom: 150px;
}

.hero .container {
  min-height: calc(100vh - 260px) !important;
}

.hero-trust-bar {
  flex-wrap: wrap;
  gap: 16px 32px;
}

.hero-badge-row {
  flex-wrap: wrap;
  gap: 12px 24px;
}

/* --- Anfrageformular ----------------------------------------------------- */
[hidden] {
  display: none !important;
}

.form-label {
  display: block;
  font-size: 0.813rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.req {
  color: var(--accent-gold);
  font-weight: 700;
  margin-left: 2px;
}

.req-legend {
  font-size: 0.8rem;
  color: rgba(247, 243, 232, 0.6);
  margin-bottom: 18px;
}

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(247, 243, 232, 0.5);
  font-size: 0.85em;
}

.field-label-text {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: rgba(247, 243, 232, 0.85);
}

.checkbox-card {
  cursor: pointer;
}

.conditional-fields {
  margin: 18px 0 26px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent-gold);
  background-color: rgba(197, 168, 128, 0.07);
  border-radius: 6px;
}

.conditional-fields[hidden] {
  display: none;
}

.field-hint {
  font-size: 0.8rem;
  color: rgba(247, 243, 232, 0.55);
  margin-top: 8px;
}

.field-error {
  display: block;
  min-height: 0;
  font-size: 0.8rem;
  color: #ff9d8a;
  margin-top: 6px;
}

.field-error:empty {
  display: none;
}

.form-input.is-invalid {
  border-color: #ff9d8a;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23c5a880' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea.form-input {
  resize: vertical;
  min-height: 96px;
  font-family: inherit;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(247, 243, 232, 0.55);
  margin: 18px 0;
}

.form-privacy a {
  color: var(--accent-gold);
  text-decoration: underline;
}

.form-status {
  margin-top: 14px;
  font-size: 0.875rem;
  text-align: center;
  color: rgba(247, 243, 232, 0.7);
}

.form-status.is-error {
  color: #ff9d8a;
}

.form-status:empty {
  display: none;
}

.form-fallback {
  margin-top: 16px;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(247, 243, 232, 0.55);
}

.form-fallback a {
  color: var(--accent-gold);
  text-decoration: underline;
}

.btn-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-success {
  text-align: center;
  padding: 48px 32px;
}

.form-success[hidden] {
  display: none;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(197, 168, 128, 0.16);
  color: var(--accent-gold);
}

.form-success h3 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.form-success p {
  color: rgba(247, 243, 232, 0.75);
  max-width: 46ch;
  margin: 0 auto 10px;
  line-height: 1.65;
}

.form-success-note {
  font-size: 0.85rem;
}

.form-success-note a {
  color: var(--accent-gold);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .header-container {
    height: 72px;
  }

  .header.scrolled .header-container {
    height: 72px;
  }

  .hero {
    padding-bottom: 120px;
  }

  .hero .container {
    min-height: calc(100vh - 230px) !important;
  }

  .form-success {
    padding: 36px 20px;
  }
}

/* --- Zweispaltiges Formular auf breiten Bildschirmen --------------------- */
@media (min-width: 1025px) {
  .calculator-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .calculator-result {
    border-top: none;
    border-left: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: clamp(30px, 3vw, 44px);
  }
}

/* Das rechte Feld enthält jetzt ein Formular statt eines einzelnen Knopfes */
.calc-result-content {
  justify-content: flex-start;
  align-items: stretch;
  text-align: left;
}

.calculator-result .calc-title {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.calculator-result .field-label {
  color: rgba(247, 243, 232, 0.82);
  margin-top: 16px;
}

.calculator-result .field-label:first-of-type {
  margin-top: 0;
}

.calculator-result .property-input-grid .field-label {
  margin-top: 16px;
}

.calc-result-content .btn-gold,
.calc-result-content .btn-submit {
  width: 100% !important;
  max-width: none;
  margin-top: 6px;
}

/* --- Versand über das Mailprogramm des Besuchers ------------------------- */
.form-hint-submit {
  margin-top: 10px;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(247, 243, 232, 0.6);
  line-height: 1.5;
}

.fallback-box {
  margin: 24px auto 0;
  max-width: 560px;
  text-align: left;
  border: 1px solid rgba(197, 168, 128, 0.32);
  border-radius: var(--radius-sm);
  background-color: rgba(197, 168, 128, 0.06);
  padding: 14px 18px;
}

.fallback-box summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-gold);
  font-size: 0.9rem;
}

.fallback-box p {
  margin: 14px 0;
  font-size: 0.875rem;
  max-width: none;
}

.fallback-box a {
  color: var(--accent-gold);
  text-decoration: underline;
}

.fallback-box textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
}

.fallback-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.fallback-actions .btn {
  flex: 1 1 200px;
}

.linklike {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent-gold);
  text-decoration: underline;
  cursor: pointer;
}
