/* ============================================
   DIE WASCHFABRIK - Professionelle Webseite
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #0d2b45;
  --primary-dark: #071a2b;
  --primary-light: #1a4a6e;
  --accent: #d4a843;
  --accent-light: #e8c46e;
  --accent-dark: #b88e30;
  --white: #ffffff;
  --off-white: #f7f3ec;
  --light-gray: #ede8df;
  --mid-gray: #8a7f73;
  --dark-gray: #343a40;
  --text: #2c2418;
  --text-light: #6b6257;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 50px rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- 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);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Accessibility / Barrierefreiheit --- */

/* Skip-Link (Sprungmarke) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 10000;
  background: var(--primary-dark);
  color: var(--white);
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Fokus-Indikator für Tastatur-Bedienung */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Tastatur-freundliche Navigation */
nav a:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Screen-Reader-only Klasse */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.accent-link {
  color: var(--accent-dark);
  font-weight: 600;
}

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

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

ul {
  list-style: none;
}

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

/* --- Top Bar --- */
.top-bar {
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.top-bar a:hover {
  color: #000;
  text-decoration: underline;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-info .icon {
  font-size: 1rem;
}

/* --- Header & Navigation --- */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 75px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo-img {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 40px;
  }
}

/* --- Navigation --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav ul li a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary);
  background: rgba(26, 82, 118, 0.06);
}

nav ul li.has-sub {
  position: relative;
}

nav ul li .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  z-index: 100;
}

nav ul li:hover .submenu {
  display: block;
}

nav ul li .submenu li a {
  padding: 10px 20px;
  border-radius: 0;
}

nav ul li .submenu li a:hover {
  background: rgba(26, 82, 118, 0.06);
}

.submenu-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.submenu-trigger::after {
  content: '▾';
  font-size: 0.7rem;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--off-white) 0%, #faf6ef 50%, var(--white) 100%);
  color: var(--text);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a843' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
  position: relative;
  z-index: 1;
}

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

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--primary);
}

.hero h1 span {
  color: var(--accent-dark);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.35);
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Page Hero (subpages) --- */
.page-hero {
  background: var(--off-white);
  border-bottom: 3px solid var(--accent);
  color: var(--text);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a843' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  color: var(--mid-gray);
}

.breadcrumb a {
  color: var(--accent-dark);
}

.breadcrumb span {
  color: var(--text-light);
}

/* --- Sections --- */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-title .accent-line {
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-light));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(13,43,69,0.08), rgba(212,168,67,0.12));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  overflow: hidden;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.service-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card .service-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-card .service-link:hover {
  color: var(--primary);
}

/* --- About Section --- */
.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--light-gray);
  aspect-ratio: 4/3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text .btn {
  margin-top: 8px;
}

/* --- Features / Why Us --- */
.features-section {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-item h3 {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- Content Section (for subpages) --- */
.content-section {
  background: var(--white);
}

.content-section.alt-bg {
  background: var(--off-white);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.content-text h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.content-text h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 12px;
  margin-top: 24px;
}

.content-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.content-text ul {
  margin: 16px 0;
}

.content-text ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text);
  border-bottom: 1px solid var(--light-gray);
}

.content-text ul li:last-child {
  border-bottom: none;
}

.content-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--light-gray);
  aspect-ratio: 4/3;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Price Table --- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.price-table thead {
  background: var(--accent);
  color: var(--primary-dark);
}

.price-table thead th {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.price-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.price-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.95rem;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tbody tr:hover {
  background: rgba(26, 82, 118, 0.04);
}

.price-table .price {
  text-align: right;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.price-section {
  margin-bottom: 40px;
}

.price-section h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: rgba(13, 43, 69, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-detail-text p {
  color: var(--text);
  font-weight: 500;
}

.contact-detail-text a {
  color: var(--primary);
  font-weight: 500;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 350px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
}

/* --- Slogan Banner --- */
.slogan-banner {
  background: var(--accent);
  color: var(--primary-dark);
  text-align: center;
  padding: 60px 0;
}

.slogan-banner blockquote {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
}

.slogan-banner cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: normal;
  opacity: 0.8;
  color: var(--primary-dark);
}

/* --- Footer --- */
footer {
  background: #071a2b;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-about .slogan {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

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

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    border-radius: 0 0 var(--radius) var(--radius);
    gap: 0;
  }

  nav ul.show { display: flex; }

  nav ul li a { padding: 12px 16px; }

  nav ul li.has-sub .submenu {
    position: static;
    box-shadow: none;
    padding-left: 16px;
    display: none;
  }

  nav ul li.has-sub.open .submenu { display: block; }

  .submenu-trigger::after { content: '▸'; }
  nav ul li.has-sub.open .submenu-trigger::after { content: '▾'; }

  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .page-hero { padding: 40px 0; }
  .page-hero h1 { font-size: 1.8rem; }

  section { padding: 50px 0; }
  .section-title h2 { font-size: 1.8rem; }

  .top-bar-info { font-size: 0.8rem; }
  .top-bar-info span { gap: 4px; }

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

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .slogan-banner blockquote { font-size: 1.4rem; }

  .price-table { font-size: 0.85rem; }
  .price-table th, .price-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .features-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 1.2rem; }
}

/* --- Contact Form --- */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--off-white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
}

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

.form-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

.form-submit {
  margin-top: 8px;
}

.form-success {
  display: none;
  padding: 20px;
  background: rgba(212,168,67,0.1);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  color: var(--primary-dark);
  text-align: center;
  font-weight: 600;
}
