/* AS-Pflegedienst Design-System */

:root {
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #f1f5f9;
  --primary: #2563a0;
  --primary-light: #3b82a0;
  --primary-dark: #1e4e7a;
  --gold: #d4af37;
  --gold-light: #f0d878;
  --gold-dark: #b8962e;
  --teal: #5a8f7b;
  --teal-light: #7ab39e;
  --cream: #f5f0e6;
  --white: #ffffff;
  --muted: #64748b;
  --text: #1e293b;
  --text-dark: #1e293b;
  --text-light: #f8fafc;
  --border: #e2e8f0;
  --focus: #3b82a0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --transition: 0.2s ease;
  --max-width: 1200px;
  --font: 'Inter', 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus {
  color: var(--primary-light);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.site-logo:hover,
.site-logo:focus {
  color: var(--primary);
  text-decoration: none;
}

.site-logo img,
.site-logo svg {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

.lang-switcher a {
  color: var(--muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.lang-switcher a.active,
.lang-switcher a:hover,
.lang-switcher a:focus {
  color: var(--white);
  background: var(--primary);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile Nav */
@media (max-width: 900px) {
  .site-nav,
  .lang-switcher {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .site-nav.is-open + .lang-switcher,
  .site-header:has(.site-nav.is-open) .lang-switcher {
    display: flex;
  }

  .site-nav.is-open .lang-switcher {
    margin-top: 16px;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e0f2fe 100%);
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 20px;
}

.hero-content h1 .accent {
  color: var(--primary);
}

.hero-content .slogan {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    order: 1;
  }

  .hero-image {
    order: 2;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--primary);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover,
.btn-outline-white:focus {
  background: var(--white);
  color: var(--text-dark);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-group-center {
  justify-content: center;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-card);
}

.section-title-block {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.section-title .accent {
  color: var(--primary);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 16px auto;
  border-radius: 2px;
}

/* Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin: 0 0 12px;
}

.card p {
  color: var(--muted);
  margin: 0 0 16px;
}

.card a {
  font-weight: 600;
}

/* Stats */
.stats-band {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-item .label {
  color: var(--muted);
  font-size: 0.95rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about-image img {
  width: 100%;
  height: auto;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.values-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: var(--text);
}

.values-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.form-error {
  color: #ef4444;
  font-size: 0.9rem;
  margin-top: 4px;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info h3 {
  color: var(--white);
  margin-top: 24px;
  margin-bottom: 12px;
}

.contact-info p,
.contact-info a {
  color: var(--muted);
}

.contact-info a:hover,
.contact-info a:focus {
  color: var(--primary);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}

.faq-question:hover,
.faq-question:focus {
  color: var(--primary);
}

.faq-question .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  color: var(--muted);
}

.faq-answer.is-open {
  max-height: 500px;
  padding: 0 20px 20px;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.legal-content h2 {
  color: var(--white);
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.legal-content h3 {
  color: var(--primary);
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content a {
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--text);
  margin: 0 0 12px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links h4 {
  color: var(--text);
  margin: 0 0 16px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--gold);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--primary);
}

.text-muted {
  color: var(--muted);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.order-1 { order: 1; }
.order-2 { order: 2; }

/* Page title banner */
.page-banner {
  background: linear-gradient(135deg, var(--bg-surface) 0%, #e0f2fe 100%);
  padding: 140px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin: 0 0 12px;
}

.page-banner p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

/* Form success messages */
.success-box {
  display: none;
  background: rgba(90, 143, 123, 0.12);
  border: 1px solid var(--teal);
  color: var(--text);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.success-box:target {
  display: block;
}

/* Career page */
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.job-card h2 {
  color: var(--text);
  margin-top: 0;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.job-meta span {
  background: rgba(59, 130, 160, 0.12);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
}

.benefit-item .icon {
  color: var(--primary);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.consultation-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.text-small {
  font-size: 0.9rem;
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .btn,
  .menu-toggle {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .legal-content {
    border: none;
  }
}
