/* ============================================
   MOBILE-FIRST RESPONSIVE FOUNDATION
   ============================================ */

/* Root Variables for consistent sizing */
:root {
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  --touch-target-min: 44px;
  --border-radius: 1.2rem;
  --transition-speed: 0.2s;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Improve touch targets for mobile */
button, a, input, textarea, select {
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  -webkit-tap-highlight-color: rgba(255, 184, 0, 0.2);
}

/* Prevent text overflow */
body {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Remove any image shadow globally */
  box-shadow: none !important;
  filter: none !important;
}

/* Full-bleed utility: centers a 100vw-wide block within any container */
.full-bleed {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

/* Beat page-level rules like `main#main-content > section { padding-left: clamp(...) !important; }` */
main#main-content > .full-bleed {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100vw;
  max-width: 100vw;
  /* Robust centering independent of ancestor positioning */
  left: auto;
  right: auto;
  transform: none;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Ensure contained media fills the bleed area without extra styles */
.full-bleed > img,
.full-bleed > picture,
.full-bleed > video,
.full-bleed > canvas {
  width: 100vw;
  max-width: 100vw;
  height: auto;
  margin: 0;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Helper to strip any residual shadow from elements */
.no-shadow { box-shadow: none !important; filter: none !important; }

/* Mobile-only full-bleed helper for media inside constrained sections */
@media (max-width: 600px) {
  .mobile-full-bleed {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    /* Robust centering against padded containers */
    left: auto;
    right: auto;
    transform: none;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .mobile-full-bleed > img,
  .mobile-full-bleed > picture,
  .mobile-full-bleed > video,
  .mobile-full-bleed > canvas {
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 3px solid rgba(255, 184, 0, 0.6);
  outline-offset: 2px;
}

/* Skip to main content link for accessibility */
.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1rem 2rem;
  background: #ffb800;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.skip-to-main:focus {
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
}

@media (max-width: 1024px) {
  .portfolio-carousel {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  /* Consistent header padding and burger spacing across all pages */
  .main-header nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem clamp(2.5rem, 7vw, 3.5rem) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .main-header .logo {
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .main-header .mobile-nav-toggle {
    width: 48px !important;
    height: 48px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .portfolio-carousel {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  /* Global mobile header gutters match content side padding */
  .main-header nav {
    padding-left: clamp(2.5rem, 7vw, 3.5rem) !important;
    padding-right: clamp(2.5rem, 7vw, 3.5rem) !important;
    width: 100% !important;
    justify-content: space-between !important;
    display: flex !important;
    align-items: center !important;
  }

  .main-header .mobile-nav-toggle {
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}
@media (max-width: 480px) {
  .portfolio-carousel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.contact {
  margin-bottom: 0 !important;
  background: #fff;
}
.main-footer {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: 80px;
  padding-right: 80px;
  padding-bottom: 2rem;
  background: #9ba89c;
}
/* Override global touch-target min-height for footer links only */
.main-footer a {
  min-height: 0 !important;
}
.footer-socials a[href*="instagram"] {
  display: none !important;
}
/* Moderner, responsiver Footer */
.footer-row {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}
.footer-block {
  min-width: 180px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  text-align: left;
}
.footer-title {
  font-size: 0.95em;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5em;
  color: #fff;
  text-transform: uppercase;
}
/* Portfolio Styles */
.portfolio-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
  padding: 0 80px;
  box-sizing: border-box;
}

.portfolio-item {
    border-radius: 1.2rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    height: auto;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.portfolio-item > a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.portfolio-thumb {
    position: relative;
    width: 100%;
    height: 250px;
    transition: background 0.3s, filter 0.3s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 1.2rem 1.2rem 0 0;
    background-size: cover;
    background-position: center;
}

.portfolio-subtitle-hover {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0;
  background: #9ba89c;
    text-align: center;
    padding: 1.2rem;
    transition: opacity 0.3s;
    pointer-events: none;
}

.portfolio-item:hover .portfolio-thumb,
.portfolio-item:focus-within .portfolio-thumb {
    background: #9ba89c !important;
    filter: unset !important;
}

.portfolio-item:hover .portfolio-subtitle-hover,
.portfolio-item:focus-within .portfolio-subtitle-hover {
    opacity: 1;
}

.portfolio-info {
    padding: 1.2rem 1rem 1.2rem 1rem;
    background: #fff;
    border-radius: 0 0 1.2rem 1.2rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.portfolio-info h3 {
    margin: 0 0 0.5em 0;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.portfolio-info p {
    margin: 0;
    font-family: 'Nunito', Arial, sans-serif;
}

.portfolio-category {
    display: none;
}

/* Portfolio Responsive */
@media (max-width: 1024px) {
  .portfolio-carousel {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 clamp(30px, 5vw, 80px);
  }
  
  .portfolio-item {
    width: 100%;
    min-width: 200px;
  }
  
  .portfolio-info {
    min-height: 120px;
  }
}

@media (max-width: 768px) {
  .portfolio-carousel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 20px;
  }
  
  .portfolio-item {
    width: 100%;
    max-width: 100%;
    min-width: auto;
  }
  
  .portfolio-thumb {
    height: 250px;
  }
  
  .portfolio-info {
    padding: 1.5rem 1.25rem;
    min-height: auto;
  }
  
  .portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .portfolio-info p {
    font-size: 1rem;
    line-height: 1.5;
  }
}

@media (max-width: 600px) {
  .portfolio-carousel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 15px;
  }
  
  .portfolio-item {
    width: 100%;
  }
  
  .portfolio-thumb {
    height: 220px;
  }
  
  .portfolio-info {
    padding: 1.25rem 1rem;
  }
  
  .portfolio-info h3 {
    font-size: 1.15rem;
  }
  
  .portfolio-info p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .portfolio-carousel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 10px;
  }
  
  .portfolio-item {
    width: 100%;
  }
  
  .portfolio-thumb {
    height: 200px;
  }
  
  .portfolio-info {
    padding: 1rem 0.85rem;
    min-height: auto;
  }
  
  .portfolio-info h3 {
    font-size: 1.1rem;
  }
  
  .portfolio-info p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .portfolio-subtitle-hover {
    font-size: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 360px) {
  .portfolio-carousel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0 10px;
  }
  
  .portfolio-item {
    width: 100%;
  }
  
  .portfolio-thumb {
    height: 180px;
  }
  
  .portfolio-info {
    padding: 1rem;
    min-height: auto;
  }
  
  .portfolio-info h3 {
    font-size: 1.05rem;
  }
  
  .portfolio-info p {
    font-size: 0.85rem;
  }
}
@media (max-width: 768px) {
  .main-footer {
    padding: 2rem 1.5rem;
  }
  
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
  }
  
  .footer-block {
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    gap: 0;
    /* Force zero vertical spacing between items */
    display: grid;
    grid-auto-flow: row;
    grid-auto-rows: min-content;
    row-gap: 0;
  }
  
  .footer-block:last-child {
    border-bottom: none;
  }
  
  .footer-block a {
    line-height: 0.9;
    margin: 0;
    padding: 0;
    display: block;
  }
  
  .footer-title {
    margin-bottom: 0.8rem;
    font-size: 1rem;
  }
  
  .footer-socials {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .main-footer {
    padding: 1.5rem 1rem;
  }
  
  .footer-row {
    gap: 1.5rem;
  }
  
  .footer-title {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }
  
  .footer-block {
    font-size: 0.9rem;
    gap: 0;
    /* Ensure no gaps between links on very small screens */
    display: grid;
    grid-auto-flow: row;
    grid-auto-rows: min-content;
    row-gap: 0;
  }
  
  .footer-block a {
    line-height: 0.9;
    margin: 0;
    padding: 0;
    display: block;
  }
}
/* Kontaktseite: Überschrift, Button, Whitespace, Profilbild */
.contact-headline {
  font-size: 2.3rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #ffb800;
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
  text-align: left;
}
.contact-form {
  margin-top: 1.5rem;
  gap: 1.5rem;
}
.btn-primary {
  background: linear-gradient(90deg,#ff9900 60%,#ffb800 100%);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 1.1rem 2.8rem;
  font-size: 1.18rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255,153,0,0.10);
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.03em;
  margin-top: 1.2rem;
  min-width: 44px;
  min-height: 44px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(255, 184, 0, 0.13);
  outline: none;
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.profile-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin: 0 auto 2.5rem auto;
}
.profile-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 4px solid #ff9900;
  margin-bottom: 0.7rem;
  transition: transform 0.18s, box-shadow 0.18s;
  will-change: transform;
  cursor: pointer;
}
.profile-img:hover,
.profile-img:focus,
.profile-img:active {
  transform: scale(1.06);
  box-shadow: 0 12px 40px rgba(255,153,0,0.18);
  outline: 2px solid #ff9900;
}
@media (max-width: 700px) {
  .contact-container {
    flex-direction: column;
    gap: 2rem;
    padding: clamp(1rem, 3vw, 2rem);
  }
  
  .profile-block {
    margin: 0 auto 1.5rem auto;
    width: 100%;
    align-items: center;
  }
  
  .profile-img {
    width: clamp(100px, 30vw, 140px);
    height: clamp(100px, 30vw, 140px);
    margin: 0 auto;
  }
  
  .contact-headline {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    width: 100%;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    font-size: 16px; /* Prevents iOS zoom */
  }
  
  .btn-primary {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .about-hero {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem clamp(1rem, 3vw, 2rem);
  }
  
  .about-main-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
  }
  
  .about-hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    text-align: center;
  }
  
  .about-profile-img {
    margin: 0 auto 1.5rem auto;
    width: clamp(200px, 60vw, 300px);
    height: clamp(200px, 60vw, 300px);
  }
  
  .about-hero-content {
    text-align: center;
  }
  
  .about-section {
    padding: 1.5rem clamp(1rem, 3vw, 2rem);
  }
  
  .about-section h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }
  
  .testimonial-carousel {
    padding: 1.5rem 1rem 2rem 1rem;
    min-height: 160px;
    max-width: 100%;
  }
  
  .testimonial-quote {
    font-size: clamp(1rem, 3vw, 1.15rem);
    padding-left: 1.5rem;
  }
  
  .testimonial-prev,
  .testimonial-next {
    width: 40px;
    height: 40px;
  }
  
  .testimonial-prev {
    left: -20px;
  }
  
  .testimonial-next {
    right: -20px;
  }
}

@media (max-width: 600px) {
  .about-hero {
    padding: 1.25rem 1rem;
  }
  
  .about-profile-img {
    width: clamp(180px, 50vw, 240px);
    height: clamp(180px, 50vw, 240px);
  }
  
  .about-section {
    padding: 1.25rem 1rem;
  }
  
  .about-section p {
    font-size: clamp(0.95rem, 3vw, 1.08rem);
  }
  
  .testimonial-carousel {
    padding: 1.25rem 0.75rem 1.75rem 0.75rem;
  }
  
  .about-cta-section {
    margin: 2rem 0 1.5rem 0;
  }
  
  .about-cta-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: clamp(1rem, 3vw, 1.25rem);
  }
}

@media (max-width: 480px) {
  .about-hero {
    padding: 1rem 0.75rem;
  }
  
  .about-main-title {
    font-size: 1.5rem;
  }
  
  .about-profile-img {
    width: 160px;
    height: 160px;
  }
  
  .about-section {
    padding: 1rem 0.75rem;
  }
  
  .testimonial-initials {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  
  .testimonial-prev,
  .testimonial-next {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}
/* Call-to-Action am Seitenende */
.about-cta-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4rem 0 2.5rem 0;
}
.about-cta-btn {
  background: linear-gradient(90deg,#ff9900 60%,#e07a5f 100%);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 1.1rem 2.8rem;
  font-size: 1.25rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255,153,0,0.10);
  transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.about-cta-btn:hover, .about-cta-btn:focus {
  background: linear-gradient(90deg,#e07a5f 60%,#ff9900 100%);
  color: #fff;
  transform: scale(1.07);
  box-shadow: 0 8px 32px rgba(255,153,0,0.16);
  outline: none;
}
/* Initialen für Testimonials */
.testimonial-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffb800;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-right: 0.8rem;
  box-shadow: 0 2px 8px rgba(255,184,0,0.10);
  vertical-align: middle;
}
.testimonial-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95em;
  color: #888;
  margin-top: 0.2rem;
}
/* Interaktive Animationen für Buttons, Links und Profilbild */
.btn-primary, .btn-secondary, .btn-contact, .testimonial-prev, .testimonial-next {
  transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.18s;
}
.btn-primary:hover, .btn-secondary:hover, .btn-contact:hover, .testimonial-prev:hover, .testimonial-next:hover,
.btn-primary:focus, .btn-secondary:focus, .btn-contact:focus, .testimonial-prev:focus, .testimonial-next:focus {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
  transform: scale(1.06);
  box-shadow: 0 4px 18px rgba(255,184,0,0.13);
  outline: none;
}
a, .socials-inline a, .main-header nav a {
  transition: color 0.18s, text-shadow 0.18s, transform 0.18s;
}
a:hover, a:focus, .socials-inline a:hover, .socials-inline a:focus, .main-header nav a:hover, .main-header nav a:focus {
  color: #ff9900;
  text-shadow: 0 2px 8px rgba(255,153,0,0.08);
  transform: scale(1.04);
  outline: none;
}
.about-profile-img {
  transition: box-shadow 0.18s, transform 0.18s;
}
.about-profile-img:hover, .about-profile-img:focus {
  box-shadow: 0 8px 40px rgba(255,153,0,0.18);
  transform: scale(1.04);
  outline: 2px solid #ff9900;
}
/* Abschnittstrennung für About-Seite */
.about-section {
  border-top: 1.5px solid #e7e7e7;
  margin-top: 3.5rem;
  padding-top: 3.5rem;
}
.about-section:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
/* Hero-Bereich mit Akzent */
.about-hero {
  position: relative;
  background: linear-gradient(90deg, #f7f6fb 60%, #ffe7c2 100%);
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 2.5rem 2vw 2.5rem 2vw;
  margin-bottom: 3.5rem;
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.about-hero-icon {
  width: 56px;
  height: 56px;
  background: #ff9900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  margin-right: 1.5rem;
  box-shadow: 0 2px 8px rgba(255,153,0,0.12);
}
.about-hero-content {
  flex: 1 1 320px;
}
.about-main-title {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  color: #9ba89c;
  margin-bottom: 0.2em;
  letter-spacing: 0.01em;
  font-weight: 800;
}
.about-hero-subtitle {
  font-size: 1.2rem;
  color: #ffb800;
  margin-bottom: 1.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}
@media (max-width: 900px) {
  .about-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 0.5rem;
  }
  .about-main-title {
    font-size: 2rem;
  }
}
/* Modernisierung About-Seite */
.about-main-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  color: #9ba89c;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
  font-weight: 800;
}
.about-subtitle {
  font-size: 1.4rem;
  color: #ffb800;
  margin-bottom: 2.2rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}
.about-section {
  margin-bottom: 3.5rem;
  padding: 2.5rem 2vw 2.5rem 2vw;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.about-profile-img {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  margin: 0 auto 2.5rem auto;
  display: block;
  border: 4px solid #ff9900;
  background: linear-gradient(135deg,#fff 60%,#f7f6fb 100%);
  position: relative;
}
.about-profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.about-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: #ffb800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-left: 4px solid #ff9900;
  padding-left: 0.7rem;
}
.about-section ul {
  margin-left: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.about-section p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #333;
}
.about-section blockquote {
  font-size: 1.15rem;
  color: #666;
  border-left: 4px solid #ff9900;
  margin: 1.5rem 0;
  padding-left: 1.2rem;
  font-style: italic;
  background: #f7f6fb;
  border-radius: 0.7rem;
}
.testimonial-carousel {
  position: relative;
  max-width: 540px;
  margin: 2.5rem 0 0 0;
  padding: 2.5rem 2.2rem 2.5rem 2.2rem;
  background: #f7f9f8;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  text-align: left;
  min-height: 200px;
  animation: fadeIn 0.7s;
}
.testimonial-item {
  display: none;
  position: relative;
  animation: fadeIn 0.7s;
}
.testimonial-item.active {
  display: block;
}
.testimonial-quote {
  font-size: 1.18rem;
  font-style: italic;
  color: #222;
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 2.2rem;
}
.testimonial-quote::before {
  content: "“";
  font-size: 3rem;
  color: #ff9900;
  position: absolute;
  left: 0;
  top: -0.7rem;
  line-height: 1;
}
.testimonial-source {
  display: block;
  font-size: 0.95em;
  color: #888;
  margin-top: 0.2rem;
}
.testimonial-prev,
.testimonial-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffb800;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255,184,0,0.12);
}
.testimonial-prev {
  left: -22px;
}
.testimonial-next {
  right: -22px;
}
.testimonial-prev:hover,
.testimonial-next:hover {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(255, 184, 0, 0.13);
}
@media (max-width: 900px) {
  .about-section {
    padding: 1.2rem 0.5rem;
  }
  .about-profile-img {
    width: 70vw;
    height: 70vw;
    max-width: 340px;
    max-height: 340px;
  }
}
@media (max-width: 600px) {
  .about-main-title {
    font-size: 2rem;
  }
  .about-profile-img {
    width: 90vw;
    height: 90vw;
    max-width: 320px;
    max-height: 320px;
  }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Testimonial Carousel für Arbeitgeber-Zitate */
.testimonial-carousel {
  position: relative;
  max-width: 540px;
  margin: 2.5rem 0 0 0;
  padding: 2rem 2.2rem 2.5rem 2.2rem;
  background: #f7f6fb;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(182,161,230,0.07);
  text-align: left;
  min-height: 180px;
}
.testimonial-item {
  display: none;
}
.testimonial-item.active {
  display: block;
}
.testimonial-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: #222;
  margin-bottom: 1.2rem;
}
.testimonial-source {
  display: block;
  font-size: 0.95em;
  color: #888;
  margin-top: 0.2rem;
}
.testimonial-prev,
.testimonial-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffb800;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}
.testimonial-prev {
  left: -18px;
}
.testimonial-next {
  right: -18px;
}
.testimonial-prev:hover,
.testimonial-next:hover {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(255, 184, 0, 0.13);
}
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600&family=Poppins:wght@700;800&display=swap');

body, p, li, label, input, textarea, .version, .all-details-block {
  font-family: 'Nunito', Arial, sans-serif;
}
h1, h2, h3, .contact-headline, .portfolio-info h3, .main-header .logo {
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.5;
}
/* Footer Styles wie auf Startseite */
.main-footer,
.main-footer .footer-title,
.main-footer .footer-block,
.main-footer .footer-row,
.main-footer .footer-socials,
.main-footer .footer-socials a,
.main-footer a,
.main-footer div,
.main-footer span {
  font-weight: 400 !important;
}
.main-footer {
  background: #9ba89c;
  padding-top: 20px;
  padding-bottom: 2rem;
  color: #fff;
  padding: 1.2rem 80px 1.2rem;
  margin-top: 3rem;
}
.contact-info.contact-info-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  margin: 0;
  padding: 0;
}
.main-footer .version,
.main-footer .local-time,
.main-footer .socials {
  font-size: 1rem;
  line-height: 1.5;
}
.main-footer .socials {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.main-footer .socials-links {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  margin-top: 0.3rem;
}
.main-footer .socials a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5em 0.7em;
  border-radius: 0.5em;
}
.main-footer .socials a:hover {
  color: #b6a1e6;
}

/* Footer-Links immer weiß */
.main-footer a,
.main-footer a:visited,
.main-footer a:active,
.main-footer a:hover {
  color: #fff !important;
  text-decoration: underline;
  transition: color 0.2s;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}
@media (max-width: 700px) {
  .contact-info.contact-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 0 1rem;
  }
}
.all-details-block {
  width: 100%;
  background: transparent;
  border-radius: 1rem;
  padding: 1.2rem 1rem;
  font-size: 1rem;
  box-shadow: none;
  margin-top: 1.5rem;
  line-height: 1.5;
}
.all-details-block h3 {
  margin: 0.5rem 0 0.3rem 0;
  font-size: 1.1rem;
  color: #FF9900;
}
.all-details-block .contact-details,
.all-details-block .business-details {
  margin-bottom: 0.7rem;
}
.all-details-block .contact-details a {
  color: #FF9900;
  text-decoration: underline;
}
.socials-inline {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}
.socials-inline a {
  color: #FF9900;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 0.7em;
  border-radius: 0.5em;
}
.socials-inline a:hover {
  color: #ffb84d;
}
/* Kontaktseite Layout */
.contact-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1rem 2rem 1rem;
  background: #fff;
  min-height: 100vh;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: transparent;
  z-index: 0;
}
.contact-container {
  position: relative;
  z-index: 1;
}
.contact-container {
  display: flex;
  gap: 3rem;
  max-width: 1400px;
  width: 100%;
  background: #fff;
  border-radius: 2rem;
  box-shadow: none;
  padding: 2.5rem 2rem;
}
.contact-left {
  flex: 2 1 auto;
  min-width: 300px;
}
.contact-headline {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-form label {
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.7rem;
  font-size: 1rem;
  background: #fff4d6;
  resize: none;
  box-sizing: border-box;
}
.contact-form input:focus,
 .contact-form textarea:focus {
  outline: 2px solid #FFB800;
  border-color: #FFB800;
  box-shadow: 0 0 0 3px rgba(255,184,0,0.18);
  transition: box-shadow 0.18s, border-color 0.18s;
}
.btn-primary {
  background: linear-gradient(90deg,#b6a1e6,#6e8efb);
  color: #fff;
  border: none;
  border-radius: 0.7rem;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
}
.contact-right {
  flex: 1 1 260px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}
.profile-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-left: 0;
  width: auto;
}
.profile-img {
  width: 100%;
  /* background entfernt, nur Bild sichtbar */
  border-radius: 1rem;
  padding: 1.2rem 1rem;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(182,161,230,0.07);
  margin-top: 1.5rem;
  line-height: 1.5;
  text-align: left;
  background: #fff;
  color: #6e8efb;
  border: 2px solid #b6a1e6;
  border-radius: 0.7rem;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  text-align: center;
}
.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(255, 184, 0, 0.13);
}
.details-block {
  width: 100%;
  background: #f7f6fb;
  border-radius: 1rem;
  padding: 1.2rem 1rem;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(182,161,230,0.07);
}
.details-block h3 {
  margin: 0.5rem 0 0.3rem 0;
  font-size: 1.1rem;
  color: #6e8efb;
}
.contact-details, .business-details {
  margin-bottom: 0.7rem;
}
.contact-details a {
  color: #6e8efb;
  text-decoration: underline;
}
.socials-block {
  width: 100%;
  background: #f7f6fb;
  border-radius: 1rem;
  padding: 1.2rem 1rem;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(182,161,230,0.07);
  text-align: center;
}
.socials-block a {
  display: inline-block;
  margin: 0 0.7rem;
  color: #6e8efb;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.socials-block a:hover {
  color: #b6a1e6;
}
@media (max-width: 900px) {
  .contact-section {
    padding: 2rem 1rem;
  }
  
  .contact-container {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem clamp(1rem, 3vw, 2rem);
  }
  
  .contact-form {
    gap: 1rem;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    padding: 1rem;
  }
  
  .socials-inline {
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .profile-img {
    width: clamp(100px, 25vw, 140px);
    height: clamp(100px, 25vw, 140px);
  }
  
  .contact-right, .contact-left {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .contact-section {
    padding: 1.5rem 0.75rem;
    min-height: auto;
  }
  
  .contact-container {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
  
  .contact-headline {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    text-align: center;
  }
  
  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

@media (max-width: 480px) {
  .all-details-block {
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .socials-inline a {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
}
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600&family=Poppins:wght@700;800&display=swap');

body {
  font-family: 'Nunito', Arial, sans-serif;
  margin: 0;
  background: #fff;
  color: #333;
  line-height: 1.5;
}


/* Sticky Header und Farbwechsel beim Scrollen */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  margin-bottom: 0;
  padding-bottom: 0;
  transition: background 0.3s;
}
.main-header.scrolled {
  background: #fff;
}
.main-header .logo,
.main-header nav a {
  color: #fff;
  transition: color 0.3s;
}
.main-header.scrolled .logo,
.main-header.scrolled nav a {
  color: #222 !important;
}

/* Header-Menü: animierter Farbverlauf nur auf Text beim Hover */
.main-header nav a {
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
  font-weight: 400;
  position: relative;
  background: none;
  transition: color 0.3s;
}
.main-header nav a:hover, .main-header nav a:focus {
  color: transparent;
  background: linear-gradient(90deg, #f4b63d, #e07a5f, #ffb347, #ffcc33, #ff5e62, #ff9966, #f857a6, #f4b63d);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: gradient-move 0.7s linear infinite;
  -webkit-text-fill-color: transparent;
}
@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem max(20px, 4vw) 0 max(20px, 4vw);
  background: none;
  position: relative;
  flex-wrap: nowrap;
}
.logo {
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  margin-right: auto;
  padding: 0.5rem 0.7rem;
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  order: 1;
}
nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
  order: 3;
}

  nav ul {
  text-decoration: none;
  color: #fff;
  font-size: clamp(0.9rem, 2vw, 1rem);
  letter-spacing: 1px;
  position: relative;
  transition: color 0.2s;
  z-index: 1;
  background: none;
  padding: 0.5rem 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
nav a:hover, nav a:focus {
  background: linear-gradient(90deg, #f4b63d 0%, #e07a5f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  transition: background 0.4s;
}

/* HERO SECTION */
.hero {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  margin: 0;
  padding: 0;
  background: url('img/anika-warncke.jpg') center center/cover no-repeat;
  box-sizing: border-box;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Main content positioning under hero */
main {
  margin-top: 100vh;
  min-height: 100vh;
}

/* ============================================
   MOBILE NAVIGATION STYLES
   ============================================ */

/* Hamburger Menu Button */
.mobile-nav-toggle {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  order: 2;
  margin-left: 1rem;
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background-color: currentColor;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-line:not(:last-child) {
  margin-bottom: 5px;
}

.mobile-nav-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  /* Perfect mobile logo alignment */
  .logo {
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
    font-size: 1rem !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    flex: none !important;
    white-space: nowrap !important;
  }
  
  .mobile-nav-toggle {
    display: flex !important;
    order: 2;
    color: inherit;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  nav {
    position: relative;
    align-items: center !important;
  }
  
  /* Hide menu by default on mobile */
  /* Always render the overlay list and slide it in/out (never display:none) */
  nav ul {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0; /* keep anchored to the right by default */
    width: min(280px, 75vw);
    height: 100vh;
    /* Footer green background */
    background: #9ba89c;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
  /* Leave space for header and X button so items start below it */
  padding: 72px 0 20px 0;
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25);
    z-index: 1001;
    overflow-y: auto;
    list-style: none;
    pointer-events: auto;
  }
  
  /* Show menu when open */
  nav ul.mobile-menu-open {
    transform: translateX(0);
  }
  
  /* Keep hamburger visible when the menu is open (animated to X) */
  body.mobile-menu-active .mobile-nav-toggle {
    display: flex !important;
  }

  /* Hide legacy floating close button if present */
  .mobile-nav-close { display: none !important; }
  
  /* Menu items - always visible */
  nav ul li {
    width: 100%;
    margin: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  /* Menu links */
  nav ul li a {
    width: 100%;
    padding: 1.2rem 2rem !important;
    color: #fff !important; /* enforce white */
    font-size: 1.2rem !important;
    text-transform: uppercase !important;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: block !important;
    background: transparent !important;
    -webkit-text-fill-color: #fff !important; /* safari */
    background-clip: initial !important; /* cancel gradient clip */
    -webkit-background-clip: initial !important; /* safari */
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 1002;
  }
  
  nav ul li a:hover,
  nav ul li a:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  
  nav ul li a:active {
    background: rgba(255, 255, 255, 0.16) !important;
  }
  
  nav ul li a.active {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-weight: 700;
  }
  
  nav ul li a:hover,
  nav ul li a:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  
  nav ul li a.active {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-weight: 700;
  }
  
  /* Prevent body scroll when menu is open */
  body.mobile-menu-active {
    overflow: hidden;
  }
  
  /* Overlay */
  body.mobile-menu-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
  }

  /* Ensure the header/menu sits above the dim overlay when open */
  body.mobile-menu-active .main-header { z-index: 2001 !important; }
  body.mobile-menu-active .main-header nav ul { z-index: 2002 !important; }
  body.mobile-menu-active .main-header .mobile-nav-toggle { z-index: 2003 !important; }

  /* Hide the Back-to-Top button when the mobile menu is open */
  body.mobile-menu-active .back-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) scale(0.95) !important;
    pointer-events: none !important;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* Adjust header colors for mobile menu button */
  .main-header .mobile-nav-toggle .hamburger-line {
    background-color: #fff;
  }
  
  .main-header.scrolled .mobile-nav-toggle .hamburger-line {
    background-color: #222;
  }

  /* When menu is open, force hamburger lines to white for contrast on green */
  body.mobile-menu-active .main-header .mobile-nav-toggle .hamburger-line {
    background-color: #fff !important;
  }
}

/* iPhone 8 Plus and similar widths: force full-width overlay and override page-specific styles */
@media (min-width: 376px) and (max-width: 430px) {
  /* Ensure header gutters remain consistent */
  .main-header nav {
    padding-left: clamp(2.5rem, 7vw, 3.5rem) !important;
    padding-right: clamp(2.5rem, 7vw, 3.5rem) !important;
  }

  /* High-specificity header spacing + controls parity (beats page-local styles) */
  body .main-header nav {
    padding: 0.75rem clamp(2.5rem, 7vw, 3.5rem) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  body .main-header .logo {
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body .main-header .mobile-nav-toggle {
    width: 48px !important;
    height: 48px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Make the mobile menu cover the full viewport width and start under the X */
  /* Low-specificity baseline (still helpful if pages remove locals) */
  nav ul {
    left: 0 !important;            /* anchor to left edge */
    right: auto !important;        /* neutralize per-page right:-100% */
    width: 100vw !important;       /* full width overlay */
    height: 100vh !important;
    background: #9ba89c !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 72px 0 20px 0 !important; /* items start directly under the X */
    margin: 0 !important;
    transform: translateX(100%) !important; /* hidden by default */
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;      /* never display:none */
  }

  /* Runtime-enforced full-width overlay class from JS to beat local page CSS */
  body .main-header nav ul.global-menu-fullwidth,
  body nav ul.global-menu-fullwidth {
    left: 0 !important;
    right: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    padding: 72px 0 20px 0 !important;
    transform: translateX(100%) !important;
    display: flex !important;
  }
  body .main-header nav ul.global-menu-fullwidth.mobile-menu-open,
  body nav ul.global-menu-fullwidth.mobile-menu-open,
  body .main-header nav ul.global-menu-fullwidth.active,
  body nav ul.global-menu-fullwidth.active {
    transform: translateX(0) !important;
  }

  /* High-specificity override to beat page-level rules (contact/legal/P1–P8) */
  body .main-header nav ul {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    background: #9ba89c !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 72px 0 20px 0 !important;
    margin: 0 !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
  }

  /* Open state */
  nav ul.mobile-menu-open,
  nav ul.active,
  body .main-header nav ul.mobile-menu-open,
  body .main-header nav ul.active {
    transform: translateX(0) !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* When the menu is open, overrule all page-local widths using the body state */
  body.mobile-menu-active .main-header nav ul,
  body.mobile-menu-active nav ul {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    transform: translateX(0) !important;
    display: flex !important;
  }

  /* Make each item fully clickable across the width */
  nav ul li,
  body .main-header nav ul li { width: 100% !important; }
  nav ul li a,
  body .main-header nav ul li a {
    display: block !important;
    width: 100% !important;
    padding: 1.2rem 2rem !important;
    color: #fff !important;
    text-transform: uppercase !important;
    -webkit-text-fill-color: #fff !important; /* Safari */
    text-align: left !important;
  }
}

/* Small mobile devices (iPhone SE, etc.) - max-width: 375px */
@media (max-width: 375px) {
  nav {
    padding: 1rem 12px 0 0;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
  }
  
  .logo {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.5rem 0.4rem 12px;
    margin-right: auto;
    margin-left: 0;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: auto;
    order: 1;
  }
  
  .mobile-nav-toggle {
    margin-left: auto;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    order: 2;
  }
  
  .hamburger-line {
    width: 24px;
    height: 2.5px;
  }
  
  .hamburger-line:not(:last-child) {
    margin-bottom: 4px;
  }
  
  /* Mobile Menu für iPhone SE */
  nav ul {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(280px, 85vw) !important;
    height: 100vh !important;
    background: #9ba89c !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0 !important;
    /* Leave space for header and X button so items start below it */
    padding: 72px 0 20px 0 !important;
    margin: 0 !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25) !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    list-style: none !important;
    pointer-events: auto !important;
    display: flex !important;
    isolation: isolate !important;
  }
  
  /* Show menu when opened */
  nav ul.mobile-menu-open {
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }
  
  /* Menu items */
  nav ul li {
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10000 !important;
  }
  
  /* Menu links */
  nav ul li a {
    width: 100% !important;
    padding: 1.2rem 2rem !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: block !important;
    background: transparent !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10001 !important;
    -webkit-text-fill-color: #fff !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1) !important;
    touch-action: manipulation !important;
  }
  
  nav ul li a:hover,
  nav ul li a:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  
  nav ul li a:active {
    background: rgba(255, 255, 255, 0.16) !important;
  }
  
  nav ul li a.active {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-weight: 700 !important;
  }
  
  /* Mobile Menu Button für iPhone SE */
  .mobile-nav-toggle {
    z-index: 10002 !important;
    pointer-events: auto !important;
    position: relative !important;
  }
  
  .mobile-nav-toggle .hamburger-line {
    background-color: #fff !important;
    pointer-events: none !important;
  }
  
  /* When menu is open, keep hamburger button clickable */
  body.mobile-menu-active .mobile-nav-toggle {
    z-index: 10002 !important;
    pointer-events: auto !important;
  }
  
  body.mobile-menu-active .mobile-nav-toggle .hamburger-line {
    background-color: #fff !important;
  }
  
  /* Prevent body scroll when menu is open */
  body.mobile-menu-active {
    overflow: hidden !important;
  }
  
  /* Overlay for iPhone SE - completely disabled */
  body.mobile-menu-active::before {
    display: none !important;
  }  /* Filter Buttons in einer Zeile für iPhone SE */
  .portfolio-filter {
    flex-wrap: nowrap;
    gap: 0.3rem;
    padding: 0.5rem 12px;
    overflow-x: visible;
    overflow-y: visible;
    justify-content: space-between;
  }
  
  .filter-btn {
    font-size: 0.65rem;
    padding: 0.5rem 0.6rem;
    min-height: 36px;
    flex-shrink: 1;
    flex-grow: 1;
    white-space: nowrap;
    min-width: 0;
  }
  
  /* Contact Section für iPhone SE */
  .contact-row {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
  }
  
  .contact-content {
    flex: 1;
  }
  
  .contact-content h2 {
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 0.95;
    letter-spacing: 0;
    margin: 0;
  }
  
  .contact .btn-contact.round-yellow {
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0;
    border: none !important;
    outline: none !important;
  }
  
  .contact .btn-contact.round-yellow svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Desktop Contact Button - Very Large Size */
@media (min-width: 769px) {
  .contact .btn-contact.round-yellow {
    width: 300px !important;
    height: 300px !important;
    border-radius: 50% !important;
  }
  
  .contact .btn-contact.round-yellow svg {
    width: 150px !important;
    height: 150px !important;
  }
}
  
  /* Footer für iPhone SE - kompakter */
  .footer-block {
    gap: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .footer-block a {
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
  }
  
  .footer-block > a {
    margin-bottom: 0 !important;
  }
  
  .footer-block > a + a {
    margin-top: 0 !important;
  }
  
  .footer-title {
    margin-bottom: 0.6rem !important;
    line-height: 1 !important;
  }
  
  /* Entfernt Leerzeilen im Social-Block */
  .footer-socials {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    align-items: flex-start !important;
  }
  
  .footer-socials a {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }
  
  /* Hero-Bereich optimiert für iPhone SE */
  .hero {
    height: 100vh !important;
    min-height: 100vh !important;
    position: relative !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-position: center center !important;
    background-size: cover !important;
    overflow: hidden !important;
  }
  
  /* Foto-Overlay für bessere Sichtbarkeit */
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    pointer-events: none;
  }
  
  .main-page-hero .hero-content {
    position: relative !important;
    z-index: 2;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1.2rem 1rem 1.5rem 1rem !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 1.2rem 1.2rem 0 0 !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .hero h1 {
    font-size: 1.3rem !important;
    line-height: 1.15 !important;
    margin-bottom: 0.4rem !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  .hero .subtitle {
    font-size: 0.75rem !important;
    margin-bottom: 0.5rem !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
  }
  
  .hero .intro {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.9rem !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .hero .btn-primary {
    padding: 0.7rem 1.5rem !important;
    font-size: 0.85rem !important;
  }
  
  /* Main content direkt nach Hero */
  main {
    margin-top: 0 !important;
  }
}

/* Hero content for main page only */
.main-page-hero .hero-content {
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 33.33vw;
  min-width: 300px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1.2rem;
  padding: 2rem 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  z-index: 2;
}

/* Hero content for project pages - centered */
.hero .hero-content:not(.main-page-hero .hero-content) {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: auto !important;
  min-width: auto !important;
  margin: 0 auto !important;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  word-wrap: break-word;
}

/* Auf Desktop: kein Zeilenumbruch in h1 */
@media (min-width: 769px) {
  .hero h1 br {
    display: none;
  }
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: #e07a5f;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}
.intro {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.btn-primary, .btn-secondary, .filter-btn {
  background: #ffb800;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-primary:hover, .btn-secondary:hover, .filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 184, 0, 0.13);
}
.filter-btn:hover, .filter-btn.active {
  background: #ffb800;
}

/* Hover-Effekte nur für Desktop-Geräte */
@media (hover: hover) and (pointer: fine) {
  .filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255,184,0,0.15);
  }
}

/* Utility: Consistent mobile side padding */
@media (max-width: 768px) {
  .u-mobile-sidepad {
    padding-left: clamp(2.5rem, 7vw, 3.5rem) !important;
    padding-right: clamp(2.5rem, 7vw, 3.5rem) !important;
  }
}
@media (max-width: 480px) {
  .u-mobile-sidepad {
    padding-left: 2.25rem !important;
    padding-right: 2.25rem !important;
  }
}

/* Prevent scaling on mobile to avoid cropping of rounded pills */
@media (max-width: 768px) {
  .filter-btn:hover,
  .filter-btn.active {
    transform: none !important;
  }
}
.hero-image img {
  width: 320px;
  border-radius: 1.5rem;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.about {
  background: #94A293;
  color: #fff;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 2rem 80px;
  box-sizing: border-box;
  text-align: center;
}
.about blockquote {
  font-size: 1.3rem;
  font-style: italic;
  margin: 0 auto;
  max-width: none;
}

.portfolio {
  background: #fff;
  padding: 4rem clamp(20px, 5vw, 80px);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.portfolio-item {
  background: #f3f3f3;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.portfolio-item img {
  width: 100%;
  display: block;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}
.portfolio-info {
  padding: 1.2rem 1rem 1.5rem 1rem;
}
.portfolio-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.portfolio-info p {
  margin: 0;
  color: #7a7a7a;
  font-size: 1rem;
}
.btn-secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.2rem auto 0 auto;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1rem;
  background: #ffb800;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  min-width: 44px;
  min-height: 44px;
  line-height: 1.2;
}
.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(255, 184, 0, 0.13);
}

.contact {
  background: #9ba89c;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  padding: 4rem 4vw 2rem 4vw;
}
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 2.5rem;
}
.contact-content {
  flex: 1 1 auto;
}
.contact-content h2 {
  font-size: 8rem;
  font-weight: 900;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.05em;
}
.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4b63d;
  color: transparent;
  width: 100%;
  background: #f7f6fb;
  border-radius: 1rem;
  padding: 1.2rem 0;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(182,161,230,0.07);
  margin-top: 1.5rem;
  line-height: 1.5;
  text-align: left;
}
.btn-contact::after {
  content: '→';
  font-size: 4.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-family: 'Poppins', Arial, sans-serif;
}
.btn-contact:hover {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(255, 184, 0, 0.13);
}
.contact-info {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-end;
  font-size: 0.95rem;
}
.contact-info .version,
.contact-info .local-time,
.contact-info .socials {
  color: #e6e6e6;
  text-align: right;
}
.contact-info .socials a {
  color: #fff;
  margin-left: 0.7rem;
  text-decoration: none;
  font-weight: 500;
}
.contact-info .socials a[href*="LinkedIn"] {
  color: #fff;
}
.contact-info .socials a:hover {
  text-decoration: underline;
}
.contact-info-row {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: flex-end;
  align-items: flex-end;
}
.contact-info-row > div {
  min-width: 120px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 4vw;
  padding-right: 4vw;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 20px clamp(20px, 5vw, 80px);
  margin: 20px 0;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}
.portfolio-carousel {
  display: flex;
  gap: 2.5rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: max-content;
  min-width: 100%;
  padding: 0 20px;
  align-items: stretch;
}
.portfolio-item {
  min-width: 320px;
  max-width: 340px;
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  height: auto;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.8);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.carousel-btn:hover {
  background: rgba(0,0,0,0.9);
  transform: translateY(-50%) scale(1.1);
}
.carousel-btn.left {
  left: 20px; /* Links neben den Karten */
}
.carousel-btn.right {
  right: 20px; /* Rechts neben den Karten */
}

.carousel-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  padding: 0 80px; /* Gleiches Padding wie carousel-wrapper */
}

.indicator-track {
  width: 100%;
  max-width: 400px;
  height: 4px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.indicator-fill {
  height: 100%;
  background: #ffb800;
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.portfolio-filter {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 3rem;
}
.filter-btn {
  background: #f3f3f3;
  color: #333;
  border: none;
  border-radius: 2rem;
  padding: 0.6rem 1.6rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-btn.active, .filter-btn:hover {
  background: #ffb800;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(255, 184, 0, 0.13);
}

/* Mobile Filter Optimierung - Best Practice 2025 */
@media (max-width: 768px) {
  .portfolio-filter {
    display: flex;
    gap: 0.5rem;
    overflow-x: visible;
    overflow-y: visible;
    padding: 0.5rem 1rem;
    margin: 0 0 2rem 0;
    justify-content: center;
    flex-wrap: nowrap;
  }
  
  .filter-btn {
    min-height: 44px;
    min-width: auto;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border-radius: 2rem;
    flex-shrink: 1;
    flex-grow: 0;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .filter-btn.active, .filter-btn:hover {
    transform: scale(1.02);
  }
  
  .filter-btn:active {
    transform: scale(0.98);
  }
}

/* Für sehr kleine Screens: iPhone SE optimiert */
@media (max-width: 380px) {
  .portfolio-filter {
    flex-wrap: nowrap;
    gap: 0.3rem;
    padding: 0.5rem 12px;
    overflow-x: visible;
    overflow-y: visible;
    justify-content: space-between;
  }
  
  .filter-btn {
    font-size: 0.65rem;
    padding: 0.5rem 0.6rem;
    flex-shrink: 1;
    flex-grow: 1;
    white-space: nowrap;
    min-width: 0;
  }
}

/* Custom Cursor Styles */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 2px solid #222;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(1);
  transition: border-color 0.2s, background 0.2s, transform 0.15s cubic-bezier(.22,1,.36,1);
}
.custom-cursor.cursor-hover {
  border-color: #ff5a36;
  background: rgba(255,90,54,0.12);
  transform: translate(-50%, -50%) scale(1.3);
}
body.hide-native-cursor, body.hide-native-cursor * { cursor: none !important; }
/* About-Me Profilbild groß und rund */
.about-profile-img {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  margin: 0 auto 2rem auto;
  display: block;
}
.about-profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cursor.cursor-hover {
  background: #f4b63d;
  border-color: #e07a5f;
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 4px 24px rgba(255,184,0,0.18);
}
.cursor-text {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .hero-content {
    background: rgba(255,255,255,0.92);
    padding: 1.2rem 1rem;
  }
  .hero-image img {
    width: 90vw;
    max-width: 340px;
  }
  .contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 3rem 1.5rem 2rem 1.5rem;
  }
  .contact-row {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    justify-content: space-between;
  }
  .contact-content {
    flex: 1;
  }
  .contact-content h2 {
    font-size: clamp(3.5rem, 12vw, 6rem);
    line-height: 1;
    letter-spacing: 0.02em;
    margin-bottom: 0;
    font-weight: 900;
  }
  /* Make the round contact button much smaller on mobile.
     Use !important to override inline styles present in index.html */
  .contact .btn-contact.round-yellow,
  .btn-contact {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50%;
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 20px rgba(255,153,0,0.2);
    margin-top: 0;
  }
  .contact .btn-contact.round-yellow svg,
  .btn-contact svg {
    width: 28px !important;
    height: 28px !important;
  }
  /* Override wrapper inline width so it doesn't enforce 192px */
  .contact-row > div:last-child {
    width: auto !important;
    flex: 0 0 auto;
  }
  .btn-contact::after {
    font-size: 2rem;
  }
  .contact-info {
    width: 100%;
    align-items: flex-start;
  }
  .contact-info .version,
  .contact-info .local-time,
  .contact-info .socials {
    text-align: left;
  }
  .contact-info-row {
    justify-content: flex-start;
  }
  .portfolio-item img {
    height: 180px;
  }
  .carousel-wrapper {
    padding: 20px 80px; /* Weniger Padding für kleinere Bildschirme */
  }
  .carousel-indicator {
    padding: 0 80px; /* Gleiches Padding wie carousel-wrapper */
  }
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  .carousel-btn.left {
    left: 10px;
  }
  .carousel-btn.right {
    right: 10px;
  }
}

/* ============================================
   MOBILE RESPONSIVE BREAKPOINTS
   ============================================ */

/* Small tablets and large phones (landscape) */
@media (max-width: 768px) {
  .carousel-btn {
    display: none !important;
  }
  
  .carousel-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  
  .portfolio-carousel {
    scroll-snap-align: start;
  }
  
  .hero {
    padding: 1rem;
  }
  
  .main-page-hero .hero-content {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.5rem 2rem;
  }
  
  .about, .portfolio {
    padding: 3rem clamp(20px, 4vw, 80px);
  }
  
  .portfolio-carousel {
    padding: 0 clamp(20px, 4vw, 80px);
    gap: 1.5rem;
  }
  
  .main-footer {
    padding-left: clamp(20px, 4vw, 80px);
    padding-right: clamp(20px, 4vw, 80px);
  }
}

/* Mobile devices */
@media (max-width: 600px) {
  :root {
    font-size: 15px;
  }
  
  nav {
    gap: 1rem;
    padding: 1rem clamp(15px, 3vw, 20px) 0 clamp(15px, 3vw, 20px);
  }
  
  nav ul {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .logo {
    margin-right: auto;
  }
  
  .hero-content h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  .contact-content h2 {
    font-size: clamp(2.8rem, 10vw, 4.5rem);
    line-height: 1;
    letter-spacing: 0.02em;
    font-weight: 900;
  }
  
  .portfolio-item {
    width: 100%;
    max-width: 100%;
  }
  
  .portfolio-item img {
    height: clamp(140px, 40vw, 160px);
  }
  
  .carousel-wrapper {
    padding: 15px clamp(10px, 3vw, 20px);
  }
  
  .carousel-indicator {
    padding: 0 clamp(10px, 3vw, 20px);
  }
  
  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  .carousel-btn.left {
    left: 5px;
  }
  
  .carousel-btn.right {
    right: 5px;
  }
  
  .about, .portfolio, .contact {
    padding: 2rem clamp(15px, 3vw, 20px);
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }
  
  nav {
    padding: 0.75rem 15px 0 15px;
  }
  
  nav ul {
    gap: 0.25rem;
    font-size: 0.85rem;
  }
  
  nav a {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .main-page-hero .hero-content {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem 1.5rem;
  }
  
  .hero h1 {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
    margin-bottom: 0.75rem;
  }
  
  .subtitle, .intro {
    font-size: clamp(0.9rem, 3vw, 1rem);
  }
  
  .btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 100%;
  }
  
  .portfolio-item img {
    height: 120px;
  }
  
  .carousel-wrapper {
    padding: 10px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .about blockquote {
    font-size: clamp(1rem, 4vw, 1.3rem);
    padding: 1rem;
  }
  
  .contact-content h2 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    line-height: 1;
    letter-spacing: 0.01em;
    font-weight: 900;
  }
  
  /* Force portfolio to display as column on small screens */
  .portfolio-carousel {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding: 0 !important;
  }
  
  .carousel-wrapper {
    overflow: visible !important;
  }
  
  .portfolio-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* Very small devices */
@media (max-width: 360px) {
  nav ul {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 0.25rem;
  }
  
  nav a {
    text-align: center;
    width: 100%;
  }
  
  .hero h1 {
    font-size: 1.3rem;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* Custom Cursor Header Effekt */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  margin-bottom: 0;
  padding-bottom: 16px;
  transition: background 0.3s;
}
.main-header.scrolled {
  background: #fff;
}
.main-header .logo,
.main-header nav a {
  color: #fff;
  transition: color 0.3s;
}
.main-header.scrolled .logo,
.main-header.scrolled nav a {
  color: #222 !important;
}
.main-header .custom-cursor-header-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 4px 32px rgba(255,184,0,0.10);
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  z-index: 0;
  transition: background 0.2s, box-shadow 0.2s, width 0.2s, height 0.2s, transform 0.18s cubic-bezier(.22,1,.36,1);
  opacity: 0;
}
.main-header.cursor-in-header .custom-cursor-header-bg {
  opacity: 1;
}
.main-header nav a {
  position: relative;
  z-index: 2;
}

/* Header auf index.html kompakter machen */
.main-page-hero .main-header {
  padding-bottom: 8px;
}

.main-page-hero nav {
  padding: 1.5rem 4vw 0 4vw;
}

/* ============================================
   FINAL MOBILE FIXES - HIGHEST PRIORITY
   ============================================ */

@media (max-width: 900px) {
  /* Override any conflicting styles */
  .portfolio-carousel {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    padding: 0 !important;
    width: 100% !important;
    grid-template-columns: unset !important;
  }
  
  .portfolio {
    padding: 3rem 20px !important;
  }
  
  .carousel-wrapper {
    padding: 0 !important;
    overflow: visible !important;
  }
  
  .portfolio-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }
  
  .carousel-btn {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .portfolio {
    padding: 2rem 15px !important;
  }
  
  .portfolio-carousel {
    gap: 1.5rem !important;
  }
}