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

:root {
  --op-main-color: #4caf50;
  --op-main-dark: #2e7d32;
  --op-main-light: #a5d6a7;
  --op-accent: #81c784;
  --op-hero-from: #1b5e20;
  --op-hero-to: #388e3c;
  --op-spacing: .625em;
  --op-spacing-l: 2em;
  --op-color: #1a2e1a;
  --op-bg-color: #fff;
  --op-nav-bg: rgba(30, 70, 32, 0.97);
  --op-shadow: 0 4px 24px rgba(46, 125, 50, 0.13);
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: 'Roboto Condensed';
  src: url('../fonts/roboto-condensed-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100vh;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  max-width: 1920px;
  margin: 0 auto;
  background: var(--op-bg-color);
  color: var(--op-color);
}

h1, h2, h3 {
  font-family: 'Roboto Condensed', sans-serif;
  margin-bottom: var(--op-spacing);
  color: var(--op-main-dark);
  letter-spacing: 0.01em;
}
h1 { font-size: 3em; }
h2 { font-size: 2em; border-bottom: 3px solid var(--op-main-light); padding-bottom: .25em; margin-bottom: .6em; }
h3 { font-size: 1.5em; }

/* HERO */
.flex-container {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--op-hero-from) 0%, var(--op-hero-to) 60%, var(--op-main-color) 100%);
}

.flex-container::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -8%;
  width: 45%;
  height: 130%;
  background: rgba(255,255,255,0.04);
  transform: skewX(-12deg);
  pointer-events: none;
}

.flex-container::after {
  content: '';
  position: absolute;
  bottom: 2em;
  right: 3em;
  width: 160px;
  height: 160px;
  opacity: 0.08;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='48' stroke='white' stroke-width='3' fill='none'/%3E%3Ccircle cx='50' cy='50' r='34' stroke='white' stroke-width='2' fill='none'/%3E%3Ccircle cx='50' cy='50' r='20' stroke='white' stroke-width='2' fill='none'/%3E%3Ccircle cx='50' cy='50' r='5' fill='white'/%3E%3Cline x1='50' y1='0' x2='50' y2='30' stroke='white' stroke-width='2'/%3E%3Cline x1='50' y1='70' x2='50' y2='100' stroke='white' stroke-width='2'/%3E%3Cline x1='0' y1='50' x2='30' y2='50' stroke='white' stroke-width='2'/%3E%3Cline x1='70' y1='50' x2='100' y2='50' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  pointer-events: none;
}

.flexcontainer {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.flex-container a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 0.95em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.flex-container a:hover { color: #fff; }

.row { width: auto; text-align: center; }

.flex-item {
  text-align: center;
  padding: 0 var(--op-spacing);
}

.flex-item::before {
  content: 'Gegründet 1924';
  display: block;
  font-size: 0.78em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--op-main-light);
  margin-bottom: 0.6em;
  font-family: 'Roboto', sans-serif;
}

.page-name {
  font-family: 'Quattrocento', serif;
  font-size: 2.8em;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.main { height: 100%; }

/* NAVIGATION */
.name { display: none; }

#responsive-nav {
  position: absolute;
  opacity: 0;
}

.responsive-nav-label {
  display: flex;
  align-items: center;
  font-size: 1.1em;
  font-weight: 600;
  padding: 0.7em 1.2em;
  color: var(--op-main-dark);
  cursor: pointer;
  gap: 0.5em;
}

.responsive-nav-label::before {
  display: block;
  position: relative;
  left: 0;
  width: 22px;
  height: 22px;
  content: '';
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 80' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100' height='10' fill='%232e7d32'/%3E%3Crect y='30' width='100' height='10' fill='%232e7d32'/%3E%3Crect y='60' width='100' height='10' fill='%232e7d32'/%3E%3C/svg%3E");
}

#responsive-nav:checked + .responsive-nav-label::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='10' y1='10' x2='90' y2='90' stroke='%232e7d32' stroke-width='10'/%3E%3Cline x1='90' y1='10' x2='10' y2='90' stroke='%232e7d32' stroke-width='10'/%3E%3C/svg%3E");
}

nav {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  color: #eee;
  display: none;
}

#responsive-nav:checked ~ nav { display: block; }

nav ul {
  background: var(--op-nav-bg);
  list-style-type: none;
}

nav ul ul { padding-left: 1em; }

nav a {
  display: flex;
  padding: 0.9em 1.2em;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
  transition: background 0.18s, color 0.18s;
}
nav a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

label {
  display: block;
  position: relative;
  margin-left: 0;
}

/* MAIN */
main {
  padding: var(--op-spacing-l) var(--op-spacing-l);
}

#inhalt {
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--op-main-color);
}

#inhalt main {
  width: 92vw;
  max-width: 960px;
  margin: 0 auto;
  flex: 1;
}

main > * + * { margin-top: 1.8em; }

/* FOOTER */
footer {
  padding: var(--op-spacing-l);
  background: var(--op-nav-bg);
  color: rgba(255,255,255,0.75);
  text-align: center;
  font-size: 0.88em;
  border-top: 3px solid var(--op-main-color);
}
footer a:link { color: var(--op-main-light); }
footer a:hover { color: #fff; }

/* LINKS */
main a:link {
  color: var(--op-main-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
main a:visited { text-decoration: underline; }
main a:active  { text-decoration: underline; }
main a:hover   { opacity: 0.75; }

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* SCROLL ARROW */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-18px); }
  60% { transform: translateY(-9px); }
}
.arrow {
  width: 44px;
  height: 44px;
  margin: 2em auto;
  display: block;
}
.arrow::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}
.bounce { animation: bounce 2s infinite; }

/* HERO ANIMATION */
.lightSpeedIn {
  animation-name: lightSpeedIn;
  animation-timing-function: ease-out;
  animation-duration: 1s;
  animation-fill-mode: both;
}
@keyframes lightSpeedIn {
  0%   { transform: translate3d(100%, 0, 0) skewX(-30deg); opacity: 0; }
  60%  { transform: skewX(20deg); opacity: 1; }
  80%  { transform: skewX(-5deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}

/* UTILITIES */
.small { font-size: 0.9em; }
.leftcontentimage  { float: left; margin: 0 1.2em 0.8em 0; }
.rightcontentimage { float: right; margin: 0 0 0.8em 1.2em; }
.listitem          { list-style-position: inside; }
.alignright        { text-align: right; }
.alignleft         { text-align: left; }
.aligncenter       { text-align: center; }

/* TABLES */
table.contenttable {
  width: 100%;
  text-align: center;
  border-collapse: collapse;
  overflow: hidden;
}
th.contenttable {
  background: var(--op-main-dark);
  color: var(--op-bg-color);
  border-right: 1px solid var(--op-main-color);
  padding: 10px 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
th.contenttable:last-child { border-right: none; }
td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--op-main-light);
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #f1f8f1; }
.result-list-header { font-weight: 700; color: var(--op-main-dark); }
.result-list-item   { margin-left: var(--op-spacing-l); }

/* ACCESSIBILITY */
:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

/* DESKTOP */
@media only screen and (min-width: 768px) {
  .name {
    display: block;
    color: rgba(255,255,255,0.92);
    padding: 0.7em 1.4em;
    position: absolute;
    left: 0;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.05em;
  }
  .page-name { font-size: 3.8em; }
  nav { display: block; }
  nav ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-end;
    padding-right: var(--op-spacing-l);
  }
  nav a { padding: 1em 1.1em; }
  nav ul a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
  }
  nav ul ul {
    position: absolute;
    list-style: none;
    visibility: hidden;
    display: inline-block;
    padding: 0;
    background: var(--op-nav-bg);
    box-shadow: var(--op-shadow);
    min-width: 100%;
    border-top: 2px solid var(--op-main-color);
  }
  nav ul li:hover ul,
  nav ul li:focus-within ul { visibility: visible; }
  nav ul ul a { color: rgba(255,255,255,0.85); }
  .responsive-nav-label { display: none; }
  .menuactive {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-bottom: 2px solid var(--op-main-light);
  }
  .mainmenu-item { position: relative; }
}

@media only screen and (min-width: 1200px) {
  .page-name { font-size: 5em; }
  nav { font-size: 1.05em; }
  #inhalt main { width: 85vw; }
}
