/* der biss – shared stylesheet (de + en)
   Recreates the look of the former WordPress site (theme "U-Design")
   without WordPress, WooCommerce or slider plugins. */

:root {
  --red: #d0103a;
  --text: #333;
  --text-dark: #292929;
  --bg: #fff;
  --bg-bottom: #f5f5f5;
  --bg-footer: #eaeaea;
  --container: 960px;
  --gutter: 20px;
  --font: "Arimo", Arial, "Liberation Sans", "Helvetica Neue", Helvetica, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-footer);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }

a { color: var(--text-dark); }
a:hover, a:focus { color: var(--red); }

.container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
  left: 6px; top: 6px; z-index: 100;
  padding: 12px 20px; background: #fff; color: var(--red);
  font-weight: bold; box-shadow: 0 0 2px 2px rgba(0,0,0,.4);
}

/* Header -------------------------------------------------------------- */
.site-header { background: var(--bg); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 30px;
  padding-top: 6px;
  padding-bottom: 12px;
}
.logo { display: block; line-height: 0; }
.logo img { width: 450px; height: auto; }

.header-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  gap: 20px;
  padding-top: 8px;
}

.lang-switch {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.lang-switch a { text-decoration: none; color: #888; }
.lang-switch a[aria-current] { color: var(--text-dark); }
.lang-switch a:hover, .lang-switch a:focus { color: var(--red); }

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  font-size: 14px;
  text-decoration: none;
  color: var(--text-dark);
}
.main-nav a[aria-current="page"], .main-nav a:hover, .main-nav a:focus { color: var(--red); }

/* Slider -------------------------------------------------------------- */
.slider { background: #fafafa; }
.slides {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  aspect-ratio: 960 / 356;
  overflow: hidden;
}
.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.slides img.active { opacity: 1; }

/* Content ------------------------------------------------------------- */
.content {
  background: var(--bg);
  max-width: none;
  padding-top: 40px;
  padding-bottom: 40px;
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
}

h1, h2, h3, h4, h5, h6 {
  color: var(--red);
  font-weight: normal;
  line-height: 1.25;
  margin: 1.2em 0 .5em;
}
.content > :first-child,
.content > .row:first-child > .col > :first-child { margin-top: 0; }
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
h5, h6 { font-size: 14px; }
h1 strong, h2 strong, h3 strong { font-weight: bold; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.6em; }
ul.plain { list-style: none; padding-left: 0; }
li > h4 { margin-top: 1.4em; }

.accent { color: var(--red); }

.alignright { float: right; margin: 0 0 10px 10px; }

/* Columns (former one_half / one_third / two_third) */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 40px;
  margin-bottom: 1.1em;
}
.row::after { content: ""; display: block; clear: both; }
.col { min-width: 0; }
.col.half { flex: 0 0 calc((100% - 40px) / 2); }
.col.two-thirds { flex: 0 0 calc((100% - 40px) * 2 / 3); }
.col.third { flex: 0 0 calc((100% - 40px) / 3); }

/* Footer -------------------------------------------------------------- */
.site-footer { background: var(--bg-bottom); }
.footer-nav ul {
  margin: 0;
  padding: 24px 0;
  list-style: none;
}
.footer-nav li { padding: 6px 0; }
.footer-nav a { color: #2a6496; text-decoration: none; font-size: 13px; }
.footer-nav a:hover, .footer-nav a:focus, .footer-nav a[aria-current="page"] { color: var(--red); }

.footer-bar { background: var(--bg-footer); font-size: 12px; }
.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}
.footer-bar p { margin: 0; color: #666; }

/* Small screens ------------------------------------------------------- */
@media (max-width: 760px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .header-side { align-items: flex-start; align-self: auto; }
  .main-nav ul { justify-content: flex-start; gap: 4px 20px; }
  .logo img { width: 300px; }
  .row { flex-direction: column; }
  .col.half, .col.two-thirds, .col.third { flex: 1 1 auto; }
  .alignright { float: none; margin: 0 10px 10px 0; }
}
