@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #F3F1ED;
  --bg-raised: #FFFFFF;
  --bg-sunken: #EAE6DF;
  --ink: #2B2A28;
  --ink-soft: #726F68;
  --line: rgba(43, 42, 40, 0.11);
  --line-strong: rgba(43, 42, 40, 0.18);

  --terracotta: #D6A692;
  --terracotta-deep: #A97558;
  --terracotta-tint: #F3E6DF;

  --sage: #A8BBA2;
  --sage-deep: #5F7857;
  --sage-tint: #E8EEE6;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --pill-radius: 999px;
  --max-width: 1120px;
  --shadow-sm: 0 1px 2px rgba(43, 42, 40, 0.05);
  --shadow-md: 0 10px 28px rgba(43, 42, 40, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

a { color: var(--ink); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  /* Mehr Luft zum Rand: mind. 32px (Handy), waechst mit dem Viewport bis 80px */
  padding: 0 clamp(32px, 6vw, 80px);
}

/* ---------- Header / Brand ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  position: relative;
  width: 30px;
  height: 20px;
  flex: none;
  display: block;
}
.brand-mark span {
  position: absolute;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.brand-mark span:first-child { left: 0; background: var(--terracotta); }
.brand-mark span:last-child { right: 0; background: var(--sage); mix-blend-mode: multiply; }
.brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand-name em { font-style: italic; font-weight: 500; color: var(--ink-soft); }

/* ---------- Nav + mobile hamburger (pure CSS, no JS) ---------- */
.nav-toggle-checkbox { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.nav-toggle-btn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: opacity .15s ease; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.lang-switch a {
  padding: 4px 10px;
  border-radius: var(--pill-radius);
  text-decoration: none;
  color: var(--ink-soft);
  min-height: auto;
}
.lang-switch a.active { background: var(--ink); color: #fff; }

@media (max-width: 760px) {
  .nav-toggle-btn { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 28px;
    right: 28px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow-md);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height .25s ease, opacity .2s ease;
    z-index: 30;
  }
  .nav-toggle-checkbox:checked ~ .site-nav {
    max-height: 540px;
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a { padding: 10px 10px; width: 100%; }
  .lang-switch { padding: 6px 10px 2px; }
}

/* ---------- Intro (compact, not hero-heavy) ---------- */
.intro {
  padding-block: 40px 8px;
}
.intro h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  max-width: 20ch;
}
.intro p.lede {
  max-width: 54ch;
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

/* ---------- Portal cards (app-entry points, not marketing CTAs) ---------- */
.portals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0 56px;
}
.portal-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.portal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.portal-card .tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--pill-radius);
}
.portal-card.company .tag { background: var(--terracotta-tint); color: var(--terracotta-deep); }
.portal-card.candidate .tag { background: var(--sage-tint); color: var(--sage-deep); }
.portal-card h2 { font-size: 1.4rem; margin-top: 2px; }
.portal-card p { color: var(--ink-soft); font-size: 0.94rem; max-width: 42ch; }
.portal-card .go { margin-top: auto; font-size: 0.88rem; font-weight: 600; padding-top: 8px; }
.portal-card.company .go { color: var(--terracotta-deep); }
.portal-card.candidate .go { color: var(--sage-deep); }

@media (max-width: 760px) {
  .portals { grid-template-columns: 1fr; }
}

/* ---------- Steps (slim, de-emphasized) ---------- */
.steps {
  display: flex;
  gap: 0;
  margin: 0 0 64px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  list-style: none;
  padding-left: 0;
}
.steps li { flex: 1; padding: 0 20px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: none; padding-left: 0; }
.steps .num { font-family: 'Fraunces', serif; font-style: italic; color: var(--ink-soft); font-size: 1.1rem; }
.steps h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem; margin-top: 4px; color: var(--ink); }
.steps p { color: var(--ink-soft); font-size: 0.86rem; margin-top: 4px; }

@media (max-width: 760px) {
  .steps { flex-direction: column; gap: 16px; }
  .steps li { border-left: none; border-top: 1px solid var(--line); padding: 14px 0 0; }
}

/* ---------- Services (/leistungen/, /pl/uslugi/) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 36px 0 56px;
}
.service-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.service-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--pill-radius);
  margin-bottom: 14px;
}
.service-card.company .tag { background: var(--terracotta-tint); color: var(--terracotta-deep); }
.service-card.candidate .tag { background: var(--sage-tint); color: var(--sage-deep); }
.service-card h2 { font-size: 1.3rem; margin-bottom: 18px; }
.service-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}
.service-card.company ul li::marker { color: var(--terracotta-deep); }
.service-card.candidate ul li::marker { color: var(--sage-deep); }

@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Team (trust section) ---------- */
.team { padding-block: 8px 60px; }
.team-head { max-width: 56ch; margin-bottom: 28px; }
.team-head h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 8px; }
.team-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.team-more:hover { text-decoration: underline; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.team-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.team-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 14px;
}
.team-card:nth-child(1) .team-avatar { background: var(--ink); }
.team-card:nth-child(2) .team-avatar { background: var(--terracotta-deep); }
.team-card:nth-child(3) .team-avatar { background: var(--sage-deep); }
.team-card h3 { font-size: 1.05rem; }
.team-card .role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}
.team-card p { color: var(--ink-soft); font-size: 0.9rem; margin-top: 10px; }
.team-card .link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.team-card .link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Profile page (/ueber-uns/, /pl/o-nas/) — larger team cards ---------- */
.profile-intro { padding-block: 52px 8px; max-width: 640px; }
.profile-intro h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; }
.profile-intro p.lede { color: var(--ink-soft); font-size: 1.02rem; margin: 14px 0 0; }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 72px;
}
.profile-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 20px;
}
.profile-card:nth-child(1) .profile-avatar { background: var(--ink); }
.profile-card:nth-child(2) .profile-avatar { background: var(--terracotta-deep); }
.profile-card:nth-child(3) .profile-avatar { background: var(--sage-deep); }
.profile-card h2 { font-size: 1.25rem; }
.profile-card .org {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}
.profile-card p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 14px; line-height: 1.55; }
.profile-card .link {
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.profile-card .link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .profile-grid { grid-template-columns: 1fr; }
}

/* ---------- App screen (form pages: two columns, feels like a product screen) ---------- */
.app-screen {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  padding-block: 44px 80px;
  align-items: start;
}
.app-screen .intro-col { position: sticky; top: 28px; }
.app-screen .intro-col h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.app-screen .intro-col p { color: var(--ink-soft); margin-top: 14px; max-width: 40ch; }

.intro-photo {
  position: relative;
  margin-top: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-width: 420px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.05);
  transition: opacity 0.15s ease;
}
.intro-photo .tint { position: absolute; inset: 0; mix-blend-mode: multiply; }
.intro-photo.company .tint { background: var(--terracotta-deep); opacity: 0.5; }
.intro-photo.candidate .tint { background: var(--sage-deep); opacity: 0.5; }

@media (max-width: 900px) {
  .intro-photo { max-width: none; margin-top: 20px; }
}

.formcard {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.formcard.company { border-top-color: var(--terracotta); }
.formcard.candidate { border-top-color: var(--sage); }

@media (max-width: 900px) {
  .app-screen { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 60px; }
  .app-screen .intro-col { position: static; }
  .formcard { padding: 24px 20px; }
}

/* ---------- Honeypot (Spam-Schutz, fuer Menschen unsichtbar) ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Forms ---------- */
form.pathform {
  display: grid;
  gap: 16px;
}
form.pathform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  min-height: 44px;
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--ink-soft);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 90px; }

button.submit {
  justify-self: start;
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 44px;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.15s ease;
}
button.submit:hover { transform: translateY(-1px); }
button.submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button.submit:disabled { opacity: 0.55; cursor: default; transform: none; }

#form-company button.submit { background: var(--terracotta-deep); }
#form-company button.submit:hover { background: #8F6249; }
#form-candidate button.submit { background: var(--sage-deep); }
#form-candidate button.submit:hover { background: #4C5F46; }

.formnote { margin-top: 14px; font-size: 0.88rem; }
.formnote.ok { color: #3C6B3F; }
.formnote.err { color: #A6392B; }

/* ---------- Simple content page (Kontakt / Legal) ---------- */
.content-page {
  padding-block: 52px 80px;
  max-width: 720px;
  margin: 0 auto;
}
.content-page h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-bottom: 20px; }
.content-page h2 { font-size: 1.1rem; margin: 30px 0 10px; font-family: 'Inter', sans-serif; font-weight: 700; }
.content-page p, .content-page li { color: var(--ink-soft); }
.content-page .placeholder {
  background: var(--bg-sunken);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 4px 0 20px;
}
.contact-links { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* ---------- Buttons used outside forms (Kontakt CTAs) ---------- */
.btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-link.company { border-color: var(--terracotta); color: var(--terracotta-deep); }
.btn-link.candidate { border-color: var(--sage); color: var(--sage-deep); }
.btn-link:hover { background: var(--bg-sunken); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding-block: 30px 44px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
footer .foot-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
footer .foot-links a { color: var(--ink-soft); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
footer .foot-links a:hover { color: var(--ink); }
footer .foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portal-card, button.submit { transition: none; }
}
