/* 
   Starkdesign Website - Stylesheet
   Design Parameters:
   - Primary Green: #297350
   - Secondary Blue: #6889A6
   - Accent Yellow: #FFF845
   - Heading Font: Fraunces
   - Body Font: Josefin Sans
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

:root {
  --primary-color: #297350;
  --primary-light: #388f67;
  --primary-dark: #1e533a;
  --secondary-color: #6889A6;
  --secondary-light: #83a4c2;
  --secondary-dark: #4f6f8b;
  --accent-color: #FFF845;
  --accent-contrast: #1e533a;
  
  --bg-color: #f7f9f8;
  --bg-dark: #121e18;
  --text-color: #2a332f;
  --text-light: #ffffff;
  --text-muted: #62726b;
  
  --font-headings: 'Fraunces', serif;
  --font-body: 'Josefin Sans', sans-serif;
  
  --max-width: 1200px;
  --header-height: 80px;
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  --border-radius-sm: 4px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: var(--spacing-md);
  position: relative;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: var(--spacing-sm);
}

p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-muted);
}

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

/* Custom underline highlight for accents */
.highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 8px;
  background-color: var(--accent-color);
  z-index: -1;
  transform: rotate(-1deg);
  border-radius: var(--border-radius-sm);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(247, 249, 248, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(41, 115, 80, 0.08);
  transition: var(--transition-smooth);
}

header.scrolled {
  box-shadow: var(--shadow-subtle);
  background-color: rgba(247, 249, 248, 0.95);
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 42px;
  width: auto;
  transition: var(--transition-smooth);
}

header.scrolled .logo img {
  height: 36px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

nav a {
  font-family: var(--font-headings);
  font-weight: 400;
  font-size: 1.1rem;
  text-transform: lowercase;
  color: var(--primary-color);
  padding: var(--spacing-xs) 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

nav a:hover {
  color: var(--primary-dark);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a.active {
  font-weight: 700;
  color: var(--primary-dark);
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Sections */
section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  gap: var(--spacing-xs);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(41, 115, 80, 0.15);
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--accent-contrast);
  font-weight: 700;
}

.btn-accent:hover {
  background-color: #ece337;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 248, 69, 0.2);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + var(--spacing-lg));
  background-color: var(--bg-color);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--spacing-lg);
}

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s var(--transition-smooth) forwards;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInScale 1.2s var(--transition-smooth) forwards;
  animation-delay: 0.2s;
}

.hero-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  position: relative;
  z-index: 2;
}

.hero-bg-shape {
  position: absolute;
  width: 110%;
  height: 110%;
  z-index: 1;
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(41, 115, 80, 0.08);
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 span {
  font-style: italic;
  font-family: var(--font-headings);
  font-weight: 400;
}

.hero .hero-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

/* Carousel/Marquee */
.marquee-container {
  background-color: var(--bg-dark);
  padding: var(--spacing-md) 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-title {
  text-align: center;
  color: var(--secondary-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-sm);
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
  gap: var(--spacing-lg);
  align-items: center;
}

.marquee-content img {
  height: 45px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.65);
  transition: var(--transition-fast);
}

.marquee-content img:hover {
  filter: brightness(0) invert(1) opacity(0.95);
}

/* Service Grid Preview */
.service-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.service-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(41, 115, 80, 0.03);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(41, 115, 80, 0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(41, 115, 80, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background-color: var(--accent-color);
  transform: rotate(5deg) scale(1.05);
}

.service-icon img {
  width: 32px;
  height: 32px;
  transition: var(--transition-smooth);
}

.service-card h3 {
  color: var(--primary-dark);
  margin-bottom: var(--spacing-xs);
}

.service-card p {
  flex-grow: 1;
  font-size: 1rem;
}

/* Portfolio Page & Grid */
.portfolio-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-lg) auto;
  padding-top: calc(var(--header-height) + var(--spacing-md));
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--spacing-md);
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  background-color: #ffffff;
}

.portfolio-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  transition: var(--transition-smooth);
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(41, 115, 80, 0) 40%, rgba(18, 30, 24, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-md);
  opacity: 0;
  transition: var(--transition-smooth);
  color: var(--text-light);
}

.portfolio-item:hover .portfolio-img-wrapper img {
  transform: scale(1.05);
}

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

.portfolio-overlay h3 {
  color: var(--text-light);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin: 0;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  transition-delay: 0.05s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
}

/* About Section & Page */
.about-page-header {
  padding-top: calc(var(--header-height) + var(--spacing-md));
  position: relative;
  background-color: rgba(104, 137, 166, 0.05);
}

.about-grid {
  display: grid;
  grid-template-columns: 4.5fr 5.5fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-portrait-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-portrait-container img {
  max-width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  z-index: 2;
}

.about-details h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.about-details .about-lead {
  font-size: 1.35rem;
  color: var(--primary-dark);
  font-family: var(--font-headings);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: var(--spacing-md);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  border-top: 1px solid rgba(41, 115, 80, 0.1);
  padding-top: var(--spacing-md);
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-family: var(--font-headings);
}

.stat-item p {
  font-size: 0.9rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Leistungen / Services page specific styling */
.services-header {
  padding-top: calc(var(--header-height) + var(--spacing-md));
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.services-list-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.service-row-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  background-color: var(--text-light);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(41, 115, 80, 0.03);
  align-items: center;
  gap: var(--spacing-lg);
}

.service-row-card:nth-child(even) {
  direction: rtl;
}

.service-row-card:nth-child(even) .service-row-content {
  direction: ltr;
}

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

.service-row-graphic img {
  width: 140px;
  height: 140px;
  transition: transform var(--transition-smooth);
}

.service-row-card:hover .service-row-graphic img {
  transform: scale(1.1) rotate(5deg);
}

.service-row-content h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.service-row-content ul {
  list-style: none;
  margin-top: var(--spacing-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xs);
}

.service-row-content ul li {
  font-size: 1.05rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.service-row-content ul li::before {
  content: "✦";
  color: var(--accent-color);
  font-size: 1.2rem;
  text-shadow: 0 0 2px var(--primary-color);
}

/* Call to Action Section */
.cta {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 248, 69, 0.15) 0%, transparent 50%);
}

.cta h2 {
  color: var(--text-light);
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto var(--spacing-md) auto;
  font-size: 1.25rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: var(--spacing-lg) 0 var(--spacing-md) 0;
  border-top: 2px solid var(--primary-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-brand h3 {
  color: var(--text-light);
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
}

.footer-links h4 {
  color: var(--secondary-light);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-headings);
  font-weight: 400;
  text-transform: lowercase;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 4px;
}

.footer-socials {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

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

.footer-socials a:hover {
  background-color: var(--primary-color);
}

.footer-socials img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--spacing-md);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

/* Responsive Styles */
@media (max-width: 992px) {
  :root {
    --spacing-xl: 5rem;
    --spacing-lg: 3rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-md);
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .about-portrait-container {
    max-width: 450px;
    margin: 0 auto;
  }
  
  .service-row-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--spacing-md);
  }
  
  .service-row-card:nth-child(even) {
    direction: ltr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }
  
  nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-color);
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    border-top: 1px solid rgba(41, 115, 80, 0.08);
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }
  
  nav a {
    font-size: 1.5rem;
  }
  
  .menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .service-preview-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-sm);
  }
  
  .service-row-content ul {
    grid-template-columns: 1fr;
  }
}

/* Portfolio Filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.6rem;
  background-color: var(--text-light);
  border: 1px solid rgba(41, 115, 80, 0.1);
  color: var(--primary-color);
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 500;
  text-transform: lowercase;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  background-color: rgba(41, 115, 80, 0.05);
  border-color: var(--primary-color);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

/* Portfolio Item Display Animation */
.portfolio-item.hidden {
  display: none;
}

/* Portfolio Modal Details */
.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 30, 24, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  overflow-y: auto;
  padding: var(--spacing-lg) 0;
}

.portfolio-modal.active {
  display: block;
  opacity: 1;
}

.modal-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  color: var(--text-light);
}

.close-modal-btn {
  position: absolute;
  top: -15px;
  right: var(--spacing-md);
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 3rem;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 2100;
}

.close-modal-btn:hover {
  color: var(--accent-color);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: var(--spacing-md);
}

.modal-header h2 {
  color: var(--text-light);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-xs);
}

.modal-category {
  color: var(--secondary-light);
  font-family: var(--font-headings);
  font-size: 1.1rem;
  text-transform: lowercase;
  display: inline-block;
  margin-bottom: var(--spacing-sm);
}

.modal-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-lg);
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.modal-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  background-color: rgba(255, 255, 255, 0.02);
}

/* PDF Layout Realignment Styles (Page 9 & 11) */

.pdf-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background-color: rgba(247, 249, 248, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(41, 115, 80, 0.08);
  transition: var(--transition-smooth);
}

.nav-container-pdf {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.nav-links-left {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-start;
}

.nav-links-left a {
  font-family: var(--font-headings);
  font-weight: 400;
  font-size: 1.1rem;
  text-transform: lowercase;
  color: var(--primary-color);
  position: relative;
  padding: var(--spacing-xs) 0;
  transition: var(--transition-fast);
}

.nav-links-left a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.nav-links-left a:hover {
  color: var(--primary-dark);
}

.nav-links-left a:hover::after {
  width: 100%;
}

.nav-center-social {
  display: flex;
  justify-content: center;
}

.nav-center-social img {
  height: 24px;
  width: auto;
  transition: var(--transition-fast);
}

.nav-center-social a:hover img {
  opacity: 0.7;
}

.nav-right-logo {
  display: flex;
  justify-content: flex-end;
}

.nav-logo-svg {
  height: 32px;
  width: auto;
}

/* Helper Classes */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* Hero Section */
.hero-pdf {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.hero-container-pdf {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 2;
}

.hero-shapes-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.hero-shapes-svg line,
.hero-shapes-svg circle,
.hero-shapes-svg rect,
.hero-shapes-svg path {
  pointer-events: auto;
  transform-origin: center;
  cursor: pointer;
  will-change: transform;
  transition: stroke 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              fill 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-shapes-svg line:hover,
.hero-shapes-svg circle:hover,
.hero-shapes-svg rect:hover,
.hero-shapes-svg path:hover {
  stroke: var(--accent-color) !important;
}

.hero-shapes-svg circle:hover,
.hero-shapes-svg rect:hover {
  fill: var(--accent-color) !important;
  stroke: none !important;
}

.hero-portrait-wrapper-pdf {
  position: absolute;
  bottom: 0;
  right: max(6%, calc((100% - var(--max-width)) / 2 + var(--spacing-md)));
  width: 430px; /* Made larger, touching bottom and aligned to grid container edge */
  z-index: 2;
  pointer-events: none;
}

.hero-portrait-pdf {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content-pdf {
  width: fit-content; /* Bounding box only covers actual text width */
  max-width: 600px;
  text-align: left;
  position: relative;
  z-index: 4;
}

.hero-title-pdf {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary-color);
  font-size: clamp(2rem, 4.2vw, 3.8rem); /* Slightly smaller so it fits in a single line */
  line-height: 1.15;
  margin-bottom: 1.5rem;
  white-space: nowrap; /* Keep it strictly on one line */
}

.hero-subtitle-pdf {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.75rem, 1.3vw, 1.0rem); /* Smaller font size to fit on a single line */
  color: var(--primary-color);
  letter-spacing: 0.12em; /* Slightly tighter letter spacing */
  margin-bottom: 2rem;
  line-height: 1.4;
  white-space: nowrap; /* Keep it strictly on one line */
}

.hero-description-pdf {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.btn-pdf-hero {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 50px;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-pdf-hero:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Leistungen Section */
.leistungen-section-pdf {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: var(--spacing-xl) 0;
}

.section-title-pdf {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text-light);
  margin-bottom: 4rem;
  letter-spacing: 0.05em;
}

.section-title-pdf.dark {
  color: var(--primary-color);
}

.leistungen-grid-pdf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem 3rem;
}

.leistung-card-pdf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.leistung-icon-pdf {
  width: 220px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.leistung-card-pdf h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.leistung-card-pdf p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* Portfolio Section */
.portfolio-section-pdf {
  background-color: #ffffff;
  padding: var(--spacing-xl) 0;
}

.portfolio-carousel-pdf {
  position: relative;
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-container-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
}

.carousel-slide-pdf {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.carousel-slide-pdf img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.slide-active-pdf {
  width: 950px;
  aspect-ratio: 4/3;
  z-index: 10;
  transform: scale(1);
  opacity: 1;
}

.slide-prev-pdf, .slide-next-pdf {
  width: 480px;
  aspect-ratio: 4/3;
  opacity: 0.4;
  cursor: pointer;
  transform: scale(0.9);
}

.slide-hidden-pdf {
  display: none !important;
}

.carousel-dots-pdf {
  display: flex;
  gap: 0.6rem;
  margin-top: 2rem;
}

.dot-pdf {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: transparent;
  transition: var(--transition-fast);
}

.dot-pdf.active {
  background-color: var(--primary-color);
}

.portfolio-action-pdf {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-pdf-portfolio {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  background-color: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 50px;
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-pdf-portfolio:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Kunden Section */
.kunden-section-pdf {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: var(--spacing-xl) 0;
}

.kunden-grid-pdf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 4rem 3rem;
  align-items: center;
  justify-items: center;
}

.kunden-logo-item-pdf {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 120px;
}

.kunden-logo-item-pdf img {
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.kunden-logo-item-pdf img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Scaled up logos to match Lexware's prominent size (Desktop) */
.logo-brody img {
  max-height: 80px;
  max-width: 250px;
}

.logo-lexware img {
  max-height: 80px;
  max-width: 270px;
}

.logo-craxler img {
  max-height: 75px;
  max-width: 180px;
}

.logo-alex img {
  max-height: 75px;
  max-width: 240px;
}

.logo-lynn img {
  max-height: 75px;
  max-width: 190px;
}

.logo-baumstark img {
  max-height: 75px;
  max-width: 220px;
}

/* Grid Area positions (Desktop) */
@media (min-width: 769px) {
  .logo-brody { grid-column: 1; grid-row: 1; }
  .logo-lexware { grid-column: 2; grid-row: 1; }
  .logo-craxler { grid-column: 3; grid-row: 1; }
  .logo-alex { grid-column: 1; grid-row: 2; }
  .logo-lynn { grid-column: 2; grid-row: 2; }
  .logo-baumstark { grid-column: 3; grid-row: 2; }
}

/* Footer Section */
.footer-pdf {
  width: 100%;
  background-color: transparent !important;
  padding: 0 !important;
  border-top: none !important;
}

.footer-upper-pdf {
  background-color: #ffffff;
  border-top: 1px solid rgba(41, 115, 80, 0.08);
  padding: 2.5rem 0;
}

.footer-upper-container-pdf {
  display: flex;
  justify-content: flex-end;
}

.footer-large-logo-pdf {
  height: 60px;
  width: auto;
}

.footer-lower-pdf {
  background-color: var(--primary-color);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-links-pdf {
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
}

.footer-links-pdf a {
  color: var(--text-light);
  margin: 0 0.5rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links-pdf a:hover {
  color: var(--accent-color);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .leistungen-grid-pdf {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .pdf-header {
    height: 75px;
  }
  
  .nav-container-pdf {
    grid-template-columns: 1fr auto;
    gap: var(--spacing-sm);
  }
  
  .nav-links-left {
    gap: var(--spacing-sm);
  }
  
  .nav-links-left a {
    font-size: 0.95rem;
  }
  
  .nav-logo-svg {
    height: 26px;
  }

  /* Hero Mobile */
  .hero-pdf {
    min-height: 75vw;
    padding-top: 75px;
    padding-bottom: 0;
    background-image: none;
    position: relative;
    overflow: hidden;
    display: block;
  }
  
  .hero-container-pdf {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: flex-start;
    padding-bottom: 0;
  }

  .hero-portrait-wrapper-pdf {
    position: absolute;
    bottom: 0;
    right: -10px;
    width: 52vw;
    max-width: 260px;
    z-index: 2;
    padding-top: 0;
  }

  .hero-portrait-pdf {
    width: 100%;
    height: auto;
  }
  
  .hero-content-pdf {
    margin-top: 1.5rem;
    position: relative;
    z-index: 4;
    max-width: 58vw;
  }
  
  .hero-title-pdf {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.1;
    white-space: normal;
    margin-bottom: 0.8rem;
  }
  
  .hero-subtitle-pdf {
    font-size: clamp(0.65rem, 2.8vw, 0.85rem);
    letter-spacing: 0.05em;
    white-space: normal;
    line-height: 1.7;
    margin-bottom: 1rem;
  }

  /* Helper Classes */
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: block !important;
  }

  /* Grid layouts */
  .leistungen-grid-pdf {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .leistung-card-pdf {
    align-items: center;
    text-align: center;
  }
  
  /* Carousel Mobile */
  .carousel-container-pdf {
    gap: 1rem;
  }
  
  .slide-active-pdf {
    width: 340px;
  }
  
  .slide-prev-pdf, .slide-next-pdf {
    width: 130px;
  }
  
  /* Kunden Grid Mobile */
  .kunden-grid-pdf {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 2.5rem 1.5rem;
  }
  
  .kunden-logo-item-pdf {
    height: 70px;
  }

  /* Scaled up logos for Mobile */
  .logo-brody img {
    max-height: 55px;
    max-width: 175px;
  }

  .logo-lexware img {
    max-height: 58px;
    max-width: 185px;
  }

  .logo-craxler img {
    max-height: 52px;
    max-width: 130px;
  }

  .logo-alex img {
    max-height: 52px;
    max-width: 165px;
  }

  .logo-lynn img {
    max-height: 52px;
    max-width: 135px;
  }

  .logo-baumstark img {
    max-height: 52px;
    max-width: 155px;
  }
  
  /* Grid Area positions (Mobile) */
  .logo-brody { grid-column: 1; grid-row: 1; }
  .logo-lexware { grid-column: 2; grid-row: 1; }
  .logo-alex { grid-column: 1; grid-row: 2; }
  .logo-lynn { grid-column: 2; grid-row: 2; }
  .logo-baumstark { grid-column: 1; grid-row: 3; }
  .logo-craxler { grid-column: 2; grid-row: 3; }

  /* Footer Mobile */
  .footer-upper-container-pdf {
    justify-content: center;
  }
  
  .footer-large-logo-pdf {
    height: 45px;
  }
}

/* Legal Pages Styling */
.legal-page-pdf {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.legal-main-container-pdf {
  padding: 8rem 0 4rem 0;
}

.legal-title-pdf {
  font-family: var(--font-headings);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--primary-color);
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 1rem;
}

.legal-section-pdf {
  margin-bottom: 3rem;
}

.legal-section-pdf h2 {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(41, 115, 80, 0.15);
  padding-bottom: 0.5rem;
}

.legal-section-pdf h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-section-pdf h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-color);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-section-pdf p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.legal-section-pdf ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.legal-section-pdf li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.legal-section-pdf a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.legal-section-pdf a:hover {
  color: var(--primary-light);
}

.legal-note-pdf {
  background-color: rgba(167, 58, 58, 0.05);
  border-left: 4px solid #a73a3a;
  padding: 1rem;
  margin: 1.5rem 0;
}

.legal-note-pdf em {
  color: #a73a3a;
  font-style: normal;
  font-weight: 500;
}

.legal-source-pdf {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4rem;
  border-top: 1px solid rgba(41, 115, 80, 0.08);
  padding-top: 1.5rem;
}

.legal-source-pdf a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* About Page (Ueber mich) Layouts - PDF Compliant */
.about-page-body-pdf {
  background-color: #F9F6F0 !important;
  color: var(--primary-color) !important;
}

.about-page-body-pdf .pdf-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  padding: 1.5rem 0;
}

.about-page-body-pdf .nav-links-left a {
  color: #ffffff !important;
}

.about-page-body-pdf .nav-links-left a.active,
.about-page-body-pdf .nav-links-left a:hover {
  color: #FFF845 !important;
  border-bottom: 2px solid #FFF845 !important;
}

.about-page-body-pdf .nav-right-logo img {
  filter: brightness(0) invert(1);
}

.about-hero-section-pdf {
  position: relative;
  background-color: #000000 !important;
  background-image: url('./Header_Bild.jpg?v=20') !important;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
  min-height: 650px;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 1rem);
  padding-bottom: 3rem;
  box-sizing: border-box;
}

.about-hero-container-pdf {
  position: relative;
  z-index: 10;
  width: 100%;
}

.about-hero-text-col-pdf {
  max-width: 550px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 10;
}

.about-hero-tag-pdf {
  font-family: 'Josefin Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff !important;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  display: block;
}

.about-hero-title-pdf {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.5rem;
  color: #ffffff !important;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: bold;
  display: block;
}

.about-hero-text-pdf {
  font-family: 'Josefin Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #ffffff !important;
  margin-bottom: 2.5rem;
  max-width: 540px;
  display: block;
}

.btn-pdf-hero-about {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background-color: transparent;
  color: #FFF845 !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 50px;
  border: 1.5px solid #FFF845 !important;
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-pdf-hero-about:hover {
  background-color: #FFF845 !important;
  color: #000000 !important;
  transform: translateY(-2px);
}


.about-ausbildung-section-pdf {
  border-top: 1.5px solid var(--primary-color);
  padding: 6rem 0;
  background-color: #ffffff !important;
  color: #000000 !important;
}

.about-ausbildung-grid-pdf {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
}

.about-section-title-pdf {
  font-family: var(--font-headings);
  font-size: 2.8rem;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.about-ausbildung-section-pdf .about-section-title-pdf {
  color: #000000 !important;
}

.about-section-intro-pdf {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.about-ausbildung-section-pdf .about-section-intro-pdf {
  color: #000000 !important;
}

.about-illustration-container-pdf {
  width: 100%;
  max-width: 420px;
}

.about-illustration-container-pdf img {
  width: 100%;
  height: auto;
  display: block;
}

.about-ausbildung-illustration-pdf {
  filter: brightness(0) !important;
  width: 100%;
  height: auto;
  display: block;
}

.timeline-pdf {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  padding-top: 1.5rem;
}

.timeline-item-pdf {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-year-pdf {
  font-family: var(--font-headings);
  font-size: 1.65rem;
  color: var(--primary-color);
  font-weight: bold;
}

.about-ausbildung-section-pdf .timeline-year-pdf {
  color: #000000 !important;
}

.timeline-content-pdf h3 {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  color: var(--primary-color);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.about-ausbildung-section-pdf .timeline-content-pdf h3 {
  color: #000000 !important;
}

.timeline-content-pdf p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--primary-color);
  opacity: 0.85;
}

.about-ausbildung-section-pdf .timeline-content-pdf p {
  color: #000000 !important;
  opacity: 0.8 !important;
}

/* About Skills Section (Black Theme) */
.about-skills-section-pdf {
  background-color: #000000 !important;
  color: #ffffff !important;
  padding: 6rem 0 3rem 0;
}

.about-skills-title-pdf {
  font-family: var(--font-headings);
  font-size: 2.8rem;
  color: #ffffff !important;
  text-transform: uppercase;
  margin-bottom: 4rem;
  font-weight: bold;
}

.about-skills-grid-2x2-pdf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem 6rem;
}

.about-skill-item-pdf {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-skill-hand-pdf {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90px;
}

.about-skill-hand-pdf img {
  width: 100%;
  height: auto;
  max-height: 180px;
  display: block;
}

.about-skill-content-pdf h3 {
  font-family: var(--font-headings);
  font-size: 1.65rem;
  color: #ffffff !important;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.about-skill-content-pdf p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff !important;
  opacity: 0.9;
}

.skills-footer-logo-pdf {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-right: 2rem;
}

.skills-footer-logo-pdf img {
  width: 260px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* About Footer (Simple White Bar) */
.about-footer-pdf {
  background-color: #ffffff !important;
  padding: 2rem 0;
  text-align: center;
  border-top: none !important;
}

.about-footer-links-pdf {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: bold;
}

.about-footer-links-pdf a {
  color: #000000 !important;
  text-decoration: none;
  transition: var(--transition-fast);
}

.about-footer-links-pdf a:hover {
  color: var(--primary-color) !important;
}

/* Responsive Overrides for About Page */
@media (max-width: 1024px) {
  .about-skills-grid-2x2-pdf {
    gap: 4rem 4rem;
  }
}

@media (min-width: 769px) {
  .about-hero-mobile-photo-pdf {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .about-hero-section-pdf {
    min-height: auto !important;
    background-image: none !important;
    background-color: #000000 !important;
    flex-direction: column !important;
    padding-top: calc(var(--header-height) + 2rem) !important;
    padding-bottom: 0 !important;
  }

  .about-hero-container-pdf {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .about-hero-text-col-pdf {
    align-items: center !important;
    text-align: center !important;
    max-width: 100% !important;
    padding: 0 1rem;
  }

  .about-hero-tag-pdf {
    font-size: 0.8rem !important;
    margin-bottom: 1rem !important;
  }

  .about-hero-title-pdf {
    font-size: 2.4rem !important;
    margin-bottom: 1rem !important;
  }

  .about-hero-text-pdf {
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
  }

  .about-hero-mobile-photo-pdf {
    display: block !important;
    width: 100% !important;
    max-height: 440px !important;
    object-fit: cover !important;
    object-position: center top !important;
    margin-top: 1.5rem !important;
  }

  .about-ausbildung-grid-pdf {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-illustration-container-pdf {
    margin: 0 auto;
    max-width: 280px;
  }

  .about-skills-grid-2x2-pdf {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-skill-item-pdf {
    grid-template-columns: 70px 1fr;
    gap: 1.5rem;
  }

  .about-skill-hand-pdf {
    width: 70px;
  }

  .skills-footer-logo-pdf {
    justify-content: center;
    padding-right: 0;
    margin-top: 3rem;
  }

  .skills-footer-logo-pdf img {
    width: 180px;
  }
}

/* Services Page Styles (PDF Page 14 Desktop & Page 15 Mobile Compliant) */

.leistungen-page-body-pdf .pdf-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  padding: 1.5rem 0;
  border-bottom: none;
}

.leistungen-page-body-pdf .nav-links-left a {
  color: #ffffff !important;
}

.leistungen-page-body-pdf .nav-links-left a.active,
.leistungen-page-body-pdf .nav-links-left a:hover {
  color: #FFF845 !important;
  border-bottom: 2px solid #FFF845 !important;
}

.leistungen-page-body-pdf .nav-right-logo img {
  filter: brightness(0) invert(1);
}

.services-hero-section-pdf {
  position: relative;
  background-color: #297350 !important;
  color: #ffffff !important;
  min-height: 550px;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  overflow: hidden;
  box-sizing: border-box;
}

.services-hero-container-pdf {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.services-hero-text-col-pdf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.services-hero-title-pdf {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.8rem;
  color: #ffffff !important;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.services-hero-underline-svg {
  display: block;
  width: 140px;
  height: auto;
  margin-top: 0.4rem;
}

.services-hero-subtitle-pdf {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #ffffff !important;
  margin-bottom: 2.5rem;
  max-width: 520px;
  opacity: 0.95;
}

.btn-pdf-hero-services {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background-color: transparent;
  color: #FFF845 !important;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 50px;
  border: 1.5px solid #FFF845 !important;
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-pdf-hero-services:hover {
  background-color: #FFF845 !important;
  color: #297350 !important;
  transform: translateY(-2px);
}

.services-hero-illustration-col-pdf {
  display: flex;
  justify-content: center;
  align-items: center;
}

.services-hero-illustration-svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
}

/* Service Blocks (Alternating Themes) */

.service-block-pdf {
  padding: 6rem 0;
  position: relative;
}

.service-block-pdf.theme-green {
  background-color: #297350 !important;
  color: #ffffff !important;
}

.service-block-pdf.theme-white {
  background-color: #ffffff !important;
  color: #000000 !important;
}

.service-block-container-pdf {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.service-block-container-pdf.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.service-block-container-pdf.reverse .service-icon-col-pdf {
  order: 2;
}

.service-block-container-pdf.reverse .service-content-col-pdf {
  order: 1;
}

.service-icon-col-pdf {
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-icon-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.service-block-pdf.theme-green .service-icon-svg {
  filter: brightness(0) invert(1) !important;
}

.service-block-pdf.theme-white .service-icon-svg {
  filter: none !important;
}

.service-content-col-pdf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-title-pdf {
  font-family: 'Josefin Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem !important;
  line-height: 1.2 !important;
}

.service-block-pdf.theme-green .service-title-pdf {
  color: #ffffff !important;
}

.service-block-pdf.theme-white .service-title-pdf {
  color: #297350 !important;
}

.service-block-pdf.theme-green .service-desc-pdf {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #ffffff !important;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.service-block-pdf.theme-white .service-desc-pdf {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #000000 !important;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.service-block-pdf.theme-green .service-link-pdf {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: #FFF845 !important;
  text-decoration: none;
  border-bottom: 2px solid #FFF845;
  padding-bottom: 2px;
  transition: var(--transition-fast);
}

.service-block-pdf.theme-white .service-link-pdf {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: #297350 !important;
  text-decoration: none;
  border-bottom: 2px solid #297350;
  padding-bottom: 2px;
  transition: var(--transition-fast);
}

.service-link-pdf:hover {
  opacity: 0.8;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .services-hero-section-pdf {
    padding-top: calc(var(--header-height) + 2rem) !important;
    padding-bottom: 3rem !important;
    min-height: auto !important;
  }

  .services-hero-container-pdf {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    text-align: center;
  }

  .services-hero-text-col-pdf {
    align-items: center !important;
    text-align: center !important;
  }

  .services-hero-title-pdf {
    font-size: 2.6rem !important;
  }

  .services-hero-subtitle-pdf {
    font-size: 1.05rem !important;
  }

  .services-hero-illustration-svg {
    max-width: 260px !important;
    margin: 0 auto;
  }

  .service-block-pdf {
    padding: 4rem 0 !important;
  }

  .service-block-container-pdf,
  .service-block-container-pdf.reverse {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .service-block-container-pdf.reverse .service-icon-col-pdf {
    order: 1 !important;
  }

  .service-block-container-pdf.reverse .service-content-col-pdf {
    order: 2 !important;
  }

  .service-icon-svg {
    max-width: 220px !important;
    margin: 0 auto;
  }

  .service-content-col-pdf {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .service-title-pdf {
    font-size: 2rem !important;
  }

  .service-desc-pdf {
    font-size: 1.05rem !important;
  }
}

/* Portfolio Page Styles (PDF Page 1 Desktop & Page 2 Mobile Compliant) */

.portfolio-page-body-pdf .pdf-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  padding: 1.5rem 0;
  border-bottom: none;
}

.portfolio-page-body-pdf .nav-links-left a {
  color: #ffffff !important;
}

.portfolio-page-body-pdf .nav-links-left a.active,
.portfolio-page-body-pdf .nav-links-left a:hover {
  color: #FFF845 !important;
  border-bottom: 2px solid #FFF845 !important;
}

.portfolio-page-body-pdf .nav-right-logo img {
  filter: brightness(0) invert(1);
}

.portfolio-hero-section-pdf {
  position: relative;
  background-color: #297350 !important;
  color: #ffffff !important;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 3.5rem;
  overflow: hidden;
  box-sizing: border-box;
}

.portfolio-hero-container-pdf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.portfolio-hero-title-pdf {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.8rem;
  color: #ffffff !important;
  margin-bottom: 1.2rem;
  line-height: 1.1;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.portfolio-hero-underline-svg {
  display: block;
  width: 140px;
  height: auto;
  margin-top: 0.4rem;
}

.portfolio-hero-subtitle-pdf {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.2rem;
  line-height: 1.65;
  color: #ffffff !important;
  opacity: 0.95;
  max-width: 680px;
}

/* Filter Bar */

.portfolio-filter-section-pdf {
  background-color: #ffffff;
  padding: 2.5rem 0 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.portfolio-filter-bar-pdf {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.portfolio-filter-btn-pdf {
  background: none;
  border: none;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #297350;
  cursor: pointer;
  padding-bottom: 4px;
  position: relative;
  transition: var(--transition-fast);
}

.portfolio-filter-btn-pdf.active,
.portfolio-filter-btn-pdf:hover {
  color: #297350;
  font-weight: 700;
  border-bottom: 2.5px solid #297350;
}

/* Portfolio Cards Grid */

.portfolio-grid-section-pdf {
  background-color: #ffffff;
  padding: 3.5rem 0 6rem 0;
}

.portfolio-grid-pdf {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem 3rem;
}

.portfolio-card-pdf {
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card-link-pdf {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.portfolio-card-image-wrapper-pdf {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f4f7f5;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.portfolio-card-img-pdf {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card-pdf:hover .portfolio-card-img-pdf {
  transform: scale(1.05);
}

.portfolio-card-title-pdf {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #297350 !important;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.portfolio-card-category-pdf {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem;
  color: #555555 !important;
  opacity: 0.85;
}

/* Responsive Mobile Rules (Page 2 Compliant) */

@media (max-width: 768px) {
  .portfolio-hero-title-pdf {
    font-size: 2.6rem !important;
  }

  .portfolio-hero-subtitle-pdf {
    font-size: 1.05rem !important;
  }

  .portfolio-filter-bar-pdf {
    gap: 1.2rem !important;
  }

  .portfolio-filter-btn-pdf {
    font-size: 1rem !important;
  }

  .portfolio-grid-pdf {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .portfolio-card-image-wrapper-pdf {
    height: 280px !important;
  }
}

