/* Reset und Grundlagen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans';
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    color: #333;
    background-color: #fafafa;

    --color-bg-primary: #85af42;
    --color-text-primary: #fafafa;

     hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

body.tine {
    --color-bg-primary: #f7c600;
    --color-text-primary: #222222;
}

body.marc {
    --color-bg-primary: #444444;
    --color-text-primary: #fafafa;
}


h1, h2, h3, h4 {
    font-family: 'Gowun Dodum', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2.25em;
}

h3 {
    font-size 1.5em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
}


/* Navigation */

.navbar {
    font-family: 'Gowun Dodum', sans-serif;
    background-color: var(--color-bg-primary);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 800;
}

.nav-logo a.sub-logo {
    color: var(--color-text-primary);
    opacity: 50%;
    text-decoration: none;
    font-size: 1.25em;
    font-weight: 800;
    padding-left: 0.5em;
}

a.svglogo {
  display: inline-block;
  width: 150px;
  height: 50px;
  background-color: var(--color-text-primary);
  mask: url('../svg/hohlart-logo.svg') no-repeat center;
  mask-size: contain;
  transition: background-color 0.3s ease;
}


.nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: var(--color-bg-primary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0,0,0,0.05);
    padding: 20px 0;
    gap: 0;
}

.nav-menu.active {
    left: 0;
}

.nav-menu a {
    color: var(--color-text-primary);
    padding: 15px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-link {
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.3s;
    position: relative;
}

.nav-link.active {
    opacity: 50%;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3498db;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5.75px, 6.75px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5.75px, -6.75px);
}

/* Hauptinhalt */
main {
    padding-top: 100px;
    padding-bottom: 60px;
}

main a {
    color: #3498db;
    text-decoration: none;
}

main a:hover {
    text-decoration: underline;
}

a[target="_blank"]::after {
    content: "↗";
    font-size: 0.8em;
    vertical-align: super;
}

main article {
    max-width: 800px;
    margin: 0 auto;
}

main p {
    padding: 15px 0;
}

main ul {
    padding: 0 30px;
}

main li {
    padding: 5px 0;
}

main hr {
    width: 30%;
    opacity: 50%;
    margin: 15px auto;
}

main blockquote {
    padding-left: 10px;
    border-style: solid;
    border-color: var(--color-bg-primary);
    border-width: 0px 0px 0px 5px;
}

main blockquote > p {
    padding-top: 0px;
}

/* Link Cards Grid */
.link-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 80px;
}

.link-card {
    width: 350px;
    text-align: center;
}

.link-image {
    position: relative;
    width: 350px;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}

.link-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.link-card:hover .link-image img {
    transform: scale(1.05);
}

.link-text {    
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s ease;
}

.link-text a {
    font-family: 'Gowun Dodum', sans-serif;
    color: #333;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5em;
    display: block;
}

.link-card:hover .link-text {
    border-color: var(--color-bg-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.link-card:hover .link-text a {
    color: var(--color-bg-primary);
}

.link-card.active .link-text {
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    cursor: default;
}

.link-card.active .link-text a {
    color: var(--color-text-primary);
    pointer-events: none;
}

/* Hover-Effekte für active Cards deaktivieren */
.link-card.active:hover .link-text {
    border-color: var(--color-bg-primary);
    box-shadow: none;
}

.link-card.active:hover .link-text a {
    color: var(--color-text-primary);
}

/* Responsive Bilder in Inhalten */
.content-image {
    margin: 30px 0;
    text-align: center;
}

.content-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.image-caption {
    margin-top: 10px;
    margin-bottom: 0;
}

.content-image.small,
.content-image.medium {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-image.small > * {
    max-width: 400px;
    width: 100%;
}

.content-image.medium > * {
    max-width: 600px;
    width: 100%;
}

/* Video-Inhalte */
.content-video {
    margin: 30px 0;
    text-align: center;
}

.content-video video {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.video-caption {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    margin-bottom: 0;
}

.content-video.small,
.content-video.medium {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-video.small > * {
    max-width: 400px;
    width: 100%;
}

.content-video.medium > * {
    max-width: 600px;
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

footer a {
    color: var(--color-text-primary);
    text-decoration: none;
}

footer a.active {
    opacity: 50%;
}

footer a:hover {
    text-decoration: underline;
}

.footer-tagline {
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .link-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 400px) {
    .link-card {
        width: 100%;
        max-width: 350px;
    }

    .link-image {
        width: 100%;
        max-width: 350px;
    }
}