/* ==========================================================================
   template.css — Ergänzungen zu notion.css für eine persönliche Webseite
   --------------------------------------------------------------------------
   Verwendung: BEIDE Stylesheets im <head> einbinden
     <link rel="stylesheet" href="notion.css">
     <link rel="stylesheet" href="template.css">
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Navigationsleiste
   -------------------------------------------------------------------------- */
.notion-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--notion-divider);
  padding: 0 24px;
  height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 15px;
}

.notion-nav__brand { justify-self: start; }

@media (prefers-color-scheme: dark) {
  .notion-nav {
    background: rgba(25, 25, 25, 0.75);
  }
}

.notion-nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin-left: -8px;
  font-size: 23px;
  font-weight: 500;
  color: var(--notion-text);
  text-decoration: none;
  border-radius: 4px;
  transition: background 100ms ease;
}

.notion-nav__brand:hover {
  background: var(--notion-bg-hover);
  text-decoration: none;
}

.notion-nav__brand-icon { font-size: 20px; line-height: 1; }

.notion-nav__links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.2em;
}

.notion-nav__links li { padding: 0; margin: 0; }

.notion-nav__links a {
  display: block;
  padding: 7px 14px;
  color: var(--notion-text-light);
  text-decoration: none;
  border-radius: 4px;
  transition: background 100ms ease, color 100ms ease;
}

.notion-nav__links a:hover {
  background: var(--notion-bg-hover);
  color: var(--notion-text);
  text-decoration: none;
}

.notion-nav__links a.active {
  color: var(--notion-text);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   2. Cover-Bild (volle Breite, oben)
   -------------------------------------------------------------------------- */
.notion-cover {
  width: 100%;
  height: 30vh;
  max-height: 280px;
  min-height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a 0%, #fb923c 55%, #ec4899 100%);
}

.notion-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  max-width: none;
}

/* --------------------------------------------------------------------------
   3. Seiten-Icon (Emoji, überlappt das Cover)
   -------------------------------------------------------------------------- */
.notion-page-icon {
  font-size: 78px;
  line-height: 1;
  margin-top: -50px;
  margin-bottom: 12px;
  display: block;
  user-select: none;
}

/* Wenn ein Cover vorhanden ist, kein zusätzliches Padding oben */
.notion-page--with-cover { padding-top: 0; }
.notion-page--with-cover h1:first-of-type { margin-top: 0; }

/* --------------------------------------------------------------------------
   4. Projekt-Karten (Grid)
   -------------------------------------------------------------------------- */
.notion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.notion-cards li { padding: 0; margin: 0; list-style: none; }

.notion-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--notion-border);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: background 100ms ease, border-color 100ms ease;
}

.notion-card:hover {
  background: var(--notion-bg-hover);
  border-color: var(--notion-text-muted);
  text-decoration: none;
}

.notion-card__icon  { font-size: 24px; line-height: 1; margin-bottom: 8px; }
.notion-card__title { font-weight: 500; color: var(--notion-text); margin-bottom: 4px; }
.notion-card__desc  { font-size: 14px; color: var(--notion-text-light); line-height: 1.45; }

/* --------------------------------------------------------------------------
   5. Tags (Pillen für Skills, Kategorien, etc.)
   -------------------------------------------------------------------------- */
.notion-tag {
  display: inline-block;
  padding: 2px 8px;
  margin: 2px 4px 2px 0;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  background: var(--notion-bg-gray);
  color: var(--notion-text-light);
  line-height: 1.5;
}

.notion-tag--blue   { background: var(--notion-blue-bg);   color: var(--notion-blue); }
.notion-tag--green  { background: var(--notion-green-bg);  color: var(--notion-green); }
.notion-tag--orange { background: var(--notion-orange-bg); color: var(--notion-orange); }
.notion-tag--yellow { background: var(--notion-yellow-bg); color: var(--notion-yellow); }
.notion-tag--purple { background: var(--notion-purple-bg); color: var(--notion-purple); }
.notion-tag--pink   { background: var(--notion-pink-bg);   color: var(--notion-pink); }
.notion-tag--red    { background: var(--notion-red-bg);    color: var(--notion-red); }

/* --------------------------------------------------------------------------
   5b. Portrait (rechtsbündiges Profilfoto im Fließtext)
   -------------------------------------------------------------------------- */
.notion-portrait {
  float: right;
  width: 200px;
  height: auto;
  margin: 4px 0 12px 24px;
  border-radius: 4px;
  display: block;
}

@media (max-width: 600px) {
  .notion-portrait {
    float: none;
    width: 160px;
    margin: 12px 0;
  }
}

/* --------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */
.notion-footer {
  border-top: 1px solid var(--notion-divider);
  margin-top: 80px;
  padding-top: 24px;
  color: var(--notion-text-light);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.notion-footer a { color: var(--notion-text-light); }

/* --------------------------------------------------------------------------
   7. Mobile-Anpassungen
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .notion-nav { padding: 0 16px; height: 52px; font-size: 14px; }
  .notion-nav__links {gap: 2px; }
  .notion-nav__links a {padding: 6px 10px; }
  /* Auf kleinen Screens nur das Brand-Icon zeigen, damit das zentrierte Menü Platz hat */
  .notion-nav__brand span:not(.notion-nav__brand-icon) { display: none; }
  .notion-cover { height: 25vh; min-height: 140px; }
  .notion-page-icon { font-size: 60px; margin-top: -38px; }
}

@media (max-width: 460px) {
  /* Auf sehr kleinen Geräten optional einzelne Menüpunkte ausblenden */
  .notion-nav__links li.optional { display: none; }
}

/* --------------------------------------------------------------------------
   Eigene Anpassungen
   -------------------------------------------------------------------------- */

.teaser {
  font-size: 1.3em;
  margin-bottom: 10px;
}