:root {
  --font: 'General Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --header-h: 3.75rem;
}

html {
  font-size: 16px; /* Base font size for rem calculations */
}

* { 
  box-sizing: border-box; 
  color: #000000;
  font-family: var(--font);
}

html, body { 
  height: 100%; 
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding-top: 3.75rem;
  font-family: var(--font);
  line-height: 1.6;
  overflow: hidden; /* prevent body scrolling beyond main */
}

.container {
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 1.25rem;
  width: 100%;
}

.site-header {
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.0625rem 0;
}

.site-header .container {
  padding-top: 0;
  padding-bottom: 0;
}





.site-footer {
  background: #ffffff;
  color: #000000;
  text-align: center;
  padding: 0.3125rem 0;
  margin-top: auto;
  position: relative;
}

.site-footer .container {
  padding: 0.3125rem 1.25rem;
  max-width: 100%;
  overflow-x: hidden;
}

.section-footer .container {
  max-width: 100%;
  overflow-x: hidden;
}

.header-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
}

.menu-toggle:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.menu-line {
  display: block;
  width: 1.75rem;
  height: 0.0625rem;
  background-color: #000000;
  border-radius: 999px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-line.line-top {
  transform: translate(-50%, -0.18rem);
}

.menu-line.line-bottom {
  transform: translate(-50%, 0.18rem);
}

.menu-toggle.is-open .menu-line.line-top {
  transform: translate(-50%, 0);
}

.menu-toggle.is-open .menu-line.line-bottom {
  transform: translate(-50%, 0);
  opacity: 0;
}

.mobile-menu {
  display: none;
  width: 100%;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Force hide mobile menu on desktop, even if is-open class exists */
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: none !important;
  }
  
  body.menu-open #site-main {
    overflow: auto !important;
  }
  
  body.menu-open #site-main.snap-container {
    pointer-events: auto !important;
  }
  
  body.menu-open .nav-dots {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  .menu-toggle.is-open .menu-line.line-top {
    transform: translate(-50%, -0.18rem) !important;
  }
  
  .menu-toggle.is-open .menu-line.line-bottom {
    transform: translate(-50%, 0.18rem) !important;
    opacity: 1 !important;
  }
}

body.menu-open #site-main {
  overflow: hidden;
}

body.menu-open #site-main.snap-container {
  pointer-events: none;
}

/* Hide navigation dots when mobile menu is open */
body.menu-open .nav-dots {
  opacity: 0;
  pointer-events: none;
}

/* Ensure header and brand remain visible when mobile menu is open */
body.menu-open .site-header {
  z-index: 1002;
}

body.menu-open .header-center {
  z-index: 1003;
  position: relative;
}

body.menu-open .brand {
  position: relative;
  z-index: 1004;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  color: #000000;
  font-size: 1rem;
  font-weight: 200;
  transition: text-decoration 0.2s ease;
}

.mobile-menu a:hover {
  text-decoration: underline;
  text-decoration-color: #000000;
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.25rem;
}

.header-left {
  text-align: left;
  margin-left: -10rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1 1 0;
  justify-content: flex-start;
}

.header-left a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #000000;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 200;
  transition: text-decoration 0.2s ease;
  position: relative;
  height: var(--header-h, 4.5rem);
  padding-top: 0;
  padding-bottom: 0;
}

.header-left a:first-child {
  color: #000;
}

.header-left a:hover {
  text-decoration: underline;
  text-decoration-color: #000000;
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.25rem;
}

.header-left .divider {
  color: #000000;
  font-size: 1rem;
}

.header-center {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 1001;
  height: var(--header-h, 4.5rem);
  width: auto;
  flex: 0 0 auto;
}

.header-right {
  text-align: right;
  margin-right: -10rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1 1 0;
  justify-content: flex-end;
}

.header-right a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #000000;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 200;
  transition: text-decoration 0.2s ease;
  position: relative;
  height: var(--header-h, 4.5rem);
  padding-top: 0;
  padding-bottom: 0;
}

.header-right a:hover {
  text-decoration: underline;
  text-decoration-color: #000000;
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.25rem;
}

.header-right .divider {
  color: #000000;
  font-size: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  font-size: 2rem;
  transition: color 0.2s ease;
}

.header-center a:not(.brand) {
  text-decoration: none;
  color: #000000;
  font-size: 1rem;
  font-weight: 200;
  transition: color 0.2s ease;
}

.brand:hover,
.header-center a:not(.brand):hover {
  cursor: pointer;
}

.social-icons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.1875rem;
  gap: 0.5rem;
}

.social-icon {
  display: inline-block;
  color: black;
  transition: opacity 0.2s ease;
}

.social-icon:hover {
  opacity: 1;
}

/* YouTube hover effect */
.social-icon.youtube:hover {
  color: #FF0000;
}

/* LinkedIn hover effect */
.social-icon.linkedin:hover {
  color: #0077B5;
}

/* X (Twitter) hover effect */
.social-icon.x:hover {
  color: #1DA1F2;
}

/* Instagram hover effect */
.social-icon.instagram:hover {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* Ghost Theme Required CSS Classes */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 85vw;
  margin: auto calc(50% - 50vw);
  transform: translateX(calc(50vw - 50%));
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

.post-media img,
.feature {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

h1, h2, h3 {
  margin: 1em 0 0.5em;
  color: #000000;
}

p {
  margin: 0.5em 0;
  color: #000000;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
}

.footer-left {
  text-align: left;
  margin-left: -10rem;
  flex-shrink: 0;
}

.footer-left a {
  display: inline-block;
  text-decoration: none;
  color: #000000;
  margin: 0;
  font-size: 1rem;
  font-weight: 200;
  white-space: nowrap;
}

.footer-center {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.footer-center p {
  margin: 0;
  font-size: 1rem;
  font-weight: 200;
  color: #000000;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-right {
  text-align: right;
  margin-right: -10rem;
  flex-shrink: 0;
}

.footer-right a {
  display: inline-block;
  text-decoration: none;
  color: #000000;
  margin: 0;
  font-size: 1rem;
  font-weight: 200;
  white-space: nowrap;
}

/* Hero styles now handled by .snap-section */

.hero-content {
  text-align: center;
  max-width: 50rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
}

.snap-section:not(#hero) .hero-content {
  max-width: 45rem; /* 720px aligns follow-up sections with hero layout */
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
}

.hero-headshot {
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-headshot-label {
  font-size: 0.875rem;
  color: #000000;
  text-align: center;
  font-family: var(--font);
  padding: 0 1rem;
  line-height: 1.3;
}

.headshot-img {
  width: 240px;
  height: 240px;
  aspect-ratio: 1 / 1;
  border-radius: 25px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.headshot-placeholder-text {
  text-align: center;
  font-family: var(--font);
  font-size: 14px;
  color: #555;
  padding: 0 1rem;
  line-height: 1.3;
}

.section-heading {
  font-size: 4.25rem;
  font-weight: 700;
  color: #000000;
  text-align: center;
  font-family: var(--font);
  margin: 0 auto 0.75rem auto;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.222rem;
  font-weight: 300;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
  color: #71797E;
  opacity: 1;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-cta {
  background: black;
  color: white;
  border: none;
  padding: 0.625rem 3.75rem;
  font-size: 1.1rem;
  font-weight: 400;
  border-radius: 25px;
  cursor: pointer;
  transition: text-decoration 0.2s ease;
  font-family: var(--font);
  text-decoration: none;
  position: relative;
}

.hero-cta:hover {
  background: black;
  text-decoration: underline;
  text-decoration-color: white;
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.25rem;
}

.profile-section {
  padding: 5rem 1.25rem;
  background: white;
  text-align: center;
  margin-top: 0;
}

.profile-container {
  max-width: 50rem;
  width: 100%;
  margin: 0 auto;
}

.profile-image-placeholder {
  width: 12.5rem;
  height: 12.5rem;
  max-width: 100%;
  background: #f5f5f5;
  border: 0.1875rem solid #e0e0e0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-image-placeholder:hover {
  border-color: #333;
  background: #f0f0f0;
}

.profile-image-text {
  color: #666;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.4;
  max-width: 9.375rem;
}

/* Responsive Design - Tablet Large */
@media (max-width: 1024px) {
  .headshot-img {
    width: 200px;
    height: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 25px;
  }
}

/* Responsive Design - Tablet */
@media (max-width: 992px) {
  .container {
    padding: 1rem;
  }
  
  .site-header {
    background: #ffffff;
  }

  .site-header .container {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    min-height: var(--header-h, 4.5rem);
  }
  
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 1.75rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
  }
  
  .menu-toggle.is-open .menu-line.line-bottom {
    opacity: 0;
  }
  
  .header-layout {
    justify-content: flex-start;
    position: relative;
    width: 100%;
    align-items: center;
  }
  
  .header-center {
    position: relative;
    left: auto;
    transform: none;
    height: auto;
    z-index: 1003;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  
  .brand {
    position: relative;
    z-index: 1004;
    display: inline-flex;
    align-items: center;
    padding-left: 0.125rem;
    margin: 0;
  }
  
  .header-left {
    display: none;
  }
  
  .header-right {
    display: none;
  }
  
  .site-footer .container,
  .section-footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  
  .footer-layout {
    gap: 0.25rem;
  }
  
  .footer-left {
    margin-left: 0;
    text-align: left;
  }
  
  .footer-right {
    margin-right: 0;
    text-align: right;
  }
  
  .footer-center {
    flex: 1;
    text-align: center;
  }
  
  .footer-center p {
    font-size: 1rem;
    font-weight: 200;
  }
  
  .footer-left a,
  .footer-right a {
    font-size: 1rem;
    font-weight: 200;
  }
  
  .hero-content {
    max-width: 90%;
  }
}

/* Desktop: Replicate mobile footer layout */
@media (min-width: 993px) {
  .site-footer .container,
  .section-footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  
  .footer-layout {
    gap: 0.25rem;
  }
  
  .footer-left {
    margin-left: 0;
    text-align: left;
  }
  
  .footer-right {
    margin-right: 0;
    text-align: right;
  }
  
  .footer-center {
    flex: 1;
    text-align: center;
  }
  
  .footer-center p {
    font-size: 1rem;
    font-weight: 200;
  }
  
  .footer-left a,
  .footer-right a {
    font-size: 1rem;
    font-weight: 200;
  }
  
  .snap-section.is-last .section-footer {
    position: static;
    width: 100%;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  padding-top: var(--header-h, 4.5rem);
  background: #ffffff;
  overflow-y: auto;
  z-index: 1001;
}

.mobile-menu a {
  padding: 0.75rem 1.25rem;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  body {
    padding-top: 3.5rem;
  }
  
  .container {
    padding: 1rem;
  }
  
  .hero {
    min-height: 100vh;
    padding: 2.5rem 1.25rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-headshot {
    width: auto;
    height: auto;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-headshot-label {
    font-size: 0.75rem;
  }
  
  .headshot-img {
    width: 160px;
    height: 160px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 25px;
  }
  
  .section-heading {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.075rem;
    max-width: 28rem;
    line-height: 1.5;
  }
  
  .hero-cta {
    padding: 0.5rem 2.5rem;
    font-size: 1rem;
  }
  
  .profile-section {
    padding: 3.75rem 1.25rem;
  }
  
  .profile-image-placeholder {
    width: 9.375rem;
    height: 9.375rem;
  }
  
  .profile-image-text {
    font-size: 0.8rem;
    max-width: 7.5rem;
  }
  
  .header-left {
    margin-left: -3.75rem;
  }
  
  .header-right {
    margin-right: -3.75rem;
  }
  
  .site-footer .container,
  .section-footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  
  .footer-layout {
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  
  .footer-left {
    margin-left: 0;
    text-align: left;
    flex-shrink: 0;
  }
  
  .footer-center {
    flex: 1;
    text-align: center;
    min-width: 0;
    margin: 0;
  }
  
  .footer-right {
    margin-right: 0;
    text-align: right;
    flex-shrink: 0;
  }
  
  .footer-center p {
    font-size: 1rem;
    font-weight: 200;
    line-height: 1.2;
  }
  
  .footer-left a,
  .footer-right a {
    font-size: 1rem;
    font-weight: 200;
  }
  
  .mobile-menu a {
    padding-left: 1.75rem;
    font-size: 1.075rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-headshot {
    width: 7.5rem;
    height: 7.5rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-headshot-label {
    font-size: 0.7rem;
    padding: 0 0.75rem;
  }
  
  .section-heading {
    font-size: 3rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 0.978rem;
    max-width: 20rem;
    line-height: 1.5;
  }
  
  .hero-cta {
    padding: 0.375rem 1.875rem;
    font-size: 0.9rem;
  }
  
  .profile-section {
    padding: 2.5rem 1.25rem;
  }
  
  .profile-image-placeholder {
    width: 7.5rem;
    height: 7.5rem;
  }
  
  .profile-image-text {
    font-size: 0.7rem;
    max-width: 6.25rem;
  }
  
  .header-left {
    margin-left: -1.875rem;
  }
  
  .header-right {
    margin-right: -1.875rem;
  }
  
  .site-footer .container,
  .section-footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  
  .footer-layout {
    gap: 0.25rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  
  .footer-left {
    margin-left: 0;
    text-align: left;
    flex-shrink: 0;
  }
  
  .footer-center {
    flex: 1;
    text-align: center;
    min-width: 0;
    margin: 0;
  }
  
  .footer-right {
    margin-right: 0;
    text-align: right;
    flex-shrink: 0;
  }
  
  .footer-center p {
    font-size: 0.88rem;
    font-weight: 200;
    line-height: 1.2;
  }
  
  .footer-left a,
  .footer-right a {
    font-size: 0.88rem;
    font-weight: 200;
  }
  
  .mobile-menu a {
    font-size: 0.978rem;
  }
}

/* Social Icons Hover Effects - Override all previous styles */
.site-header .social-icon:hover {
  opacity: 1 !important;
}

.site-header .social-icon.youtube:hover {
  color: #FF0000 !important;
  transform: scale(1.1) !important;
}

.site-header .social-icon.youtube:hover svg {
  fill: #FF0000 !important;
}

.site-header .social-icon.linkedin:hover {
  color: #0077B5 !important;
  transform: scale(1.1) !important;
}

.site-header .social-icon.linkedin:hover svg {
  fill: #0077B5 !important;
}

.site-header .social-icon.x:hover {
  color: #000000 !important;
  transform: scale(1.1) !important;
}

.site-header .social-icon.x:hover svg {
  fill: #000000 !important;
}

.site-header .social-icon.instagram:hover {
  color: #E1306C !important;
  transform: scale(1.1) !important;
}

.site-header .social-icon.instagram:hover svg {
  fill: #E1306C !important;
}

/* Scroll Snap Container */
/* Apply snap-container styles when snap-sections are present */
#site-main:has(.snap-section),
#site-main.snap-container {
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0;
  /* Don't use contain as it can affect position:fixed children */
  position: relative;
}

#site-main:has(.snap-section)::after,
#site-main.snap-container::after {
  content: '';
  display: block;
  height: 0;
}

/* Scroll Snap Sections */
.snap-section {
  min-height: 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: white;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  position: relative;
}

.snap-section > *:last-child { 
  margin-bottom: 0; 
}

.snap-section.is-last { 
  padding-bottom: 0 !important; 
}

.snap-section.is-last {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 100%;
  padding: 0;
}

.snap-section.is-last .hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.snap-section.is-last .section-footer {
  position: static;
  width: 100%;
  flex-shrink: 0;
  margin-top: auto;
}

/* Match footer padding to header padding for symmetry */
/* Align Impressum with "Rufen Sie mich an" and Datenschutz with "Instagram" */
/* Responsive padding: Desktop stays at ~3.5rem, mobile reduces automatically */
.last-section .section-footer .container {
  padding-left: clamp(1rem, 4vw, 4rem);
  padding-right: clamp(1rem, 4vw, 4rem);
  box-sizing: border-box;
}

/* Hero Arrow - Non-interactive visual indicator */
#hero,
#impressum-hero,
#datenschutz-hero {
  position: relative;
  overflow: visible;
  min-height: 100%;
}

.hero-arrow {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 1;
  z-index: 2000;
  animation: hero-bounce 1.6s ease-in-out infinite;
}

.hero-arrow svg {
  display: block;
}

.hero-arrow svg path {
  stroke-width: 1;
}

@keyframes hero-bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(0.375rem);
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-arrow {
    animation: none;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero-arrow {
    bottom: 1rem;
  }
}


/* Vertical Navigation Dots - Refined */
.nav-dots {
  position: fixed !important;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
  /* Ensure nav dots are positioned relative to viewport, not container */
  /* Force positioning relative to viewport */
  left: auto !important;
  bottom: auto !important;
}

.nav-dot {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background-color: #D3D3D3;
  cursor: pointer;
  transition: transform 0.3s ease;
  border: none;
}

.nav-dot:hover {
  transform: scale(1.15);
}

.nav-dot.active {
  background-color: #000000;
}

/* Mobile responsiveness for navigation dots */
@media (max-width: 768px) {
  .nav-dots {
    right: 1.25rem;
    gap: 0.5rem;
  }
  
  .nav-dot {
    width: 0.225rem;
    height: 0.225rem;
  }
}

/* Hide global footer on homepage only */
.home footer {
  display: none !important;
}

/* Alternative: Hide footer on homepage using body class */
body.home .site-footer {
  display: none !important;
}

/* ===== VERTICAL OFFSET FIX ===== */
:root { --header-h: 4.5rem; }

html, body { margin: 0; }

/* If header is fixed, keep top space. If not, no extra padding. */
.site-header { z-index: 1000; }
body.header-fixed { padding-top: var(--header-h); }
body:not(.header-fixed) { padding-top: 0; }

/* Avoid accidental global color overrides that make text vanish */
* { color: inherit; }
html, body { color: #000000; }


/* Last section holds the footer at the bottom */
.last-section {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible; /* important to not clip the footer or arrow */
}
.site-footer {
  margin-top: auto;   /* pushes footer to bottom inside last section */
  position: static;
  z-index: 1;
}

/* Safety: sections don't stack above footer/arrow */
section { position: relative; z-index: 0; }

/* Page sections (Impressum, Datenschutz, etc.) - same layout as homepage sections */
.page-section {
  min-height: calc(var(--vh) - var(--header-h, 4.5rem));
  scroll-snap-align: none; /* Don't participate in scroll snap */
  display: flex;
  flex-direction: column;
  background: white;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Ensure page section content is vertically aligned like homepage sections */
.page-section .hero-content {
  max-width: 45rem; /* Same as snap-section:not(#hero) .hero-content */
  margin: 0 auto;
  text-align: center;
  padding-top: 0;
  padding-bottom: 0;
}

.page-content {
  font-size: 1.222rem;
  font-weight: 400;
  line-height: 1.5;
  color: #71797E;
  text-align: center;
  max-width: 45rem;
  margin: 0 auto;
  width: 100%;
}

.page-content p {
  margin: 0 0 1.5rem 0;
  font-size: 1.222rem;
  font-weight: 400;
  line-height: 1.5;
  color: #71797E;
}

.page-content p:last-child {
  margin-bottom: 0;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  font-size: 1.222rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.5;
  color: #000000;
}

.page-content a {
  color: #000000;
  text-decoration: underline;
  text-decoration-color: #000000;
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.25rem;
}

.page-content a:hover {
  text-decoration: underline;
}

/* Desktop adjustments for page content - shift sections up for better vertical centering */
@media (min-width: 769px) {
  /* Shift all Impressum sections up on desktop */
  #impressum-hero .hero-content,
  #impressum-company .hero-content,
  #impressum-contact .hero-content,
  #impressum-liability .hero-content,
  #impressum-data .hero-content,
  #impressum-footer .hero-content {
    transform: translateY(-1.5rem);
  }
  
  /* Shift all Datenschutz sections up on desktop */
  #datenschutz-hero .hero-content,
  #datenschutz-verantwortlicher .hero-content,
  #datenschutz-hosting .hero-content,
  #datenschutz-datenverarbeitung .hero-content,
  #datenschutz-kontaktaufnahme .hero-content,
  #datenschutz-newsletter .hero-content,
  #datenschutz-soziale-medien .hero-content,
  #datenschutz-datenuebermittlung .hero-content,
  #datenschutz-speicherdauer .hero-content,
  #datenschutz-rechte .hero-content,
  #datenschutz-footer .hero-content {
    transform: translateY(-1.5rem);
  }
}

/* Responsive adjustments for page content */
@media (max-width: 768px) {
  /* Shift all Impressum sections up on mobile for better vertical centering */
  #impressum-hero .hero-content,
  #impressum-company .hero-content,
  #impressum-contact .hero-content,
  #impressum-liability .hero-content,
  #impressum-data .hero-content,
  #impressum-footer .hero-content {
    transform: translateY(-2rem);
  }
  
  /* Shift all Datenschutz sections up on mobile for better vertical centering */
  #datenschutz-hero .hero-content,
  #datenschutz-verantwortlicher .hero-content,
  #datenschutz-hosting .hero-content,
  #datenschutz-datenverarbeitung .hero-content,
  #datenschutz-kontaktaufnahme .hero-content,
  #datenschutz-newsletter .hero-content,
  #datenschutz-soziale-medien .hero-content,
  #datenschutz-datenuebermittlung .hero-content,
  #datenschutz-speicherdauer .hero-content,
  #datenschutz-rechte .hero-content,
  #datenschutz-footer .hero-content {
    transform: translateY(-2rem);
  }
  
  .page-content {
    font-size: 1.075rem;
    max-width: 28rem;
  }
  
  .page-content p {
    font-size: 1.075rem;
  }
  
  .page-content h1,
  .page-content h2,
  .page-content h3,
  .page-content h4,
  .page-content h5,
  .page-content h6 {
    font-size: 1.075rem;
  }
}

@media (max-width: 480px) {
  .page-content {
    font-size: 1rem;
    max-width: 20rem;
  }
  
  .page-content p {
    font-size: 1rem;
  }
  
  .page-content h1,
  .page-content h2,
  .page-content h3,
  .page-content h4,
  .page-content h5,
  .page-content h6 {
    font-size: 1rem;
  }
  
  .headshot-img {
    width: 130px;
    height: 130px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 25px;
  }
}
