/* Gemeinsame Styles fuer Tile-Card-Pages mit "Kacheln":
 * /projekte/index.php
 * /karte/a-z.php
 *
 * Vorher in jeder dieser Files inline dupliziert (~70 Zeilen).
 * Page-spezifische Tile-Hoehen / Kachellinks-Width-Overrides bleiben inline.
 */

/* Kachel-Bild-Container */
.image-wrapper {
    background: white;
    height: 214px;
    margin-bottom: 10px;
    border: 1px solid #E3E3E3;
}

.tile-6 img {
    width: auto;
}

/* Tile-Header-Typografie */
.header {
    margin: 0;
}

h2 {
    hyphens: auto;
    font-size: 22px;
    font-weight: 600;
    line-height: 30px;
}

/* Social-Media-Links in den Kacheln */
.social-list,
.social-list.custom li {
    padding: 0 !important;
}

.social-list.custom li {
    float: left;
}

.social-list.custom li a i {
    width: 35px;
}

.social-list li a i {
    font-size: 27px;
    color: #C6C6C6;
}

ul.social-list,
.social-list li {
    padding: 0;
}

ul.social-list {
    margin-top: -16px;
}

ul.social-list,
.buttonlink {
    float: left;
}

/* Button-Link in den Kacheln */
.buttonlink {
    font-family: Catamaran, sans-serif;
    text-transform: uppercase;
    padding: 6px 12px 5px;
    margin-right: 15px;
    background-color: #e3e3e3;
    font-size: 12.5px !important;
    letter-spacing: 0.5px;
    color: #333;
}

.buttonlink:hover {
    background-color: #ccc;
}

/* Plus-Icon mit Hover-Rotation */
.pluslink {
    cursor: pointer;
    right: 10px;
    position: absolute;
}

.pluslink img {
    overflow: hidden;
    transition-duration: 0.2s;
    transition-property: transform;
}

.pluslink img:hover {
    transform: rotate(90deg);
}


/* ============================================================================
 * Aus main.css extrahiert (Cleanup): Page-spezifische Kachel-Regeln.
 * tile-cards.css laedt auf projekte / kooperationen / karte-a-z NACH main.css,
 * Overrides wie body.projekte .tile-6 greifen also korrekt.
 * ============================================================================ */

/* Kachellinks: Page-spezifische Breiten (vorher inline in projekte/index.php,
 * karte/a-z.php) */
body.orte-az .kachellinks {
    position: absolute;
    bottom: 25px;
    width: calc(100% - 30px);
}

body.projekte .kachellinks,
body.kooperationen .kachellinks {
    position: absolute;
    bottom: 25px;
    width: 340px;
    height: 30px;
}

body.projekte .tile-6,
body.kooperationen .tile-6 {
    height: 480px;
}

/* Foerderperioden-Umschalter auf /projekte/ (Phase 4.6). Zwei runde Logo-Buttons;
 * der aktive ist farbig, der inaktive grau (separate SVG, src-Wechsel im JS).
 * Isotope filtert die Kacheln nach .fp2425 / .fp2627. */
body.projekte .periode-nav {
    margin-top: 20px;
    margin-bottom: 0;
    margin-left: 100px;
    font-size: 0; /* Whitespace zwischen den inline-Buttons schlucken */
}

body.projekte .periode-filter {
    display: inline-block;
    width: 70px;
    cursor: pointer;
    vertical-align: middle;
    transition: transform 0.15s ease;
}

body.projekte .periode-filter:hover {
    transform: scale(1.05);
}

body.projekte .periode-filter img {
    width: 100%;
    height: auto;
    display: block;
}

/* Ab >1200px die Buttons oben rechts im Intro-Bereich (sonst haengen sie unter
 * dem Text). .tile-5 ist via Isotope position:absolute = Positionierungs-Kontext.
 * Unterhalb 1200px bleiben die Buttons im normalen Fluss. */
@media only screen and (min-width: 1200px) {
    body.projekte .periode-nav {
        position: absolute;
        top: 60px;
        right: 80px;
        margin-top: 0;
    }

    body.projekte .periode-filter {
        width: 100px;
    }
}

body.projekte h4 {
    padding-top: 10px;
}


/* ----------------------------------------------------------------------------
 * Aus Inline-CSS ausgelagert (Cleanup) — projekte.php / kooperationen.php.
 * ---------------------------------------------------------------------------- */

/* Isotope-Container (Positionierungs-Kontext; Hoehe nur Lade-Platzhalter,
 * Isotope setzt sie nach window.load selbst). */
body.projekte #container,
body.kooperationen #container {
    position: relative;
    height: 685px;
}

/* Intro-Absatz der Einstiegs-Kachel. */
body.projekte .tile-5 p,
body.kooperationen .tile-5 p {
    max-width: 750px;
    font-size: 18px;
    padding: 15px 0 5px 0;
}

/* Kachel-Vorderseite: feste Mindesthoehe. */
body.projekte .front > .grey-bg,
body.kooperationen .front > .grey-bg {
    min-height: 480px;
}

/* Aus Inline-CSS ausgelagert (Cleanup) — a-z.php */

/* Isotope-Container (Positionierungs-Kontext; Hoehe nur Lade-Platzhalter,
 * Isotope setzt sie nach window.load selbst). */
body.orte-az #container {
    position: relative;
    height: 685px;
}

/* Intro-Absatz der Einstiegs-Kachel. */
body.orte-az .tile-5 p {
    max-width: 750px;
    font-size: 18px;
    padding: 15px 0 5px 0;
}

/* Bildkachel-Vorderseite: begrenzte Bildhoehe. */
body.orte-az .front .image-wrapper {
    max-height: 220px;
}

/* Kachel-Rueckseite: Titel fett. */
body.orte-az .back .kachel-titel {
    font-weight: 800;
}

/* "mehr lesen"-Link in der Kurzbeschreibung. */
body.orte-az .xxxx {
    font-weight: 700;
    margin-left: 5px;
    cursor: pointer;
}
