/* talsim.de – Startseite
   Gemeinsame Stile für index.html (DE) und en.html (EN)

   Schrift: Open Sans, selbst gehostet aus fonts/ – keine externen Aufrufe.
   Open Sans steht unter der SIL Open Font License 1.1, siehe fonts/OFL.txt. */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/open-sans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/open-sans-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/open-sans-700.woff2') format('woff2');
}

:root {
  --ink: #1F2328;
  --ink-soft: #46535E;
  --ink-muted: #6D7880;
  --accent: #17698F;
  --accent-dark: #0E4C69;
  --rule: #DFE4E8;
  --rule-light: #E7EDF2;
  --row-hover: #EDF5FA;
  --surface: #F4F8FA;
  --underline: #B9D6E4;
  --page: 1280px;
  --gutter: 40px;
}

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

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: 'Open Sans', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Kopfzeile ------------------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--rule-light); }

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 44px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo-talsim {
  display: block;
  height: 46px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.logo-sydro {
  display: block;
  height: 40px;
  width: 122px;
  max-width: 100%;
  object-fit: contain;
}

.site-header__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 34px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 34px;
}

.nav a {
  color: var(--ink-soft);
  font-size: 16.5px;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.nav a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  border-left: 1px solid #E0E7EC;
  padding-left: 28px;
}

.lang a {
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 3px 7px;
}

.lang a:hover { color: var(--ink); }

.lang a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.lang__sep { color: #C6D0D8; }

/* Einstieg -------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 40px 48px;
  padding: 54px 0 56px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero__title {
  margin: 0;
  max-width: 34ch;
  min-height: calc(3 * 1.36em);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.hero__lead {
  margin: 0;
  max-width: 52ch;
  min-height: calc(6 * 1.68em);
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.byline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.byline:hover { color: var(--ink); }

.hero__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  justify-self: end;
  width: 100%;
  min-width: 0;
  max-width: 520px;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.05), 0 14px 30px rgba(31, 35, 40, 0.08);
}

.caption {
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Abschnitte ------------------------------------------------------------ */

.section-title {
  margin: 52px 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  scroll-margin-top: 24px;
}

.section-title:first-child { margin-top: 8px; }

.tool-list { border-top: 2px solid var(--ink); }

/* Werkzeugzeile --------------------------------------------------------- */

.tool {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin: 0 -14px;
  padding: 26px 14px;
  border-bottom: 1px solid var(--rule);
  transition: background .15s;
}

.tool:hover { background: var(--row-hover); }

.tool__icon {
  flex: none;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool__head {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 0 1 230px;
  min-width: 190px;
}

.tool__name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: inherit;
  text-decoration: none;
}

.tool__name:hover { color: var(--accent); }

.tool__kicker {
  font-size: 13px;
  color: var(--ink-muted);
}

.tool__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 260px;
  min-width: 220px;
}

.tool__desc {
  font-size: 16px;
  line-height: 1.6;
  color: #4A545C;
}

.tool__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14.5px;
}

.tool__links a {
  text-decoration: none;
  border-bottom: 1px solid var(--underline);
  padding-bottom: 1px;
}

.tool__arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: 17px;
  text-decoration: none;
}

/* Archiv ---------------------------------------------------------------- */

.tool--archive {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin: 12px -14px 0;
  padding: 24px 14px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
  transition: background .15s;
}

.tool--archive:hover { background: var(--row-hover); color: inherit; }

.tool--archive .tool__icon { stroke: #98A5AF; }

.tool--archive .tool__name {
  font-size: 22px;
  color: #4A545C;
}

.tool--archive .tool__desc { font-size: 15.5px; }

/* Kontakt --------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: baseline;
  gap: 18px 36px;
  margin-top: 12px;
  padding: 32px 36px;
  background: var(--surface);
}

.contact__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 48px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.contact__col {
  display: flex;
  flex-direction: column;
}

.contact__col a { text-decoration: none; }

/* Fußzeile -------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: 64px;
  padding: 22px 0 40px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
}

/* Bild-Lightbox ---------------------------------------------------------- */

.shot { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(24, 32, 39, 0.82);
  cursor: zoom-out;
}

.lightbox:not(:target) { display: none; }

.lightbox__img { cursor: zoom-out; }

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: #FFFFFF;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 24px;
  color: #FFFFFF;
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
}

.lightbox__close:hover { color: #FFFFFF; }
