/*
Theme Name: Haarstudio Waltrop Custom Theme
Theme URI: https://haarstudio-waltrop.de
Author: AI Assistant
Description: Ein maßgeschneidertes WordPress‑Theme für das Haarstudio Waltrop. Das Design orientiert sich an der gelieferten Musterseite und verwendet moderne Layouts und Farben (Pink und Dunkelblau) sowie eigene Bildmaterialien.
Version: 1.0
*/

/* Reset & Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f7f5f3;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

/* Header */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  /* fix the header at the top so it stays visible while scrolling */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
}

/* Navigation toggle (hamburger) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  /* provide a consistent clickable area */
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1101;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  background-color: #0b4473;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* When the nav toggle is open, adjust the bars so they overlap neatly and create a clear X icon.
   Removing the margins ensures the rotated bars sit on top of each other and appear as a single cross.
   We also switch the colour to our signature pink to improve contrast against the white overlay. */
.nav-toggle.open span {
  margin: 0;
  background-color: #e4237a;
}

@media (max-width: 768px) {
  /* Show the hamburger toggle on small screens */
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
  }

  /* Hide the desktop horizontal list style */
  .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* Set the mobile navigation container off‑canvas by default */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    /* Increase padding at the top to account for the fixed header height and safe area on mobile devices */
    padding: calc(60px + env(safe-area-inset-top)) 24px 24px;
    /* Let the menu container shrink to fit the number of items instead of filling the viewport */
    height: auto;
    max-height: none;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  /* When open, slide the navigation into view */
  .main-nav.open {
    transform: translateY(0);
  }

  /* Lay out the mobile menu items vertically with spacing */
  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  /* Prevent body scrolling when the mobile menu is open */
  body.nav-open {
    overflow: hidden;
  }
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0b4473;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: #0b4473;
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #e4237a;
}

/* Hero section */
.hero {
  position: relative;
  color: #ffffff;
  text-align: center;
  padding: 120px 20px;
  /* Use layered backgrounds: gradient on top, image below */
  background-image:
    linear-gradient(135deg, rgba(228,35,122,0.85) 0%, rgba(228,35,122,0.85) 35%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 65%, rgba(11,68,115,0.85) 65%, rgba(11,68,115,0.85) 100%),
    url('assets/images/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero .btn {
  display: inline-block;
  background-color: #e4237a;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.hero .btn:hover {
  background-color: #c31b62;
}

/* Services section */
#services {
  padding: 80px 0;
  text-align: center;
  background-color: #ffffff;
}

#services h2 {
  font-size: 2rem;
  color: #0b4473;
  margin-bottom: 40px;
}

.service-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-item {
  background-color: #0b4473;
  color: #ffffff;
  padding: 30px 20px;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item img {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px auto;
}

.service-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Price section */
#preise {
  background-color: #f7f5f3;
  padding: 80px 0;
  text-align: center;
}

#preise h2 {
  font-size: 2rem;
  color: #0b4473;
  margin-bottom: 40px;
}

.price-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.price-col {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 30px 20px;
  width: 280px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.price-col h3 {
  font-size: 1.4rem;
  color: #e4237a;
  margin-bottom: 15px;
}

.price-col ul {
  list-style: none;
  text-align: left;
}

.price-col li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dotted #ddd;
  font-size: 0.95rem;
  color: #333;
}

.price-col li:last-child {
  border-bottom: none;
}

.price-col span {
  color: #0b4473;
  font-weight: bold;
}

/* Contact section */
#kontakt {
  background-color: #ffffff;
  padding: 80px 0;
}

#kontakt h2 {
  font-size: 2rem;
  color: #0b4473;
  text-align: center;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.contact-details, .opening-hours, .cta-appointment {
  flex: 1 1 250px;
}

.contact-details h3,
.opening-hours h3 {
  color: #e4237a;
  margin-bottom: 10px;
}

.opening-hours ul {
  list-style: none;
}

.opening-hours li {
  margin-bottom: 6px;
}

.cta-appointment {
  display: flex;
  align-items: center;
  justify-content: center;
}

.button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.button.secondary {
  background-color: #0b4473;
  color: #ffffff;
}

.button.secondary:hover {
  background-color: #092e4f;
}

/* Footer */
.site-footer {
  background-color: #0b4473;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .service-items, .price-columns, .contact-info {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 2rem;
  }
}