/* =========================================================================
   Kaffee Einstein
   style.css – Basis, Typografie, Layout, Sektionen
   Alle Werte wurden aus dem Original (WordPress/OceanWP/Elementor) übernommen.
   Medienabfragen: siehe responsive.css
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Schriften
   Original: Google Fonts "Oswald" (Gewichte 200–700, latin + latin-ext)
   ------------------------------------------------------------------------- */
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/oswald-200.woff2') format('woff2');
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/oswald-300.woff2') format('woff2');
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/oswald-400.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/oswald-500.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/oswald-600.woff2') format('woff2');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/oswald-700.woff2') format('woff2');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* -------------------------------------------------------------------------
   2. Globale Variablen (entsprechen den Elementor-Global-Farben)
   ------------------------------------------------------------------------- */
:root {
    --farbe-primaer: #541604;   /* Elementor: primary / accent  */
    --farbe-sekundaer: #E5DECD; /* Elementor: secondary         */
    --farbe-text: #0E0E0E;      /* Elementor: text              */
    --inhalt-breit: 1140px;
}

/* -------------------------------------------------------------------------
   3. Reset / Grundlagen
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #4a4a4a;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin: 0 0 20px;
    color: #333;
    line-height: 1.4;
}

h1 { font-size: 40px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p {
    margin: 0 0 1.5em;
}


a {
    color: inherit;
    background-color: transparent;
    text-decoration: underline;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Sichtbare Fokuszustände für Tastaturbedienung (barrierearm, ohne
   das Erscheinungsbild bei Mausbedienung zu verändern). */
:focus-visible {
    outline: 2px solid #541604;
    outline-offset: 2px;
}

/* Sprunglink „Zum Inhalt springen“ */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.skip-link:focus {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 100000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 15px 23px 14px;
    clip-path: none;
    overflow: visible;
    background-color: #ddd;
    color: #444;
    font-size: 1em;
    line-height: normal;
    text-decoration: none;
}

/* -------------------------------------------------------------------------
   4. Layout-Container
   ------------------------------------------------------------------------- */
.container {
    position: relative;
    display: flex;
    width: 100%;
    max-width: var(--inhalt-breit);
    margin-right: auto;
    margin-left: auto;
}

.container--800 { max-width: 800px; }
.container--1000 { max-width: 1000px; }

.container--mittig {
    align-items: center;
}

.zeile {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.spalte {
    position: relative;
    display: flex;
    min-height: 1px;
}

.spalte__inhalt {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    width: 100%;
}

.spalte__inhalt--gefuellt {
    padding: 10px;
}

.spalte--25 { width: 25%; }
.spalte--50 { width: 50%; }
.spalte--100 { width: 100%; }

.widget {
    width: 100%;
}

.widget:not(:last-child) {
    margin-bottom: 20px;
}

.text-mittig {
    text-align: center;
}

/* -------------------------------------------------------------------------
   5. Widget-Grundtypen (Überschrift / Textblock / Icon-Liste)
   ------------------------------------------------------------------------- */
.ueberschrift {
    margin: 0;
    color: var(--farbe-primaer);
    font-family: "Oswald", Sans-serif;
    font-weight: 600;
}

/* Als <p> ausgezeichnete Überschriften-Widgets (Original) erben 18px */
p.ueberschrift {
    font-size: 18px;
    line-height: 1.4;
}

.textblock {
    color: var(--farbe-text);
    font-family: "Oswald", Sans-serif;
    font-weight: 400;
}

.textblock p:last-child {
    margin-bottom: 0;
}

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

.icon-liste__eintrag {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
}

.icon-liste__eintrag a {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.icon-liste__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 1.25em;
    height: 1.8em;
}

.icon-liste__icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.icon-liste__icon + .icon-liste__text {
    align-self: center;
    padding-left: 5px;
}

/* -------------------------------------------------------------------------
   6. Kopfbereich
   ------------------------------------------------------------------------- */
.seiten-kopf {
    background-color: var(--farbe-primaer);
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.seiten-kopf > .container {
    min-height: 80px;
    align-items: center;
}

.seiten-kopf__spalte-logo {
    width: 50%;
}

.seiten-kopf__spalte-leer {
    width: 50%;
}

.seiten-kopf__titel {
    margin: 0;
    color: #FFFFFF;
    font-family: "Oswald", Sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.4;
}

.seiten-kopf__titel a {
    color: #FFFFFF;
    text-decoration: none;
}

.seiten-kopf__titel a:hover {
    text-decoration: none;
}


/* -------------------------------------------------------------------------
   7. Hauptbereich
   ------------------------------------------------------------------------- */
.seiten-inhalt {
    display: block;
}

/* --- 7.1 Bühne --- */
.buehne {
    position: relative;
    background-image: url('../images/2019-09-28-Berlin-Kaffee-Einstein-offenblende-CEU-1.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.buehne > .container {
    min-height: 600px;
}

/* --- 7.2 Begrüßung --- */
.begruessung {
    padding: 80px 0;
}

.begruessung .ueberschrift,
.begruessung .textblock {
    text-align: center;
}

.begruessung__titel {
    font-size: 40px;
}

/* --- 7.3 Standort --- */

.standort {
    position: relative;
    z-index: 9;
    margin-top: 0;
    margin-bottom: -180px;
    padding: 0;
    border: 0;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.standort__spalte-info {
    width: 40%;
    align-items: center;
}

.standort__spalte-info > .spalte__inhalt {
    align-content: center;
    align-items: center;
    padding: 30px;
    background-color: var(--farbe-primaer);
    border-style: solid;
    border-width: 0 0 5px 5px;
    border-color: #FFFFFF;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.standort__titel {
    color: #FFFFFF;
    font-family: "Oswald", Sans-serif;
    font-size: 36px;
    font-weight: 600;
}

.standort__liste .icon-liste__eintrag,
.standort__liste .icon-liste__eintrag a {
    font-family: "Oswald", Sans-serif;
    font-size: 22px;
    font-weight: 400;
}

.standort__liste .icon-liste__icon {
    color: #FFFFFF;
    font-size: 22px;
}

.standort__liste .icon-liste__icon svg {
    fill: #FFFFFF;
    width: 1em;
    height: 1em;
}

.standort__liste .icon-liste__text {
    color: #FFFFFF;
}

.standort__spalte-karte {
    width: 60%;
}

.standort__spalte-karte > .spalte__inhalt {
    padding: 0;
    border-style: solid;
    border-width: 0 5px 5px 0;
    border-color: #FFFFFF;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}


.karte {
    display: block;
    width: 100%;
    height: 400px;
    background-image: url('../images/karte.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* --- 7.4 Farbband hinter dem Standortblock --- */
.farbband {
    position: relative;
    z-index: 1;
    margin-top: 0;
    margin-bottom: 0;
    padding: 100px 0 150px 0;
    background-color: var(--farbe-primaer);
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.farbband__spalte {
    width: 50%;
}

.farbband__spalte > .spalte__inhalt {
    margin: -150px 10px 10px 10px;
    padding: 0;
}

/* --- 7.5 Angebot --- */
.angebot-titel {
    padding: 80px 0 0 0;
}

.angebot-titel .ueberschrift {
    text-align: center;
}

.angebot {
    padding: 0 0 80px 0;
}

.angebot__spalte {
    width: 25%;
}

.angebot__spalte > .spalte__inhalt {
    margin: 10px;
    padding: 0;
    background-color: var(--farbe-sekundaer);
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.angebot__spalte > .spalte__inhalt > .widget:not(:last-child) {
    margin-bottom: 10px;
}

.angebot__bild {
    text-align: center;
}

.angebot__bild img {
    display: inline-block;
    vertical-align: middle;
}

.angebot__text-bereich {
    width: 100%;
    padding: 30px;
}

.angebot__titel {
    text-align: center;
    font-size: 24px;
}

.angebot__beschreibung {
    text-align: center;
    font-family: "Oswald", Sans-serif;
    font-size: 16px;
    font-weight: 400;
}

/* --- 7.6 Galerie --- */
.galerie-bereich {
    padding: 80px 0;
}

.galerie {
    /* Werte aus dem Original-Widget */
    --hgap: 8px;
    --vgap: 8px;
    --columns: 4;
    --aspect-ratio: 177.77777777777777%;  /* 9:16 */
    --animation-duration: 350ms;
    --image-transition-duration: 800ms;
    --overlay-transition-duration: 800ms;

    display: grid;
    grid-gap: var(--vgap) var(--hgap);
    grid-template-columns: repeat(var(--columns), 1fr);
    width: 100%;
    min-height: 1px;
}

.galerie__eintrag {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.galerie__bild {
    width: 100%;
    padding-bottom: var(--aspect-ratio);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transform-origin: center top;
    transition-duration: var(--image-transition-duration);
    transition-property: filter, transform;
}

/* Einblende-Effekt beim Laden (Original: Elementor-Lazyload) */
.galerie__bild:not(.ist-geladen) {
    filter: opacity(0);
    transform: scale(0.5);
    transition: var(--animation-duration);
}

.galerie__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition-duration: var(--overlay-transition-duration);
    transition-property: transform, opacity, background-color;
}

.galerie__eintrag:hover .galerie__overlay,
.galerie__eintrag:focus-visible .galerie__overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

/* -------------------------------------------------------------------------
   8. Lightbox (leichtgewichtiger Nachbau der Elementor-Lightbox)
   ------------------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox.ist-offen {
    display: block;
}

.lightbox__kopf {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 15px;
    color: #fff;
    font-family: "Oswald", Sans-serif;
    font-size: 15px;
    line-height: 1.4;
}

.lightbox__titel {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lightbox__buehne {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 70px;
}

.lightbox__bild {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 300ms;
}

.lightbox__bild.ist-sichtbar {
    opacity: 1;
}

.lightbox__knopf {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.lightbox__knopf:hover {
    opacity: 1;
}

.lightbox__knopf svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.lightbox__schliessen {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 15px;
}

.lightbox__vor,
.lightbox__zurueck {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
}

.lightbox__zurueck { left: 15px; }
.lightbox__vor { right: 15px; }

/* -------------------------------------------------------------------------
   9. Rechtstext-Seiten (Impressum / Datenschutzerklärung)
   ------------------------------------------------------------------------- */
.rechtstext {
    padding: 100px 0;
}

.rechtstext .textblock h1 {
    font-size: 40px;
}

.rechtstext .textblock h2 {
    font-size: 36px;
}

.rechtstext .textblock h3 {
    font-size: 24px;
}

.rechtstext .textblock h4 {
    font-size: 20px;
}

/* -------------------------------------------------------------------------
   10. Fußbereich
   ------------------------------------------------------------------------- */
.seiten-fuss {
    padding: 80px 0;
    background-color: var(--farbe-primaer);
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.seiten-fuss__spalte {
    width: 50%;
}

.seiten-fuss__spalte > .spalte__inhalt {
    padding: 20px;
}

.seiten-fuss__titel {
    color: #FFFFFF;
}

.seiten-fuss__liste .icon-liste__eintrag,
.seiten-fuss__liste .icon-liste__eintrag a {
    font-family: "Oswald", Sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.seiten-fuss__liste .icon-liste__icon {
    color: #FFFFFF;
    font-size: 16px;
}

.seiten-fuss__liste .icon-liste__icon svg {
    fill: #FFFFFF;
    width: 1em;
    height: 1em;
}

.seiten-fuss__liste .icon-liste__text {
    color: #FFFFFF;
}

.seiten-fuss__liste a {
    color: #FFFFFF;
    text-decoration: none;
}

.seiten-fuss__liste a:hover,
.seiten-fuss__liste a:focus-visible {
    text-decoration: underline;
}

/* -------------------------------------------------------------------------
   11. „Nach oben“-Schaltfläche
   ------------------------------------------------------------------------- */
.nach-oben {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 18px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 400ms, background-color 0.2s;
}

.nach-oben.ist-sichtbar {
    display: block;
    opacity: 1;
}

.nach-oben:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.nach-oben svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: middle;
}

/* -------------------------------------------------------------------------
   12. Reduzierte Bewegung
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .galerie__bild:not(.ist-geladen) {
        filter: none;
        transform: none;
    }
}
