/* Tischlerei Peteritsch — Base CSS */
/* Fonts, Variables, Reset, Header, Nav, Footer */

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #00a651;
  --primary-dark: #008542;
  --gold: #b8953f;
  --dark: #1a1a1a;
  --cream: #f9f8f6;
  --white: #ffffff;
  --text: #444;
  --text-light: #666;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.1);
  --gradient-brand: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
  --gradient-dark: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
  --gradient-green: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .3s; }
a:hover { color: var(--primary-dark); }
::selection { background: var(--primary); color: var(--white); }

/* === HEADER === */
.site-header {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .3s;
}
.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-brand);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img {
  max-height: 70px;
  width: auto;
  height: auto;
  transition: transform .3s;
}
.site-logo:hover img { transform: scale(1.03); }

/* === NAV === */
.nav-menu { display: flex; align-items: center; }
.nav-list {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
}
.nav-list a {
  display: block;
  padding: .75rem 1.1rem;
  color: var(--dark);
  font-size: .88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  position: relative;
  transition: color .3s;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--gold);
  transition: all .3s;
  transform: translateX(-50%);
}
.nav-list a:hover::after,
.nav-list .active > a::after { width: calc(100% - 2rem); }
.nav-list a:hover { color: var(--primary); }
.nav-list .active > a { color: var(--primary); }

/* Dropdown */
.menu-item-has-children:hover > a::after { width: 0 !important; }
.menu-item-has-children { position: relative; }
.sub-menu {
  list-style: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border-top: none;
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s;
  z-index: 100;
}
.menu-item-has-children:hover > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-menu a {
  padding: .7rem 1.25rem;
  font-size: .85rem;
  text-transform: none;
  letter-spacing: 0;
}
.sub-menu a::after { display: none; }
.sub-menu a:hover { background: var(--cream); }
.submenu-toggle { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 24px;
  position: relative; z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--dark);
  position: absolute; left: 0;
  transition: all .3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.is-open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0; visibility: hidden;
  transition: all .3s;
}
.nav-overlay.is-visible { opacity: 1; visibility: visible; }

/* === FOOTER === */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 1.5rem 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-brand p {
  font-size: .95rem;
  line-height: 1.7;
  margin-top: 1rem;
}
.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: .9rem;
  transition: color .3s;
}
.footer-links a:hover { color: var(--primary); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: .75rem;
  margin-bottom: 1rem; font-size: .9rem;
}
.footer-contact-item svg {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  fill: none; stroke: var(--primary); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.footer-contact-item a { color: rgba(255,255,255,0.7); }
.footer-contact-item a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--primary); }
.footer-legal { display: flex; gap: 1.5rem; }

/* === MOBILE === */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 0; right: -300px;
    width: 300px; height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 0 2rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right .3s;
    z-index: 1000;
    overflow-y: auto;
  }
  .nav-menu.is-open { right: 0; }
  .nav-list { flex-direction: column; width: 100%; }
  .nav-list a { padding: 1rem 2rem; font-size: .95rem; }
  .nav-list a::after { display: none; }
  .sub-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    opacity: 1; visibility: visible;
    transform: none;
    display: none;
    background: var(--cream);
  }
  .sub-menu.is-open { display: block; }
  .submenu-toggle {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: none; border: none;
    cursor: pointer;
    position: absolute; right: .5rem; top: .5rem;
    color: var(--text-light);
    transition: transform .3s;
  }
  .submenu-toggle.is-open { transform: rotate(180deg); }
  .menu-item-has-children { position: relative; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-logo img { max-height: 50px; }
}
@media (max-width: 560px) {
  .header-inner { padding: .75rem 1rem; }
  .site-logo img { max-height: 42px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
}
