/* ============================================================
   Arbeitskräfte.at – Design System
   Professionell, ruhig, zurückhaltend
   ============================================================ */

:root {
  --red:         #B01020;
  --red-dark:    #8C0D1A;
  --red-light:   #F2E4E6;
  --white:       #FFFFFF;
  --gray-50:     #F7F7F7;
  --gray-100:    #EFEFEF;
  --gray-200:    #DEDEDE;
  --gray-400:    #999999;
  --gray-600:    #555555;
  --gray-700:    #3D3D3D;
  --gray-800:    #252525;
  --black:       #111111;

  --font-base:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius:      4px;
  --radius-lg:   6px;
  --shadow-sm:   0 1px 2px rgba(0,0,0,.06);
  --shadow:      0 2px 6px rgba(0,0,0,.08);
  --shadow-lg:   0 4px 16px rgba(0,0,0,.10);

  --header-h:    64px;
  --container:   1100px;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--red-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Utility ---------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }

/* --- Typografie ------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--black);
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.7rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: .95rem; }
p { margin-bottom: .8rem; }
p:last-child { margin-bottom: 0; }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  padding: .55rem 1.3rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--red);
  background: var(--red);
  color: var(--white);
  transition: background .15s, border-color .15s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; color: var(--white); }
.btn--outline { background: transparent; color: var(--red); }
.btn--outline:hover { background: var(--red); color: var(--white); }
.btn--gray { background: var(--gray-100); border-color: var(--gray-200); color: var(--gray-800); }
.btn--gray:hover { background: var(--gray-200); border-color: var(--gray-300, #ccc); }
.btn--sm { padding: .35rem .9rem; font-size: .82rem; }
.btn--lg { padding: .75rem 1.75rem; font-size: .975rem; }
.btn--full { width: 100%; text-align: center; display: block; }

/* --- Header ----------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}
.site-header .container {
  display: flex; align-items: center; gap: 2rem;
  height: 100%;
}

.site-logo {
  display: flex; align-items: center; gap: .45rem;
  text-decoration: none; color: var(--black);
  flex-shrink: 0;
}
.logo-mark {
  width: 30px; height: 30px;
  background: var(--red);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.logo-text { font-size: 1.05rem; font-weight: 600; color: var(--black); letter-spacing: -.01em; }
.logo-text span { color: var(--red); }

.main-nav { flex: 1; }
.main-nav > ul { display: flex; gap: 0; align-items: center; }
.main-nav a {
  display: block;
  padding: .4rem .75rem;
  color: var(--gray-600);
  font-size: .875rem;
  font-weight: 500;
  border-radius: var(--radius);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--black); background: var(--gray-50); text-decoration: none; }

.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 210px;
  z-index: 200;
  padding: .4rem 0;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  padding: .45rem 1rem;
  color: var(--gray-700);
  font-size: .875rem;
  font-weight: 400;
  border-radius: 0;
}
.dropdown-menu a:hover { background: var(--gray-50); color: var(--black); }

.header-actions { display: flex; gap: .5rem; flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; }

/* --- Hero ------------------------------------------------- */
.hero {
  background: var(--gray-800);
  color: var(--white);
  padding: 4rem 0 3.5rem;
}
.hero h1 { color: var(--white); margin-bottom: .75rem; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.hero p { font-size: 1rem; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 1.75rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hero .btn { background: var(--white); color: var(--gray-800); border-color: var(--white); font-weight: 600; }
.hero .btn:hover { background: var(--gray-100); }
.hero .btn--outline { background: transparent; color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.35); }
.hero .btn--outline:hover { background: rgba(255,255,255,.1); color: var(--white); }

.search-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  max-width: 540px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: .6rem;
  align-items: center;
}
.search-bar input {
  flex: 1;
  margin: 0;
  border: 1.5px solid var(--gray-200);
  font-size: .9rem;
  padding: .55rem .85rem;
}
.search-bar .btn { flex-shrink: 0; }

/* --- Footer ----------------------------------------------- */
.site-footer {
  background: var(--gray-800);
  color: var(--gray-400);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo { display: flex; align-items: center; gap: .45rem; margin-bottom: .75rem; }
.footer-logo .logo-mark { background: rgba(255,255,255,.12); }
.footer-logo .logo-text { color: var(--white); }
.footer-logo .logo-text span { color: rgba(255,255,255,.5); }
.footer-tagline { font-size: .82rem; color: rgba(255,255,255,.35); line-height: 1.55; }
.footer-col h4 { color: rgba(255,255,255,.7); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; font-weight: 600; }
.footer-col ul li { margin-bottom: .35rem; }
.footer-col a { color: var(--gray-400); font-size: .85rem; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.25rem;
  font-size: .78rem;
  color: rgba(255,255,255,.25);
  text-align: center;
}

/* --- Alerts ----------------------------------------------- */
.alert {
  padding: .8rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: .9rem;
}
.alert--success { background: #EBF5EC; color: #1E5C28; border: 1px solid #BFE0C4; }
.alert--error   { background: #FBF0F0; color: #7A1010; border: 1px solid #F0C8C8; }
.alert--info    { background: #EEF4FB; color: #1A3F6A; border: 1px solid #C4D9F0; }

/* --- Formulare -------------------------------------------- */
.form-group { margin-bottom: 1.1rem; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--gray-800); }
input[type=text], input[type=email], input[type=password],
input[type=tel], input[type=number], select, textarea {
  width: 100%;
  padding: .55rem .85rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-size: .9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gray-400);
  box-shadow: none;
}
textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: .78rem; color: var(--gray-400); margin-top: .25rem; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* --- Karten ----------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

/* --- Listing-Karten --------------------------------------- */
.listing-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border-left: 3px solid var(--gray-200);
  transition: border-color .15s;
}
.listing-card:hover { border-left-color: var(--red); }
.listing-card.type-job     { border-left-color: var(--red); }
.listing-card.type-seeking { border-left-color: var(--gray-400); }

.listing-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.listing-title { font-size: 1rem; font-weight: 700; color: var(--black); }
.listing-title a { color: inherit; }
.listing-title a:hover { color: var(--red); text-decoration: none; }

.listing-meta {
  display: flex; flex-wrap: wrap; gap: .35rem .9rem;
  font-size: .8rem; color: var(--gray-400);
}

/* --- Badges ----------------------------------------------- */
.badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 3px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .02em;
}
.badge-job     { background: #F2E4E6; color: var(--red-dark); }
.badge-seeking { background: #E8EEF5; color: #2A4870; }
.badge-pending  { background: #FEF5E4; color: #7A4F10; }
.badge-active   { background: #EBF5EC; color: #1E5C28; }
.badge-rejected { background: #FBF0F0; color: #7A1010; }
.badge-expired  { background: var(--gray-100); color: var(--gray-600); }

/* --- Sections --------------------------------------------- */
.section { padding: 3.5rem 0; }
.section--gray { background: var(--gray-50); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.section-header { margin-bottom: 2rem; }
.section-header h2 { margin-bottom: .4rem; }
.section-header p { color: var(--gray-600); font-size: .9rem; max-width: 520px; }

/* --- Seiten-Hero ------------------------------------------ */
.page-hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 2rem 0;
}
.page-hero h1 { margin-bottom: .4rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.page-hero p  { color: var(--gray-600); font-size: .925rem; max-width: 560px; margin: 0; }

/* --- Breadcrumb ------------------------------------------ */
.breadcrumb {
  font-size: .8rem;
  color: var(--gray-400);
  margin-bottom: .6rem;
  display: flex; gap: .3rem; align-items: center;
}
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--gray-300, #ccc); }

/* --- Grid ------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.listings-grid { display: grid; gap: .75rem; }

/* --- Stats ------------------------------------------------ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-item { padding: 1.25rem 0; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--black); line-height: 1; }
.stat-label  { font-size: .8rem; color: var(--gray-400); margin-top: .3rem; }
.stat-divider { border-right: 1px solid var(--gray-200); }

/* --- Feature-Karte ---------------------------------------- */
.feature-card { padding: 1.5rem; }
.feature-icon {
  width: 40px; height: 40px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .85rem;
  font-size: 1.1rem;
}
.feature-card h3 { font-size: .95rem; margin-bottom: .35rem; }
.feature-card p  { font-size: .875rem; color: var(--gray-600); }

/* --- Zweispalten ------------------------------------------ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.two-col--wide { grid-template-columns: 3fr 2fr; }

/* --- Tabellen --------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th { background: var(--gray-50); padding: .65rem 1rem; text-align: left; font-weight: 600; border-bottom: 1px solid var(--gray-200); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-600); }
tbody td { padding: .65rem 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }

/* --- Paginierung ------------------------------------------ */
.pagination { display: flex; gap: .3rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .85rem;
  color: var(--gray-700);
}
.pagination a:hover { border-color: var(--gray-400); color: var(--black); text-decoration: none; }
.pagination .active { background: var(--gray-800); border-color: var(--gray-800); color: var(--white); }

/* --- Filter-Bar ------------------------------------------- */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end;
}
.filter-bar .form-group { margin: 0; flex: 1; min-width: 160px; }
.filter-bar label { font-size: .78rem; margin-bottom: .3rem; }
.filter-bar select, .filter-bar input { font-size: .875rem; padding: .45rem .75rem; }

/* --- Info-Box --------------------------------------------- */
.info-box {
  background: var(--gray-50);
  border-left: 3px solid var(--gray-200);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.1rem;
  margin-bottom: 1.25rem;
}
.info-box.red  { border-left-color: var(--red); }
.info-box.blue { border-left-color: #2A6496; background: #F0F5FB; }
.info-box h4 { font-size: .875rem; margin-bottom: .3rem; color: var(--black); }
.info-box p  { font-size: .85rem; color: var(--gray-600); margin: 0; }

/* --- Akkordeon -------------------------------------------- */
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-btn {
  width: 100%; background: none; border: none; text-align: left;
  padding: .9rem 0; font-size: .9rem; font-weight: 600; cursor: pointer;
  color: var(--black); display: flex; justify-content: space-between; align-items: center;
}
.accordion-btn::after { content: '+'; font-size: 1.1rem; color: var(--gray-400); font-weight: 400; }
.accordion-btn.open::after { content: '−'; }
.accordion-body { display: none; padding-bottom: .9rem; color: var(--gray-600); font-size: .875rem; line-height: 1.65; }
.accordion-body.open { display: block; }

/* --- Admin ------------------------------------------------ */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - var(--header-h)); }
.admin-sidebar { background: var(--gray-800); padding: 1.25rem 0; }
.admin-sidebar .nav-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  color: rgba(255,255,255,.25); padding: .5rem 1.1rem .25rem; letter-spacing: .07em;
}
.admin-sidebar a { display: block; padding: .5rem 1.1rem; color: rgba(255,255,255,.55); font-size: .85rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.06); color: var(--white); text-decoration: none; }
.admin-sidebar a.active { border-left: 2px solid var(--red); }
.admin-content { padding: 1.75rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; border-bottom: 1px solid var(--gray-200); padding-bottom: 1rem; }
.admin-header h1 { font-size: 1.3rem; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.75rem; }
.admin-stat {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.1rem;
  border-top: 2px solid var(--gray-200);
}
.admin-stat.highlight { border-top-color: var(--red); }
.admin-stat .number { font-size: 1.75rem; font-weight: 800; color: var(--black); line-height: 1; }
.admin-stat .label  { font-size: .78rem; color: var(--gray-400); margin-top: .3rem; }

/* --- Dashboard -------------------------------------------- */
.dashboard-layout { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; padding: 2rem 0; }
.dashboard-nav a { display: block; padding: .45rem .75rem; color: var(--gray-600); font-size: .875rem; border-radius: var(--radius); }
.dashboard-nav a:hover, .dashboard-nav a.active { background: var(--gray-100); color: var(--black); text-decoration: none; }
.dashboard-nav a.active { font-weight: 600; color: var(--black); }

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row   { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col, .two-col--wide { grid-template-columns: 1fr; gap: 1.5rem; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    padding: .75rem; z-index: 99;
  }
  .main-nav.open > ul { flex-direction: column; }
  .header-actions { display: none !important; }
  .nav-toggle { display: flex; }
  .admin-layout, .dashboard-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
}
