
/*
Theme Name: Kunst Service
Author: Anton
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #ffffff; /* Hintergrundsfarbe */
    color: #000000; /* Schriftfarbe auf dem großen weißen feld */
    line-height: 1.6;
}

/* =========================
   SIDEBAR (GALERIE-STIL)
========================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 274px;
    height: 100vh;

    overflow-y: auto;      /* ← DAS IST DER SCHLÜSSEL */
    overflow-x: hidden;

    background-color: #ffffff;
    color: #000000;

    padding: 2.5rem 1.75rem;

    display: flex;
    flex-direction: column;
}

/* Logo */

.logo {
    margin-top: 2rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.logo img {
    max-width: 160px;
    height: auto;
    display: block;
}

/* Navigation */

.sidebar nav {
    display: flex;
    flex-direction: column;
    margin-top: 0rem;
}

.sidebar nav a {
    display: block;
    margin-bottom: 0.7rem;

    padding: 0.75rem 1.1rem;

    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: transparent;

    color: #000000;
    text-decoration: none;

    font-size: 0.9rem;
    letter-spacing: 0.03em;
    font-weight: 400;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}




.sidebar nav a:hover {
    background-color: #75A3C7;
    color: #000000;
    border-color: #ffffff;
}

/* Entfernt Punkte und Einrückung der WordPress-Menüs */
.sidebar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =========================
   CONTENT-BEREICH
========================= */


.content {
    margin-left: 274px;          /* exakt Sidebar-Breite */
    padding: 4rem 4rem 4rem 4rem;
    width: calc(100% - 274px);   /* WICHTIG */
    max-width: none;             /* keine künstliche Begrenzung */
    background: rgba(255,0,0,0.05);
}


/* Überschriften */

.content h1 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
}

.content h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin: 2.5rem 0 1rem;
}

/* Text */

.content p {
    font-size: 1rem;
    max-width: 720px;
    margin-bottom: 1.25rem;
}

/* Links im Content */

.content a {
    color: #000000;
    text-decoration: underline;
}

.content a:hover {
    opacity: 0.7;
}

/* =========================
   EVENTS (MINIMAL)
========================= */

.tribe-events {
    margin-top: 2rem;
}

.tribe-events-list-event-title {
    font-size: 1.05rem;
    font-weight: 400;
}

.tribe-events-event-meta {
    font-size: 0.85rem;
    color: #666666;
}

/* =========================
   MENU TOGGLE (MOBIL)
========================= */

.menu-toggle {
    display: none;
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 1000;

    background-color: #000000;
    color: #ffffff;
    border: none;

    font-size: 1.25rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }

    .content {
        margin-left: 0;
        padding: 3rem 1.75rem;
    }
}

/* Aktiver Menüpunkt – Block Navigation */
.sidebar nav a[aria-current="page"] {
    background-color: #75A3C7;
    color: #ffffff;
    border-color: #ffffff;
}

/* =========================
   NAVIGATION – BEWEGLICHE LINIE
========================= */

.sidebar nav {
    position: relative;
}

/* Die Linie selbst */
.nav-indicator {
    position: absolute;
    left: -0.8rem;
    width: 2px;
    height: 60px;

    background-color: #000000;

    transition:
        top 0.25s ease,
        height 0.25s ease;

    pointer-events: none;
}

/* Eingabefelder abrunden */
input,
textarea {
    border-radius: 6px;
}

/* Button abrunden */
button,
input[type="submit"] {
    border-radius: 6px;
}

/* Senden-Button – Grundstil */
.wpcf7 input[type="submit"] {
    background-color: #000;
    color: #fff;

    border: 1px solid #000;
    border-radius: 6px;

    padding: 0.6rem 1.4rem;

    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover */
.wpcf7 input[type="submit"]:hover {
    background-color: #fff;
    color: #000;
}

.walks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.walk-card {
    border: 1px solid rgba(0,0,0,0.15);
    padding: 1.25rem;
}

.walk-card img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.walk-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.walk-card a {
    color: #000;
    text-decoration: none;
}

.walk-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    border: 1px solid rgba(0,0,0,0.15);
    padding: 1.5rem;
}

.walk-text {
    flex: 1;
}

.walk-thumb {
    width: 220px;
    flex-shrink: 0;
}

.walk-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.walk-card {
    position: relative;
    cursor: pointer;
}

.walk-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.walk-card * {
    position: relative;
    z-index: 2;
}

.walk-card:hover {
    background-color: #e4e4e4;
}

/* =========================
   MOBILE TOUCH FEEDBACK
========================= */

/* Aktives Antippen (Touch) */
.walk-card:active {
    background-color: #eaeaea;
    transform: scale(0.985);
}

/* Weicher Übergang */
.walk-card {
    transition:
        background-color 0.15s ease,
        transform 0.12s ease;
}

.walk-card {
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.walk-card:active {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

@media (hover: none) {
    .walk-card:active {
        background-color: #eaeaea;
        transform: scale(0.985);
    }
}

.walk-link {
    -webkit-tap-highlight-color: transparent;
}

.themenliste {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thema-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.thema-item h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.thema-text {
    max-width: 720px;
    font-size: 0.95rem;
}

.themen-suche {
    margin: 2rem 0;
}

.themen-suche input[type="search"] {
    width: 100%;
    max-width: 420px;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(0,0,0,0.3);
    font-size: 0.95rem;
}

#themenFilter {
    width: 100%;
    max-width: 420px;
    margin: 2rem 0;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
}

.walk-card {
  position: relative;
}

.walk-link {
  position: absolute;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
  z-index: 5;

  /* Für Accessibility */
  text-indent: -9999px;
}

/* =========================
   Termine (Page ID 216)
   Text kompakter
========================= */

/* Absätze enger setzen */
body.page-id-216 .content p {
    line-height: 1.35;        /* kompaktere Zeilen */
    margin-bottom: 0.35rem;  /* weniger Abstand zwischen Absätzen */
}

/* Gutenberg-Absatzblock überschreiben */
body.page-id-216 .content .wp-block-paragraph {
    margin-bottom: 0.35rem;
}

/* =========================
   EVENTS – CONTENT VOLLE BREITE
   Page ID 195
========================= */

body.page-id-216 .content {
    max-width: none;          /* ← WICHTIG: Begrenzung aufheben */
    padding-right: 6rem;      /* mehr Raum nach rechts */
}

/* =========================
   Termine – Text volle Breite
   Page ID 216
========================= */

/* Content darf volle Breite nutzen */
body.page-id-216 .content {
    max-width: none;
    padding-right: 6rem;
}

/* WICHTIG: Absatz-Begrenzung aufheben */
body.page-id-216 .content p,
body.page-id-216 .content .wp-block-paragraph {
    max-width: none;
}

/* =========================
   Termine – echte Content-Breite
   Page ID 216
========================= */

/* Haupt-Content neben Sidebar */
body.page-id-216 .content-area {
    width: calc(100% - 274px);
    margin-left: 274px;
    max-width: none;
    padding: 4rem 4rem 4rem 4rem;
}

/* Innerer Inhaltsbereich */
body.page-id-216 .entry-content {
    max-width: none;
}

/* Absatz darf volle Breite nutzen */
body.page-id-216 .entry-content p,
body.page-id-216 .entry-content .wp-block-paragraph {
    max-width: none;
}

body.page-id-216 .content-area {
    background: rgba(255, 0, 0, 0.05);
}
