/*===== VARAIBLES & FONTS =====*/
:root {
    --primary: #67236b;
    --primary-rgb: rgba(103, 35, 107, 0.0);
    --light-primary: #9f6ea5;
    --secondary: #94AC76;
    --background: #e6e2ea;
    --text: #250C27;
    --white-surface: #ffffff;
    --red: #c0392b;
    --red-surface: #fff5f5;
    --lighgrey-surface: #f7f7f7;
    --font-size: clamp(25px, 4vw, 30px);
    --line-height: 1.3;
    --standard-increase: 5px;
    --content-width: 900px;
}

@font-face {
    font-family: 'PatrickHand';
    src: url('../Fonts/patrick-hand/PatrickHand-Regular.ttf') format('truetype');
}

/*===== GENERAL =====*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PatrickHand', Arial, sans-serif;
    font-size: var(--font-size);
    color: var(--text);
    background: var(--background);
    line-height: var(--line-height);
    word-break: break-word;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    display: inline-block;
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 16px;
}

header {
    border-bottom: 4px solid var(--primary);
}
footer {
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    gap: 1rem;
}

.footer-section {
    font-size: calc(0.75 * var(--font-size));
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    text-align: center;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Logo */
footer .left img {
    width: 120px;
    height: auto;
}

/* Bottom row */
footer .bottom {
    padding-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.7em;
    border-top: 1px solid #b3b1b5;
}

@media (min-width: 768px) {
    footer {
        display: grid;
        grid-template-columns: 200px 1fr 1fr;
        grid-template-rows: auto auto;
        padding: var(--standard-increase);
    }

    .footer-section {
        align-items: flex-start;
        text-align: left;
        font-size: calc(0.8 * var(--font-size));
    }

    .footer-section li + li {
        margin-top: 0.2rem;
    }

    footer .left {
        grid-column: 1;
        text-align: center;
        align-items: center;
    }

    footer .middle {
        grid-column: 2;
    }

    footer .right {
        grid-column: 3;
    }

    footer .bottom {
        grid-column: 1 / span 3;
        text-align: center;
        align-items: center;
    }
}

.banner {
    display: flex;
    justify-content: center;
}

.banner a {
    width: 100%;
}

.banner img {
    padding: 10px;
    width: 100%;
}

h1, h2, h3 {
    text-align: center;
    margin: 10px 0;
}

.text {
    text-align: justify;
}

a {
    color: var(--light-primary);
}

section {
    margin: 50px 0;
}

hr {
    height: 0.2rem;
    background: var(--primary);
    border: none;
    border-radius: 0.2rem;
}

/*===== HOME =====*/

.greeting .text {
    text-align: center;
}

.motto {
    text-align: center;
}

#mottoText {
    font-size: calc(var(--font-size) + var(--standard-increase));
    font-weight: 600;
    font-style: italic;
}

.nav {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    justify-items: center;
}

.nav a {
    display: inline-block;
    min-width: 40%;
    width: 65%;
}

.nav img {
    border-radius: 10px;
}

.pfoertnerbund-logo, .pfoertnerbund-logo a {
    display: flex;
    justify-content: center;
}

.pfoertnerbund-logo {
    margin-top: 20px;
}

.circle-text {
    position: relative;
    width: 100%;
    min-width: 70%;
}

.circle-text svg {
    width: 100%;
    height: auto;
}

.circle-text img {
    position: absolute;
    top: 55%;
    left: 50%;
    width: 50%;
    transform: translate(-50%, -50%);
}

.sterni {
    display: flex;
    justify-content: left;
    margin: 0 auto;
}

.sterni a {
    height: auto;
    width: 35%;
    max-width: 300px;
    transform: rotate(-30deg) translate(40px, -10px);
}

.sterni img {
    width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .nav {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr;
    }

    .nav a {
        min-width: 80%;
        width: 100%;
    }

    .circle-text {
        width: 80%;
        min-width: 70%;
    }
}

/*===== ZELTEN =====*/

iframe {
    border: 2px solid var(--text);
    border-radius: 10px;
}

.rules {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Section title */
.rules h2 {
  text-align: center;
  margin-bottom: 8px;
}

/* Card for each rule */
.rule {
  background: var(--white-surface);
  border-left: 6px solid var(--primary);
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  font-size: calc(0.9 * var(--font-size));
}

/* Important rules (highlight) */
.rule.important {
  border-left: 6px solid var(--red);
  background: var(--red-surface);
  font-weight: 500;
}

/* Sub rules container */
.subrules {
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Sub rules smaller + softer */
.subrule {
  background: var(--lighgrey-surface);
  border-left: 4px solid var(--secondary);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: calc(0.8 * var(--font-size));
}

/* Optional: icons via pseudo elements */
.rule::before {
  content: "✔";
  margin-right: 8px;
  color: var(--primary);
  font-weight: bold;
}

.rule.important::before {
  content: "⚠";
  color: var(--red);
}

/* Responsive spacing */
@media (min-width: 768px) {
  .rules {
    max-width: 700px;
    margin: 0 auto;
  }
}

/*===== PROGRAMM =====*/

.program {
    text-align: center;
}

.schedule {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event {
    display: grid;
    grid-template-columns: 20% 80%;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--lighgrey-surface);
    box-shadow: none;
    transition: 0.5s ease box-shadow;
}

.event:hover {
    box-shadow: 10px 10px 3px 0 rgba(103, 35, 107, 0.47);;
}

.time {
    font-weight: bold;
    font-size: var(--font-size);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.details {
    font-size: var(--font-size);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.details .title {
    font-weight: 600;
}

.details .location {
    margin-top: var(--standard-increase);
}

.details .extra {
    margin-top: var(--standard-increase);
    color: var(--light-primary);
}

/*===== ALKOHOL =====*/

.disclaimer {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.disclaimer img {
    max-width: 60%;
    width: 40%
}

.disclaimer ul{
    margin-left: 30px;
}

/*===== PFÖRTNERBUND =====*/

.danke {
    text-align: justify;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*===== GALLERIES =====*/

.gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    cursor: grab;

    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.gallery:active {
    cursor: grabbing;
}

.gallery img {
    height: 500px;
    width: auto;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

/*===== IMPRESSUM =====*/

.impressum-page p {
    margin-bottom: 16px;
}

section.impressum {
    text-align: center;
}

section.impressum .rights {
    text-align: justify;
}

section.data-protection {
    text-align: justify;
}

section.general-contact {
    text-align: center;
}

section.general-contact .name-list {
    list-style: none;
    padding: 0;
    margin: 0;

    column-gap: 1.5rem;
    column-count: 1; /* default: phones */
}

section.general-contact .name-list.teachers {
    column-count: 1;
}

.name-list li {
    break-inside: avoid;
    margin-bottom: 0.3rem;
}

/* slightly larger phones */
@media (min-width: 400px) {
    section.general-contact .name-list {
        column-count: 2;
    }
}

/* tablets */
@media (min-width: 768px) {
    section.general-contact .name-list {
        column-count: 3;
    }

    section.general-contact .name-list.teachers {
        column-count: 3;
    }
}

/* desktop */
@media (min-width: 1024px) {
    section.general-contact .name-list {
        column-count: 4;
    }
}