/* =========================
   1. CSS Reset
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   2. CSS Variablen
   ========================= */

:root {
  /* layout */
  --container: 1200px;

  /* typography */
  --fs-h1:   2.25rem;
  --fs-h2:   1.75rem;
  --fs-h3:   1.25rem;
  --fs-body: 1rem;

  /* spacing */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;

  /* colors */
  --text:        #111;
  --muted:       #555;
  --bg:          #fff;
  --surface:     #fafafa;
  --yellow:      #fdee1f;
  --accent:      #7D2F63;
  --accent-soft: rgba(125, 47, 99, 0.08);
  --border:      #e8e8e8;
}

/* =========================
   3. Base Elements
   ========================= */

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
               "Helvetica Neue", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--accent);
  background: var(--bg);
}

a {
  color: inherit;
}

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

/* =========================
   4. Layout
   ========================= */

.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header,
.site-footer,
.site-main {
  width: 100%;
}

.section {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.section + .section {
  border-top: 1px solid var(--border);
}

/* =========================
   5. Utilities
   ========================= */

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

.is-hidden {
  display: none;
}

.highlight {
  font-weight: 700;
  color: var(--accent);
}

/* =========================
   6. Buttons
   ========================= */

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

/* =========================
   7. Section Titles
   ========================= */

.section-head {
  background: var(--accent);
}

/* Zusammengeführt aus zwei früheren Definitionen */
.section-title {
  display: inline-block;
  margin: 0;
  padding: 0.75rem 0;
  color: #fff;
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.2;
}

.section-head + .container {
  margin-top: 2.5rem;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section-header {
  max-width: none;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: var(--fs-h2);
  margin-bottom: 0.75rem;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* =========================
   8. Header / Navigation
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header .header-inner {
  min-height: 72px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

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

.logo a {
  text-decoration: none;
  font-weight: 600;
}

.main-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) {
  .main-nav .nav-list {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .main-nav a {
    padding: 0.25rem 0;
  }
}

/* =========================
   9. Hero
   ========================= */

.section-hero {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-logos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

.hero-logo {
  max-width: 290px;
  height: auto;
}

/* Zusammengeführt aus zwei früheren Definitionen */
.hero-content {
  max-width: 640px;
}

.hero-content h1 {
  font-size: var(--fs-h1);
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Zusammengeführt aus zwei früheren Definitionen */
.hero-text {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 2rem;
}

/* Zusammengeführt aus zwei früheren Definitionen */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logos {
    flex-direction: row;
    gap: 1.5rem;
  }
}

/* =========================
   10. Aktuelles / Feed
   ========================= */

.section-feed {
  background: #fff;
}

/* Wrapper: Pfeile + Slider nebeneinander */
.feed-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Pfeil-Buttons */
.feed-nav {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.feed-nav:hover {
  background: #9b3c7e;
}

/* Pfeile auf Mobile ausblenden – dort gilt Swipe */
@media (max-width: 767px) {
  .feed-nav {
    display: none;
  }
}

/* Clip-Container: schneidet überstehende Karten ab */
.feed-list {
  overflow: hidden;
  flex: 1 1 0;
  min-width: 0;
}

/* Sliding Track: alle Karten in einer horizontalen Reihe */
.feed-track {
  display: flex;
  width: 100%;
  will-change: transform;
}

/* Karten-Slot – Desktop: 3 sichtbar */
.feed-item {
  flex: 0 0 calc(100% / 3);
  box-sizing: border-box;
  padding: 0 0.5rem;
}

@media (max-width: 767px) {
  .feed-item { flex: 0 0 100%; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .feed-item { flex: 0 0 50%; }
}

/* Eigentliche Karte (Aussehen) */
.feed-card {
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  box-sizing: border-box;
}

.feed-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  object-fit: cover;
}

.feed-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.feed-source {
  font-weight: 500;
}

.feed-date {
  white-space: nowrap;
}

.feed-text {
  font-size: 0.95rem;
  color: var(--text);
}

.feed-empty {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   11. Leistungen
   ========================= */

.leistungen-intro {
  max-width: none;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.leistungen-intro p {
  max-width: 100%;
  color: var(--muted);
}

.leistungen-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .leistungen-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .leistungen-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1400px) {
  .leistungen-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

.leistung-card {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leistung-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.leistung-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.leistung-heading {
  margin: 0;
  font-size: var(--fs-h3);
  color: var(--accent);
}

.leistung-text {
  margin: 0;
  color: var(--muted);
}

/* =========================
   12. Warum wir
   ========================= */

.warum-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.warum-item h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}

/* =========================
   13. Standorte
   ========================= */

.standorte-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .standorte-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .standorte-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1400px) {
  .standorte-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 480px) {
  .standorte-list {
    gap: 1rem;
  }
}

.standort-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.5;
}

.standort-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
}

.standort-card p {
  margin: 0;
  color: var(--muted);
}

.standort-card a {
  color: inherit;
  word-break: break-word;
}

.standort-card a[href^="tel:"] {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .standort-card {
    padding: 1rem;
    font-size: 1rem;
  }

  .standort-card h3 {
    font-size: 1.1rem;
  }
}

.standort-actions {
  margin-top: 0.25rem;
}

.standort-link {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.standort-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 480px) {
  .standort-link {
    display: inline-block;
    padding: 0.4rem 0;
  }
}

/* =========================
   14. Karriere / Bewerben
   ========================= */

.karriere-intro {
  max-width: 50rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.job-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .job-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.job-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  min-height: 160px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.job-tile:hover,
.job-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
  background: #9b3c7e;
}

@media (max-width: 480px) {
  .job-tile {
    min-height: 140px;
    padding: 1.25rem;
  }
}

.job-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.job-title-highlite {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: var(--yellow);
}

/* Job-Listen (z.B. für Detailseiten) */
.jobs-list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .jobs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

.job {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .job {
    padding: 1.25rem;
    border-bottom: none;
    border: 1px solid var(--border);
    border-radius: 8px;
  }
}

.job-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.job-location {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.job-date {
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
}

.job-desc {
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
}

.job-actions {
  margin-top: 0.75rem;
}

.job-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.job-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* =========================
   15. Kontakt / Formular
   ========================= */

.contact-form {
  max-width: 600px;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-field label {
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  padding: 0.5rem;
  font-family: inherit;
}

.form-group {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  min-inline-size: 0;
}

.form-hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.contact-msg {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.contact-msg--success {
  background: #edf7ed;
  color: #1e4620;
  border: 1px solid #a8d5a9;
}

.contact-msg--error {
  background: #fdecea;
  color: #5f1a1a;
  border: 1px solid #f5c6c6;
}

.contact-mode-toggle {
  display: inline-flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-mode-btn {
  border: none;
  background: transparent;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
}

.contact-mode-btn.is-active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.contact-mode-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================
   16. Footer
   ========================= */

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-nav ul {
  list-style: none;
}

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

.footer-nav a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   17. Rechtstexte
   ========================= */

.section-head-only .section-head + .container {
  margin-top: 2.5rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legal-content h2 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content ul {
  font-size: 0.95rem;
  color: var(--muted);
}

.legal-content ul {
  padding-left: 1.2rem;
}

/* =========================
   18. Job-Detailseiten
   ========================= */

.section-jobdetail h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.jobdetail-location {
  color: var(--muted);
  margin-bottom: 1rem;
}

.jobdetail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.jobdetail-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
}

.section-jobdetail ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}
