/* Desktop Slogan Styling */
@media (min-width: 769px) {
  .slogan {
    font-size: 1.3rem !important;
    font-weight: 700;
    text-align: left;
    letter-spacing: -0.01em;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .slogan a {
    background: linear-gradient(315deg, #c8b274 0%, #e4d4a8 50%, #b28737 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
  }

  .slogan a:hover {
    color: var(--link-hover) !important;
  }

  .slogan a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: transparent;
    border-bottom: 1px dashed rgba(90, 74, 42, 0.4);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  .slogan a:hover::after {
    border-bottom: 2px solid var(--gold-main);
    box-shadow: 0 1px 3px rgba(200, 178, 116, 0.25);
  }

  .hamburger-menu {
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .hamburger-menu:hover {
    transform: rotate(180deg) scale(1.1);
  }
  .hamburger-container {
    transition: transform 0.3s ease;
  }
  .hamburger-container:hover {
    transform: scale(1.05);
  }
  .mobile-nav {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .desktop-spacer-50px {
    display: block;
    height: 50px;
    width: 100%;
  }

  .hero-section {
    position: relative;
    padding-bottom: 80px;
  }

  .btn-preview-gold-mixed-case {
    display: inline-block;
    margin-top: 0;
  }
  .mobile-only-button {
    display: none !important;
  }

  .responsive-form .floating-label-group label.floating-label {
    position: absolute;
    top: -8px;
    left: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease, font-weight 0.3s ease;
    color: var(--grey-medium);
    font-size: 1rem;
    background: var(--white);
    padding: 0 0.5rem;
    font-weight: 700;
    z-index: 10;
  }
  .responsive-form .floating-label-group:has(input:focus) label.floating-label,
  .responsive-form .floating-label-group:has(input:not(:placeholder-shown)) label.floating-label,
  .responsive-form .floating-label-group:has(select:focus) label.floating-label,
  .responsive-form .floating-label-group:has(select:valid:not([value=""])) label.floating-label,
  .responsive-form .floating-label-group:has(textarea:focus) label.floating-label,
  .responsive-form .floating-label-group:has(textarea:not(:placeholder-shown)) label.floating-label {
    font-size: 0.875rem;
    color: var(--gold-main);
    transform: translateY(-50%) scale(0.9);
    transform-origin: left center;
  }
  .responsive-form .floating-label-group input,
  .responsive-form .floating-label-group select,
  .responsive-form .floating-label-group textarea {
    padding: 1.5rem var(--spacing-md) !important;
  }

  .style-options {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .slogan {
    font-size: 1.4rem !important;
  }
}

@media (max-width: 1024px) {
  .form-section form,
  .form-section #formPlaceholder {
    margin-right: 0;
  }

  .slogan {
    margin-right: 0;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    background: none !important;
    -webkit-text-fill-color: inherit !important;
    color: var(--grey-medium) !important;
  }

  .slogan a {
    color: var(--link-color) !important;
    background: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .slogan {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
  }
}

@media (max-width: 768px) {
  h2:not(.h2-formular):not(.faq-section-block .faq-title-area h2) {
    font-size: 1rem !important;
  }
  .subtitle {
    font-size: 0.9rem !important;
  }
  .btn-preview-gold-mixed-case {
    display: none !important;
  }

  .main-container {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  .hero-section,
  .form-section {
    grid-template-columns: 1fr;
    padding: var(--spacing-lg);
  }
  .hero-content {
    order: 2;
    padding: 0;
  }
  .hero-image-container {
    order: 1;
    height: 250px;
    min-height: 250px;
    margin-bottom: var(--spacing-sm);
  }

  .form-section #formPlaceholder {
    order: 1;
    margin-bottom: var(--spacing-lg);
  }
  .form-section #uspPlaceholder,
  .form-section .usp-section {
    order: 2;
  }

  .price-offer {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: var(--spacing-sm) var(--spacing-lg);
  }
  .logo-container {
    margin-bottom: var(--spacing-xs);
  }
  .hamburger-container {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-lg);
    width: 35px;
    height: 35px;
  }

  .mobile-nav {
    width: 85%;
  }

  .usp-card-v3 {
    position: relative;
    min-height: 250px;
    aspect-ratio: unset;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .usp-card-v3 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .usp-card-v3 .usp-overlay {
    position: relative;
    z-index: 1;
    padding: var(--spacing-md);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.95) 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mobile-only-button {
    display: block;
    margin-top: var(--spacing-lg);
    width: 100%;
  }
  .preview-style-button {
    display: inline-block;
    margin: var(--spacing-lg) auto 0;
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: 600;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    width: auto;
  }

  .faq-section {
    padding: var(--spacing-lg);
  }
  .faq-section-block {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
  }
  .faq-section-block::before {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.85) 40%, rgba(255, 255, 255, 0.95) 60%, rgba(255, 255, 255, 0.98) 100%);
  }
  .faq-title-area,
  .faq-content-area {
    padding: var(--spacing-md);
  }
  .faq-title-area {
    order: -1;
  }
  .faq-content-area h3 {
    font-size: 1.25rem;
  }
  .faq-cta-box {
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
  }

  .column-two-thirds,
  .column-one-third {
    flex: none;
    width: 100%;
  }
  .two-column-layout {
    gap: 20px;
  }

  .h2-formular {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    margin-bottom: 3rem !important;
  }
  .faq-section-block .faq-title-area h2 {
    font-size: clamp(2rem, 6vw, 2.8rem) !important;
  }

  .hero-section {
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    gap: var(--spacing-md);
  }
  .hero-content .subtitle {
    line-height: 1.4 !important;
    margin-top: var(--spacing-xs) !important;
    margin-bottom: var(--spacing-xs) !important;
  }

  .style-options {
    gap: calc(var(--spacing-sm) * 0.5);
  }

  .style-choices legend {
    margin-bottom: calc(var(--spacing-xs) * 1.5);
  }

  .weitere-inline-toggle {
    position: static;
    margin-top: 0.35rem;
    text-align: left;
    margin-bottom: 30px;
  }
}

.center-text {
  padding: 0 15px;
}

.responsive-form .floating-label-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.8rem;
}
.responsive-form .floating-label-group label.floating-label {
  order: 1;
  position: static;
  transform: none !important;
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: var(--grey-dark);
  font-weight: 600;
  background: transparent;
}
.responsive-form .floating-label-group input,
.responsive-form .floating-label-group select,
.responsive-form .floating-label-group textarea {
  order: 2;
  padding: 1.1rem 1rem !important;
}

.responsive-form .floating-label-group:has(input:not(:placeholder-shown)) label.floating-label,
.responsive-form .floating-label-group:has(select:valid:not([value=""])) label.floating-label,
.responsive-form .floating-label-group:has(textarea:not(:placeholder-shown)) label.floating-label,
.responsive-form .floating-label-group:has(input:focus) label.floating-label,
.responsive-form .floating-label-group:has(select:focus) label.floating-label,
.responsive-form .floating-label-group:has(textarea:focus) label.floating-label {
  color: var(--gold-main);
}

@media (max-width: 480px) {
  .mobile-nav {
    width: 100%;
  }
  .mobile-nav-content {
    padding: var(--spacing-lg);
  }
  .mobile-nav ul {
    margin-top: calc(var(--spacing-xl) * 2.25);
  }
  .mobile-nav .nav-link {
    font-size: 1rem;
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .form-section,
  .usp-section {
    padding: var(--spacing-md);
  }

  .usp-card-v3 {
    min-height: 220px;
  }
  .usp-card-v3 .usp-overlay {
    padding: var(--spacing-sm);
  }
  .usp-card-v3 .usp-overlay h3 {
    font-size: 1rem;
  }
  .usp-card-v3 .usp-overlay p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .faq-section {
    padding: var(--spacing-md);
  }
  .faq-section-block {
    grid-template-rows: 120px 1fr;
  }
  .faq-title-area,
  .faq-content-area {
    padding: var(--spacing-sm);
  }
  .faq-cta-box {
    padding: var(--spacing-md);
  }
  .faq-cta-box h3 {
    font-size: 1.125rem;
  }
}

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

@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 16px 0 rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 12px 24px 0 rgba(0, 0, 0, 0.3);
  }
  input,
  textarea,
  select {
    border-width: 3px;
  }
}

.spacer-desktop-5px,
.spacer-desktop-10px,
.spacer-desktop-25px {
  display: none;
}

@media (max-width: 1069px) {
  .weitere-inline-toggle {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  body {
    padding-top: 60px !important;
  }
}

/* Reduzierter Weißraum für Mobile Header */
.main-header {
  padding: 0.4rem 0 !important;
}

.header-container {
  padding: 0.4rem var(--spacing-md) !important;
}

.logo-container {
  margin-bottom: 0.2rem !important;
  margin-top: 0.2rem !important;
}

.hamburger-container {
  top: 0.4rem !important;
  right: var(--spacing-md) !important;
  width: 30px !important;
  height: 30px !important;
}

.hamburger-menu {
  width: 25px !important;
  height: 20px !important;
}

.hamburger-menu span {
  height: 2px !important;
}

/* ===== KORREKTUR VERTIKALE ZENTRIERUNG LOGO ===== */
@media (max-width: 768px) {
  .header-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.4rem 0.5rem !important;
    padding-left: 100px !important;
    min-height: 50px;
    position: relative;
  }

  .logo-container {
    position: absolute !important;
    left: 0.5rem !important;
    top: 0;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    width: auto !important;
    z-index: 2;
  }

  .logo-container img {
    height: 60px !important;
    width: auto !important;
    max-width: none !important;
    transform: scale(0.5);
    transform-origin: left center;
  }

  .slogan {
    flex: 1 1 auto !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: var(--grey-medium) !important;
    text-align: left !important;
    margin: 0 0.5rem 0 1.5rem !important;
    line-height: 1.3 !important;
    display: block !important;
  }

  .hamburger-container {
    flex: 0 0 auto !important;
    width: 14px !important;
    height: 14px !important;
    position: relative !important;
    top: 0.2rem !important;
    right: calc(var(--spacing-md) * 0.5) !important;
  }
  
  .hamburger-menu span {
    height: 1px !important;
  }
}

/* Anpassungen für sehr kleine Geräte */
@media (max-width: 380px) {
  .header-container {
    padding-left: 85px !important;
  }

  .logo-container img {
    height: 55px !important;
    transform: scale(0.45);
  }

  .slogan {
    font-size: 0.65rem !important;
    margin-left: 1.5rem !important;
  }

  .hamburger-container {
    width: 12px !important;
    height: 12px !important;
  }
}