/* Glowka IT — Theme-CSS.
 * Nimm hier Brand-Farben, Fonts, Layout-Tweaks rein.
 * cms-core liefert keine Defaults — alles Visuelle ist Site-Sache.
 */

/* ---------------------------------------------------------------------------
   Digitale Visitenkarte

   Fuer das Handy gebaut - dort wird sie per QR-Code geoeffnet. Auf groesseren
   Bildschirmen bleibt die Karte deshalb schmal und zentriert.
   --------------------------------------------------------------------------- */

.vcard {
  --karte-breite: 26rem;
  --ton-dunkel: #0f1520;
  --ton-akzent: #3b82f6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem 3rem;
  background: linear-gradient(170deg, var(--ton-dunkel) 0%, #1b2436 100%);
  color: #f8fafc;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.vcard__karte {
  width: 100%;
  max-width: var(--karte-breite);
  text-align: center;
}

.vcard__foto {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.vcard__name { margin: 1.25rem 0 .25rem; font-size: 1.6rem; font-weight: 650; letter-spacing: -.01em; }
.vcard__position { margin: 0; color: var(--ton-akzent); font-weight: 500; }
.vcard__firma { margin: .15rem 0 0; color: #94a3b8; font-size: .95rem; }

.vcard__aktionen {
  display: flex;
  gap: .6rem;
  margin: 1.5rem 0 .5rem;
}

.vcard__speichern,
.vcard__teilen-knopf {
  flex: 1;
  padding: .8rem 1rem;
  border-radius: .8rem;
  border: 0;
  font: inherit;
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, filter .12s ease;
}
.vcard__speichern { background: var(--ton-akzent); color: #fff; }
.vcard__teilen-knopf { background: rgba(255, 255, 255, .1); color: #f8fafc; }
.vcard__speichern:hover,
.vcard__teilen-knopf:hover { filter: brightness(1.12); transform: translateY(-1px); }

.vcard__links { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .55rem; }

.vcard__link {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1rem;
  border-radius: .8rem;
  background: rgba(255, 255, 255, .06);
  color: #f8fafc;
  text-decoration: none;
  text-align: left;
  transition: background .12s ease;
}
.vcard__link:hover { background: rgba(255, 255, 255, .12); }

.vcard__adresse {
  margin-top: 1.5rem;
  font-style: normal;
  color: #94a3b8;
  font-size: .9rem;
  line-height: 1.6;
}

/* Teilen-Fenster */
.vcard__dialog {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 15, .75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}
.vcard__dialog[hidden] { display: none; }

.vcard__dialog-inhalt {
  position: relative;
  width: 100%;
  max-width: 22rem;
  background: #16203010;
  background-color: #182234;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.vcard__dialog-inhalt h2 { margin: 0 0 .5rem; font-size: 1.2rem; }
.vcard__dialog-text { color: #94a3b8; font-size: .9rem; margin-bottom: 1rem; }

.vcard__dialog-schliessen {
  position: absolute;
  top: .5rem;
  right: .75rem;
  background: none;
  border: 0;
  color: #94a3b8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.vcard__qr { width: 100%; max-width: 13rem; height: auto; border-radius: .6rem; background: #fff; padding: .5rem; }

.vcard__dialog-aktionen { display: flex; gap: .6rem; margin-top: 1.1rem; }
.vcard__dialog-aktionen a {
  flex: 1;
  padding: .7rem;
  border-radius: .7rem;
  background: rgba(255, 255, 255, .1);
  color: #f8fafc;
  text-decoration: none;
  font-size: .9rem;
}

/* Rechtsseiten und Fusszeile */
.rechtsseite { max-width: 48rem; margin: 0 auto; padding: 3rem 1.25rem; line-height: 1.7; }
.rechtsseite h1 { margin-bottom: 1.5rem; }

.fusszeile { padding: 2rem 1rem; text-align: center; color: #64748b; font-size: .85rem; }
.fusszeile nav { display: flex; gap: 1.25rem; justify-content: center; margin-bottom: .5rem; }
.fusszeile a { color: inherit; }

/* ---------------------------------------------------------------------------
   Cookie-Hinweis

   Die Vorlage aus cms-core ist mit Tailwind-Klassen gestaltet; diese Seite
   bindet kein Tailwind ein. Die Regeln hier greifen deshalb ueber Struktur
   statt ueber Klassennamen - gerade so viel, dass die Leiste liegt, wo sie
   soll, und lesbar ist. Position, Texte und Beschriftungen bleiben in den
   Einstellungen unter Cookies.
   --------------------------------------------------------------------------- */

#cms-cookie-banner {
  position: fixed;
  z-index: 1010;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

#cms-cookie-banner[data-cms-cookie-position='modal'] {
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}

#cms-cookie-banner[data-cms-cookie-position='bottom_right'] {
  left: auto;
  max-width: 24rem;
}

#cms-cookie-banner > div {
  max-width: 40rem;
  margin: 0 auto;
  background: #fff;
  color: #111;
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

#cms-cookie-banner h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

#cms-cookie-banner p {
  margin: 0 0 1rem;
  color: #555;
}

#cms-cookie-banner img {
  max-height: 2.5rem;
  width: auto;
  margin-bottom: 0.75rem;
}

#cms-cookie-banner button {
  display: inline-block;
  margin: 0.25rem 0.4rem 0 0;
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.6rem;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

#cms-cookie-banner button:hover,
#cms-cookie-banner button:focus-visible {
  border-color: #111;
}

/* Die Zustimmung ist der vorgesehene Weg und darum hervorgehoben. */
#cms-cookie-banner button[data-cms-cookie='accept'] {
  background: #111;
  border-color: #111;
  color: #fff;
}

#cms-cookie-banner a {
  color: inherit;
}

/* Cookie-Hinweis aus cms-core in den Farben dieser Seite (ab cms-core v0.24.0,
   siehe cms_core/css/cookie.css). Hover wird aus dem Akzent abgeleitet. */
:root {
  --cms-cookie-accent: #111111;
  --cms-cookie-accent-hover: color-mix(in srgb, #111111 85%, #000);
  --cms-cookie-accent-text: #fff;
  --cms-cookie-radius: 0.6rem;
}

/* ---------------------------------------------------------------------------
   Startseite und Visitenkarte - Nachbau der abgeloesten DjangoCMS-Seite
   (20.10.2026): grauer Verlauf mit Logo auf der Startseite, graue Karte mit
   Foto, Text, zwei Knoepfen und quadratischen Symbolen. Die dunklen
   .vcard-Regeln oben sind damit ohne Verwendung.
   --------------------------------------------------------------------------- */

body.gk-startseite, body.gk-karte {
  margin: 0;
  font: 400 15px/1.6 "Open Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: #222;
  -webkit-font-smoothing: antialiased;
}

/* Startseite */
body.gk-startseite { background: #9a9a9a; }
.gk-start {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem 4rem;
  background: linear-gradient(100deg, #b4b4b4 0%, #9a9a9a 50%, #878787 100%);
  color: #fff;
}
.gk-start__inhalt { display: flex; flex-direction: column; align-items: center; }
.gk-start__logo { height: 250px; width: auto; max-width: 90vw; margin-bottom: 30px; }
.gk-start__titel {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.5;
}
.gk-start__gruss { display: block; font-weight: 300; letter-spacing: .2em; }
.gk-start__hinweis { margin: 18px 0 0; color: #f0a500; font-weight: 600; font-size: 16px; }
.gk-start__fuss {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  text-align: center; font-size: 12px; color: rgba(255, 255, 255, .7);
}
.gk-start__fuss a { color: inherit; text-decoration: none; }
.gk-start__fuss a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 520px) {
  .gk-start__logo { height: 180px; }
  .gk-start__titel { font-size: 22px; }
}

/* Visitenkarte */
body.gk-karte { background: #c4c4c4; }
.gk-kopf { padding: 14px 20px 0; }
.gk-kopf__logo img { height: 100px; width: auto; display: block; }
.gk-seite { max-width: 1140px; margin: 0 auto; padding: 20px 15px 60px; min-height: 75vh; }

.gk-person { display: grid; grid-template-columns: 5fr 7fr; column-gap: 16px; align-items: start; }
.gk-foto img { width: 100%; height: auto; display: block; border: 1px solid #000; border-radius: 4px; }
.gk-text { text-align: center; padding-top: 6px; }
.gk-name { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.gk-rolle { font-size: 20px; margin-bottom: 14px; }
.gk-anschrift { font-style: normal; font-size: 20px; line-height: 1.4; }
.gk-knoepfe { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.gk-knopf {
  display: inline-block; box-sizing: border-box;
  padding: 12px 20px;
  font: 600 13px/1.2 "Open Sans", "Segoe UI", system-ui, sans-serif;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: #fff; background: rgba(34, 34, 34, .9); border: 2px solid transparent; border-radius: 0; cursor: pointer;
}
.gk-knopf:hover, .gk-knopf:focus-visible { background: rgba(0, 0, 0, .75); color: #fff; }
.gk-knopf--rand { color: #151515; border-color: #151515; background: transparent; }
.gk-knopf--rand:hover, .gk-knopf--rand:focus-visible { color: #fff; background: #000; border-color: transparent; }
.gk-knopf--grau { color: #444; background: #e5e5e5; }

.gk-raster { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 12px; }
.gk-kachel { display: block; color: #222; text-decoration: none; text-align: center; }
.gk-kachel img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; box-sizing: border-box;
  padding: 4px; border: 1px solid #000; border-radius: 25%; background: #fff;
}
.gk-kachel span { display: block; margin-top: 10px; font-size: 16px; }

@media (min-width: 768px) {
  .gk-seite { display: grid; grid-template-columns: 4fr 1fr 6fr; column-gap: 24px; align-items: start; }
  .gk-person { grid-template-columns: 1fr; }
  .gk-text { text-align: left; }
  .gk-knoepfe { justify-content: flex-start; }
  .gk-raster { grid-column: 3; margin-top: 30px; }
}

/* Fenster */
.gk-dialog { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .5); }
.gk-dialog[hidden] { display: none; }
.gk-dialog__inhalt { width: 100%; max-width: 500px; background: #fff; border-radius: 6px; box-shadow: 0 5px 15px rgba(0, 0, 0, .5); overflow: hidden; }
.gk-dialog__kopf { padding: 15px; background: #f4f4f4; border-bottom: 1px solid #e5e5e5; }
.gk-dialog__kopf h2 { margin: 0; font-size: 18px; font-weight: 500; }
.gk-dialog__rumpf { padding: 15px 20px; text-align: center; }
.gk-dialog__rumpf p, .gk-dialog__text { font-size: 14px; line-height: 1.6; margin: 0 0 20px; text-align: left; }
.gk-dialog__qr { display: block; width: 50%; max-width: 220px; height: auto; margin: 0 auto; }
.gk-dialog__teilen { display: flex; justify-content: center; gap: 24px; margin-top: 40px; }
.gk-rund { display: block; width: 58px; height: 58px; padding: 4px; box-sizing: border-box; border: 1px solid #000; border-radius: 25%; background: #fff; }
.gk-rund img { width: 100%; height: 100%; display: block; }
.gk-dialog__fuss { padding: 15px; border-top: 1px solid #e5e5e5; text-align: right; }

/* Fusszeile der Karte */
.gk-fuss { padding: 30px 15px 24px; text-align: center; color: #222; background: #c4c4c4; }
.gk-fuss__firma { font-size: 22px; font-weight: 600; }
.gk-fuss__made { margin-top: 6px; font-size: 15px; }
.gk-fuss__herz { color: #e41919; }
.gk-fuss__recht { margin-top: 10px; display: flex; justify-content: center; gap: 36px; font-size: 20px; }
.gk-fuss__recht a { color: #222; text-decoration: none; }
.gk-fuss__recht a:hover { text-decoration: underline; }
