/* ============================================
   Wäscherei Müller – Stylesheet
   Design-Konzept: Waschblau-Schema
   ============================================ */

/* --- CSS-Variablen (Farbpalette) --- */
:root {
  --color-primary: #2B6CB0;
  --color-primary-dark: #1A4480;
  --color-secondary: #EBF4FA;
  --color-accent: #38A169;
  --color-warning: #E53E3E;
  --color-bg-light: #FFFFFF;
  --color-bg-neutral: #F7FAFC;
  --color-text-main: #1A202C;
  --color-text-secondary: #4A5568;
  --color-text-light: #A0AEC0;
  --color-border: #E2E8F0;

  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;

  --container-max: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-main);
  background: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-main);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  text-decoration: underline;
}

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

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Section spacing --- */
section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition), background var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
  filter: brightness(0.95);
  transform: scale(0.98);
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-secondary);
  text-decoration: none;
  filter: brightness(0.95);
  transform: scale(0.98);
}

.btn-large {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo svg {
  height: 40px;
  width: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-main);
}

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

.nav-links a.active {
  color: var(--color-primary);
}

.nav-cta {
  margin-left: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-text-main);
}

/* --- Hero Section --- */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #fff 100%);
  padding: 4rem 1.5rem;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  stroke: var(--color-primary);
  stroke-width: 2;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  margin-bottom: 1rem;
}

.service-card .price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
}

/* --- Price Table --- */
.price-table-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.price-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
}

.price-table thead th:last-child {
  text-align: right;
}

.price-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.price-table tbody tr:nth-child(odd) {
  background: #fff;
}

.price-table tbody tr:nth-child(even) {
  background: var(--color-secondary);
}

.price-table td:last-child {
  text-align: right;
  font-family: var(--font-heading);
  font-weight: 700;
  white-space: nowrap;
}

.price-section {
  margin-bottom: 3rem;
}

.price-section h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.price-note {
  background: var(--color-bg-neutral);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* --- About Section --- */
.about-flex {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-flex .about-text {
  flex: 1;
  max-width: 500px;
}

.about-flex .about-image {
  flex: 1;
}

.about-flex .about-image img,
.about-flex .about-image .img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 1rem;
}

.about-text h2 {
  margin-bottom: 1rem;
}

.values-list {
  margin-top: 1.5rem;
}

.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-secondary);
}

.values-list li svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.values-list li strong {
  color: var(--color-text-main);
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
}

.team-card .img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.team-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.team-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--color-primary);
  text-align: center;
  padding: 3rem 1.5rem;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.cta-section .btn {
  background: #fff;
  color: var(--color-primary);
}

.cta-section .btn:hover {
  background: var(--color-secondary);
  text-decoration: none;
}

/* --- Contact Layout --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-info p svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-info a {
  color: var(--color-text-secondary);
}

.contact-info a:hover {
  color: var(--color-primary);
}

/* --- Opening Hours Widget --- */
.hours-widget {
  background: var(--color-bg-neutral);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.hours-widget h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.hours-widget h3 svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
  stroke-width: 2;
}

.hours-list {
  margin-bottom: 1rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-weight: 500;
}

.hours-list li .day {
  text-align: left;
}

.hours-list li .time {
  text-align: right;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.hours-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.hours-badge.open {
  background: var(--color-accent);
}

.hours-badge.closed {
  background: var(--color-warning);
}

/* --- Contact Form --- */
.contact-form {
  background: var(--color-bg-neutral);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-text-main);
}

.form-group label .required {
  color: var(--color-warning);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-main);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox input {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}

.form-checkbox label {
  font-weight: 400;
  font-size: 0.95rem;
}

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.form-message.success {
  display: block;
  background: rgba(56, 161, 105, 0.1);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.form-message.error {
  display: block;
  background: rgba(229, 62, 62, 0.1);
  color: var(--color-warning);
  border: 1px solid var(--color-warning);
}

/* --- Google Maps Embed --- */
.maps-embed {
  margin-top: 3rem;
}

.maps-embed h3 {
  margin-bottom: 1rem;
}

.maps-embed iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: var(--radius);
}

/* --- Process Steps (Services page) --- */
.process-steps {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.process-step {
  text-align: center;
  max-width: 250px;
}

.process-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.process-step h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.95rem;
}

/* --- Trust Elements --- */
.trust-bar {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
  stroke-width: 2;
  flex-shrink: 0;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.breadcrumb a {
  color: var(--color-text-secondary);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: var(--color-text-light);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 3rem 1.5rem 1.5rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-col p,
.footer-col a {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col p {
  margin-bottom: 0.5rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.footer-bottom a {
  color: var(--color-text-light);
}

.footer-bottom a:hover {
  color: #fff;
}

/* --- Page Header --- */
.page-header {
  background: var(--color-secondary);
  text-align: center;
  padding: 3rem 1.5rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* --- Image Placeholder --- */
.img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-bg-neutral) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  text-align: center;
  border: 1px solid var(--color-border);
}

/* --- Focus styles for keyboard nav --- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* --- Tablet (640px – 1023px) --- */
@media (max-width: 1023px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
  }

  .nav-links.nav-open {
    max-height: 400px;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-flex {
    gap: 2rem;
  }

  .site-footer .container {
    grid-template-columns: 1fr 1fr;
  }

  section {
    padding: 3rem 0;
  }
}

/* --- Mobile (< 640px) --- */
@media (max-width: 639px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  html {
    font-size: 15px;
  }

  body {
    font-size: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .hero {
    min-height: 50vh;
    text-align: left;
    padding: 3rem 1rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-secondary-link {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-flex {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }

  .about-flex .about-text {
    max-width: 100%;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
  }

  .site-footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col p,
  .footer-col li {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .maps-embed iframe {
    height: 300px;
  }

  .nav {
    height: 60px;
  }

  .nav-links {
    top: 60px;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .trust-bar {
    gap: 1rem;
  }
}
