/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --e-global-color-primary: #7C284E;
  --e-global-color-secondary: #668AA3;
  --e-global-color-text: #7A7A7A;
  --e-global-color-accent: #61CE70;
  --e-global-color-white: #FFFFFF;
}

/* ===== GLOBAL RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
  overflow-x: clip;
}

body {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: normal;
  color: var(--e-global-color-text);
  line-height: 1.6;
  overflow-x: clip;
}

a {
  color: var(--e-global-color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h2 {
  font-weight: 200;
}

ul {
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

ul li {
  text-indent: -1em;
  padding-left: 1em;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--e-global-color-primary);
  color: #fff;
  padding: 10px 20px;
  z-index: 10000;
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
}

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  height: 85px;
  border-bottom: 10px solid var(--e-global-color-primary);
  box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 85px;
  padding: 0 15px;
}

.header-logo {
  width: 17%;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  align-self: flex-start;
}

.header-logo a {
  display: block;
  background: #fff;
  border-radius: 0 0 12px 12px;
  padding: 8px 12px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}

/* Large horizontal logo (default at top) */
.header-logo .logo-large {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  display: block;
  transition: all 0.4s ease;
}

/* Compact vertical logo (hidden by default) */
.header-logo .logo-compact {
  width: 100%;
  max-height: 65px;
  object-fit: contain;
  display: none;
  transition: all 0.4s ease;
}

/* Compact logo after scrolling past hero */
.header-logo.compact {
  align-self: center;
}

.header-logo.compact a {
  background: transparent;
  box-shadow: none;
  padding: 4px 0;
  border-radius: 0;
}

.header-logo.compact .logo-large {
  display: none;
}

.header-logo.compact .logo-compact {
  display: block;
}

.header-nav {
  width: 69%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.header-nav ul li {
  text-indent: 0;
  padding-left: 0;
  margin: 0 10px;
}

.header-nav a {
  font-family: "Varela Round", sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--e-global-color-text);
  text-decoration: none;
  padding: 15px 0;
  display: block;
  position: relative;
  transition: color 0.3s ease;
}

.header-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--e-global-color-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.header-nav a:hover {
  color: var(--e-global-color-primary);
  text-decoration: none;
}

.header-nav a:hover::after {
  transform: scaleX(1);
}

.header-nav a.active {
  color: var(--e-global-color-secondary);
}

.header-nav a.active::after {
  transform: scaleX(1);
  background: var(--e-global-color-primary);
}

.header-phone {
  width: 14%;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: 15px;
}

.header-phone a {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--e-global-color-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-phone a:hover {
  text-decoration: none;
}

.header-phone svg {
  width: 16px;
  height: 16px;
  fill: var(--e-global-color-secondary);
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
  z-index: 1001;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: var(--e-global-color-primary);
  transition: all 0.3s ease;
  display: block;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 95px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 25px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  z-index: 999;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav ul li {
  text-indent: 0;
  padding-left: 0;
}

/* ===== CONTENT PAGES ===== */
.entry-content .wp-block-heading {
  padding-top: 20px;
}

.mobile-nav a {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: var(--e-global-color-text);
  padding: 12px 0;
  display: block;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.mobile-nav a:hover {
  color: var(--e-global-color-primary);
  text-decoration: none;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--e-global-color-secondary);
  padding: 30px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-left img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer-left p {
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.footer-right {
  display: flex;
  align-items: center;
}

.impressum-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-direction: row-reverse;
  background: var(--e-global-color-primary);
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 200;
  padding: 12px 24px;
  border-radius: 15px 16px 16px 0px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.impressum-btn:hover {
  background: #fff;
  color: var(--e-global-color-primary);
  text-decoration: none;
}

.impressum-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: fill 0.3s ease;
}
