/* =========================
       GRUNDLAYOUT
       ========================= */

    body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      min-height: 100vh;
      color: #333;
      
      /* Bild oben fixieren & voll anzeigen */
      background-image: url('/wiki/hintergrund.png');
      background-repeat: no-repeat;
      background-position: center center;
      background-size: cover;
	  background-attachment: fixed;
	  min-height: 100vh; 
	  margin: 0;
	  
      
      background-color: #6cb748; 
    }


    /* =========================
       HEADER
       ========================= */

    header {
      background-color: #6cb748;
      color: white;
      padding: 20px;
    }

    .header-content {
      display: flex;
      align-items: center;
      gap: 20px;
      max-width: 900px;
      margin: 0 auto;
    }

    .logo {
      height: 60px;
      width: auto;
      flex-shrink: 0;
    }

    .header-text h1,
    .header-text p {
      margin: 0;
    }

    .header-text h1 {
      font-size: 24px;
    }

    .header-text p {
      margin-top: 5px;
    }
	
	/* =========================
       FOOTER
       ========================= */

    footer {
      background-color: #6cb748;
      color: white;
      padding: 20px;
    } 
	
	.footer-content {
      display: flex;
      align-items: center;
	  justify-content: center;
      text-align: center;
      gap: 20px;
      max-width: 900px;
      margin: 0 auto;
    }

	/* Footer-Links */
	.footer-card {
		color: white;
		text-decoration: none;
	}
	
	/* Auch nach dem Besuch des Links weiß lassen */
	.footer-card:visited {
		color: white;
	}
	
	/* Beim Darüberfahren mit der Maus */
	.footer-card:hover {
		color: white;
		text-decoration: none;
	}
	
	/* Beim Anklicken */
	.footer-card:active {
		color: white;
		text-decoration: none;
	}

    .footer-text h1,
    .footer-text p {
      margin: 0;
	  text-align: center;
    }

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

    .footer-text p {
      margin-top: 5px;
	  text-align: center;
    }


    /* =========================
       NAVIGATION
       ========================= */

    nav {
      background-color: #96d976;
      display: flex;
      justify-content: center;
      padding: 10px 0;
    }

    nav a {
      color: white;
      text-decoration: none;
      margin: 0 20px;
      font-weight: bold;
      transition: color 0.3s;
    }

    nav a:hover {
      color: #ecf0f1;
      text-decoration: underline;
    }


    /* =========================
       HAUPTINHALT
       ========================= */

    main {
      max-width: 900px;
      margin: 20px auto;
      padding: 25px;
      background-color: white;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    section {
      margin-bottom: 35px;
    }

    h2 {
      color: #2c3e50;
      margin-top: 0;
      margin-bottom: 8px;
    }

    .section-description {
      color: #777;
      margin-top: 0;
      margin-bottom: 20px;
      line-height: 1.5;
    }


    /* =========================
       TEXT-LINKS & TYPOGRAFIE
       ========================= */

    a.content-link {
      color: #2980b9;
      text-decoration: none;
    }

    a.content-link:hover {
      text-decoration: underline;
    }

    main p {
      line-height: 1.6;
      color: #444;
      margin-bottom: 15px;
    }

    main ul, main ol {
      margin: 15px 0;
      padding-left: 25px;
      line-height: 1.6;
      color: #444;
    }

    main li {
      margin-bottom: 8px;
    }


    /* =========================
       BREADCRUMB / ZURÜCK-LINK
       ========================= */

    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #6cb748;
      text-decoration: none;
      font-weight: bold;
      font-size: 14px;
      margin-bottom: 20px;
      transition: color 0.2s;
    }

    .back-link:hover {
      color: #559338;
      text-decoration: underline;
    }


    /* =========================
       INFOBOX / HINWEISKASTEN
       ========================= */

    .info-box {
      background-color: #f7fbf5;
      border: 1px solid #dfe8da;
      border-left: 5px solid #6cb748;
      padding: 15px 20px;
      border-radius: 6px;
      margin: 20px 0;
      color: #2c3e50;
      line-height: 1.5;
    }

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


    /* =========================
       GRID-LAYOUTS
       ========================= */

    .link-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }

    /* Grid für 3 große Portal-Buttons */
    .portal-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
      margin-top: 20px;
    }


    /* =========================
       LINK-KARTEN (ANLEITUNGEN)
       ========================= */

    .link-card {
      display: flex;
      align-items: center;
      min-height: 85px;
      padding: 15px 18px;
      box-sizing: border-box;
      background-color: #fff;
      border: 1px solid #dfe8da;
      border-left: 5px solid #6cb748;
      border-radius: 8px;
      color: #2c3e50;
      text-decoration: none;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      transition:
        transform 0.2s,
        box-shadow 0.2s,
        background-color 0.2s;
    }

    .link-card:hover {
      transform: translateY(-3px);
      background-color: #f7fbf5;
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.13);
      text-decoration: none;
    }


    /* =========================
       GROSSE PORTAL-BUTTONS (FIXED)
       ========================= */

    .portal-card {
      display: flex;
      flex-direction: column;
      background-color: #fff;
      border: 1px solid #dfe8da;
      border-top: 5px solid #6cb748;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
      height: 140px; /* Feste Gesamthöhe des Buttons */
      text-decoration: none;
      color: #2c3e50;
    }

    .portal-card:hover {
      transform: translateY(-4px);
      background-color: #f7fbf5;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
      text-decoration: none;
    }

    .portal-image {
      width: 100%;
      height: 100%;
      background-color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
      box-sizing: border-box;
      overflow: hidden;
    }

    .portal-image img {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain; /* Verhindert das Herausragen des Bildes */
      transition: transform 0.3s;
    }

    .portal-card:hover .portal-image img {
      transform: scale(1.05);
    }

    /* Fallback für Text innerhalb der Portal-Card (z.B. "zur Übersicht") */
    .portal-image p {
      margin: 0;
      font-weight: bold;
      font-size: 16px;
      color: #2c3e50;
      text-align: center;
    }


    /* =========================
       ICONS & TEXT
       ========================= */

    .link-icon {
      width: 45px;
      height: 45px;
      min-width: 45px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 15px;
      background-color: #e8f5e3;
      border-radius: 50%;
      font-size: 21px;
    }

    .link-text {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
    }

    .link-title {
      font-size: 16px;
      font-weight: bold;
      color: #2c3e50;
      line-height: 1.3;
    }

    .link-description {
      font-size: 13px;
      color: #777;
      line-height: 1.35;
    }


    /* =========================
       DEAKTIVIERTE KARTEN
       ========================= */

    .link-card.disabled,
    .portal-card.disabled {
      background-color: #f4f4f4;
      border-color: #ddd;
      border-left-color: #aaa;
      border-top-color: #aaa;
      opacity: 0.65;
      cursor: default;
      pointer-events: none;
      box-shadow: none;
    }

    .link-card.disabled:hover,
    .portal-card.disabled:hover {
      transform: none;
      box-shadow: none;
      background-color: #f4f4f4;
    }

    .link-card.disabled .link-icon,
    .portal-card.disabled .portal-image {
      background-color: #e5e5e5;
    }

    .portal-card.disabled .portal-image img {
      filter: grayscale(100%);
      opacity: 0.5;
    }

    .portal-card.disabled:hover .portal-image img {
      transform: none;
    }

    .link-card.disabled .link-title {
      color: #666;
    }

    .link-card.disabled .link-description {
      color: #999;
    }


    /* =========================
       TRENNLINIE
       ========================= */

    .section-divider {
      height: 1px;
      background-color: #e5e5e5;
      margin: 5px 0 30px 0;
    }


    /* =========================
       VIDEO-KARTEN
       ========================= */

    .video-card {
      overflow: hidden;
    }

    .video-thumbnail {
      position: relative;
      width: 150px;
      min-width: 150px;
      height: 85px;
      margin-right: 15px;
      overflow: hidden;
      border-radius: 6px;
      background-color: #e8f5e3;
    }

    .video-thumbnail img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .play-button {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 38px;
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background-color: rgba(108, 183, 72, 0.95);
      color: white;
      font-size: 17px;
      padding-left: 2px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
      transition: transform 0.2s;
    }

    .video-card:hover .play-button {
      transform: translate(-50%, -50%) scale(1.1);
    }


   /* =========================
       AKTUELLE ÄNDERUNGEN / UPDATES-SCROLL
       ========================= */

    /* Scrollbarer Container für die Update-Karten */
    .updates-scroll {
      display: flex;
      flex-direction: row;
      gap: 18px;
      overflow-x: auto;
      overflow-y: hidden;
      padding-top: 8px;     /* WICHTIG: Schafft oben Platz für den Hover-Effekt, damit nichts abgeschnitten wird! */
      padding-bottom: 12px; /* Platz für die Scrollbar unten */
      padding-left: 2px;
      margin-top: 15px;
      scroll-snap-type: x mandatory;
    }

    /* Scrollbar-Design */
    .updates-scroll::-webkit-scrollbar {
      height: 8px;
    }

    .updates-scroll::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 4px;
    }

    .updates-scroll::-webkit-scrollbar-thumb {
      background: #c2d6b2;
      border-radius: 4px;
    }

    .updates-scroll::-webkit-scrollbar-thumb:hover {
      background: #a3c28c;
    }


    /* Einzelne Update-Karte (Größer gemacht) */
    .update-card {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-width: 360px; /* Breite des Kästchens vergrößert */
      max-width: 360px;
      flex: 0 0 auto;
      min-height: 160px; /* Höhe des Kästchens vergrößert */
      padding: 22px;     /* Mehr Innenabstand */
      box-sizing: border-box;
      background-color: #fff;
      border: 1px solid #dfe8da;
      border-top: 5px solid #6cb748; /* Grüner Balken oben */
      border-radius: 10px;
      color: #2c3e50;
      text-decoration: none;
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
      position: relative;
      transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
      scroll-snap-align: start;
    }

    .update-card:hover {
      transform: translateY(-4px);
      background-color: #f7fbf5;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
      text-decoration: none;
    }

    /* Oberer Bereich der Karte: Icon & Datums-Badge */
    .update-header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      margin-bottom: 8px;
    }

    /* Icon-Kreis */
    .update-icon {
      width: 45px;
      height: 45px;
      min-width: 45px;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #e8f5e3;
      border-radius: 50%;
      font-size: 22px;
    }

    /* Farblich hinterlegtes Datum (Badge-Design) */
    .update-date {
      background-color: #e8f5e3;
      color: #4c8a2e;
      font-size: 12px;
      font-weight: bold;
      padding: 5px 10px;
      border-radius: 12px;
      white-space: nowrap;
    }

    /* Textbereich der Update-Karte */
    .update-text {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
      padding-right: 90px; /* Hält Platz frei, damit der Text nicht unter das Datum rutscht */
    }

    .update-title {
      font-size: 16px;
      font-weight: bold;
      color: #2c3e50;
      line-height: 1.3;
    }

    .update-description {
      font-size: 13px;
      color: #777;
      line-height: 1.35;
    }


    /* =========================
       MOBILE (TABLET & SMARTPHONE)
       ========================= */

    @media (max-width: 768px) {
      .portal-grid {
        grid-template-columns: 1fr;
        gap: 12px;
      }
    }

    @media (max-width: 650px) {

      /* Navigation */
      nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
      }

      nav a {
        margin: 0;
        padding: 12px 8px;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.15);
        border-radius: 6px;
        font-size: 14px;
      }

      nav a:hover {
        background-color: rgba(255, 255, 255, 0.25);
        text-decoration: none;
      }

      /* Header */
      header {
        padding: 15px;
      }

      .header-content {
        gap: 12px;
        align-items: center;
      }

      .logo {
        height: 45px;
      }

      .header-text h1 {
        font-size: 20px;
        line-height: 1.2;
      }

      .header-text p {
        font-size: 13px;
        margin-top: 4px;
      }

      /* Hauptbereich */
      main {
        margin: 10px;
        padding: 16px;
        border-radius: 8px;
      }

      section {
        margin-bottom: 25px;
      }

      h2 {
        font-size: 20px;
        line-height: 1.3;
      }

      .section-description {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 15px;
      }

      /* Karten & Grids */
      .link-grid {
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .link-card {
        min-height: 70px;
        padding: 12px;
      }

      .link-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        margin-right: 12px;
        font-size: 19px;
      }

      .link-title {
        font-size: 15px;
        line-height: 1.3;
      }

      .link-description {
        font-size: 12px;
        line-height: 1.35;
      }

      /* Videos */
      .video-thumbnail {
        width: 120px;
        min-width: 120px;
        height: 68px;
      }

      .play-button {
        width: 34px;
        height: 34px;
        font-size: 15px;
      }

      /* Auf Touch-Geräten kein Hover-Sprung */
      .link-card:hover,
      .portal-card:hover {
        transform: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      }

      .video-card:hover .play-button {
        transform: translate(-50%, -50%);
      }

      .section-divider {
        margin: 5px 0 25px 0;
      }
    }


    /* =========================
       SEHR KLEINE SMARTPHONES
       ========================= */

    @media (max-width: 400px) {

      nav {
        gap: 6px;
        padding: 8px;
      }

      nav a {
        padding: 11px 5px;
        font-size: 13px;
      }

      .header-content {
        gap: 10px;
      }

      .logo {
        height: 40px;
      }

      .header-text h1 {
        font-size: 18px;
      }

      .header-text p {
        font-size: 12px;
      }

      main {
        margin: 6px;
        padding: 12px;
      }

      h2 {
        font-size: 18px;
      }

      .link-card {
        padding: 10px;
      }

      .link-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        margin-right: 10px;
        font-size: 17px;
      }

      .link-title {
        font-size: 14px;
      }

      .link-description {
        font-size: 11px;
      }

      .video-thumbnail {
        width: 100px;
        min-width: 100px;
        height: 58px;
        margin-right: 10px;
      }

      .play-button {
        width: 30px;
        height: 30px;
        font-size: 13px;
      }
      
      .section-divider {
        height: 1px;
        background-color: #e5e5e5;
        margin: 5px 0 30px 0;
      }
	  
	  /* =========================
       Tabellen Masterportale auf Websites
       ========================= */
	  
	  table {
	  	border-collapse: collapse;
	  	width: 100%;
	  }
	  th, td {
	  	border-bottom: 1px solid #ccc;
	  	padding: 6px;
	  	text-align: left;
	  }
	  th {
	  	background-color: #f2f2f2; /* Kopfzeile grau */
	  }
	  .intakt-ja {
	  	background-color: #d4edda; /* hellgrün */
	  	color: #155724;           /* dunkelgrün */
	  	font-weight: bold;
	  }
	  .intakt-nein {
	  	background-color: #f8d7da; /* hellrot */
	  	color: #721c24;           /* dunkelrot */
	  	font-weight: bold;
	  }
	}
	  
	/* ==========================================================
       Integrierte Karten-Styles (QGIS2Web / OpenLayers Anpassung)
       ========================================================== */
    .map-wrapper {
      background: #f7fbf5;
      border: 1px solid #dfe8da;
      border-radius: 8px;
      padding: 10px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    #map {
      width: 100%;
      height: 500px;
      background-color: #ffffff;
      border-radius: 6px;
    }

    .ol-control > * {
      background-color: #f8f8f8 !important;
      color: #444444 !important;
      border-radius: 0px;
    }
    .ol-attribution a, .gcd-gl-input::placeholder, .search-layer-input-search::placeholder {
      color: #444444 !important;
    }
    .search-layer-input-search {
      background-color: #f8f8f8 !important;
    }
    .ol-control > *:focus, .ol-control > *:hover {
      background-color: rgba(248, 248, 248, 0.7) !important;
    } 
    .ol-control {
      background-color: rgba(255,255,255,.4) !important;
      padding: 2px !important;
    }

    .map-caption {
      font-size: 13px;
      color: #666;
      margin-top: 10px;
      text-align: center;
    }
	
	/* =========================
       TABELLEN-DESIGN (LIQUID GLASS OPTIK)
       ========================= */

    .table-container {
      width: 100%;
      overflow-x: auto;
      margin: 25px 0;
      /* Abgerundete Ecken wie Ihr <main>-Bereich */
      border-radius: 8px;
      /* Liquid Glass Effekt: Transluzenter Hintergrund, weicher Schatten & sanfter Rahmen */
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(223, 232, 218, 0.7);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    }

    main table {
      width: 100%;
      border-collapse: collapse;
      background-color: transparent; /* Lässt den Glas-Hintergrund durchschimmern */
      font-size: 14px;
      text-align: left;
    }

    main th {
      background-color: rgba(108, 183, 72, 0.9); /* Harmonischer, leicht glasiger Hauptton */
      color: white;
      font-weight: bold;
      padding: 14px 16px;
      border-bottom: 2px solid rgba(85, 147, 56, 0.5);
      white-space: nowrap;
    }

    /* Erste und letzte Kopfzelle oben abrunden, falls der Container sie abschneidet */
    main th:first-child {
      border-top-left-radius: 7px;
    }
    main th:last-child {
      border-top-right-radius: 7px;
    }

    main td {
      padding: 12px 16px;
      border-bottom: 1px solid rgba(223, 232, 218, 0.5);
      color: #2c3e50;
      vertical-align: middle;
      line-height: 1.4;
    }

    /* Dezentes Zebra-Muster im Glas-Look */
    main tbody tr:nth-child(even) {
      background-color: rgba(247, 251, 245, 0.4);
    }

    /* Hover-Effekt für Datenzeilen */
    main tbody tr:hover {
      background-color: rgba(247, 251, 245, 0.8);
    }

    /* Spezielle Formatierung für die Jahres- bzw. Sektionszeilen */
    main tr.table-section-row {
		background-color: rgba(232, 245, 227, 0.75) !important;
		color: #3b7320 !important;
		font-weight: bold;
		letter-spacing: 0.5px;
		font-size: 13px;
	}

    /* Kleinere Darstellung für Trainer/Dozenten in Klammern */
    main td small {
      color: #666;
      font-style: normal;
    }
	
	.vertical-year {
		writing-mode: vertical-rl;
		transform: rotate(180deg);
		
		vertical-align: middle !important;
		text-align: center !important;
		
		font-weight: bold;
		font-size: 16px;
		letter-spacing: 2px;
		
		color: #6cb748 !important;
		background-color: rgba(232, 245, 227, 0.6);
		
		padding: 10px 5px !important;
		white-space: nowrap;
		
		height: auto !important;
	}
	
	/* Veranstaltung, die aufgeklappt werden kann */
	.veranstaltung-toggle {
		position: relative;
		cursor: pointer;
		padding-right: 30px;
	}
	
	/* Plus-Zeichen */
	.toggle-icon {
		position: absolute;
		right: 5px;
		top: 50%;
		transform: translateY(-50%);
		
		width: 24px;
		height: 24px;
		border-radius: 50%;
		
		background-color: #78bd5b;
		color: white;
		
		display: flex;
		align-items: center;
		justify-content: center;
		
		font-size: 18px;
		font-weight: bold;
		
		transition: transform 0.2s ease;
	}
	
	/* Der zunächst versteckte Bereich */
	.veranstaltung-details {
		display: none;
		
		margin-top: 15px;
		padding: 15px 20px;
		
		background-color: #f3f8f1;
		border-left: 4px solid #78bd5b;
		
		line-height: 1.5;
	}
	
	/* Abstände innerhalb der Details */
	.veranstaltung-details p:first-child {
		margin-top: 0;
	}
	
	.veranstaltung-details p:last-child {
		margin-bottom: 0;
	}
	
	.veranstaltung-details ul {
		margin-bottom: 15px;
	}
	
	/* Geöffneter Zustand der Detailzeile */
	.veranstaltung-details.open {
		display: table-row;
	}
	
	.veranstaltung-toggle.open .toggle-icon {
		transform: translateY(-50%) rotate(45deg);
	}
	
	.anmelde-button {
		display: inline-block;
	
		margin-top: 6px;
		padding: 5px 10px;
	
		background-color: #78bd5b;
		color: white;
	
		text-decoration: none;
	
		border-radius: 4px;
	
		font-size: 12px;
		font-weight: 500;
		
		white-space: nowrap;
	
		transition: background-color 0.2s ease,
					transform 0.2s ease;
	}

	.anmelde-button:hover {
		background-color: #5c9f43;
		color: white;
		text-decoration: none;
		transform: translateY(-1px);
	}

	.anmelde-button:visited {
		color: white;
	}
	
	
	/* Noch keine Anmeldung möglich */
	
	.anmelde-button.disabled {
		background-color: #bdbdbd;
		color: #eeeeee;
		cursor: default;
		pointer-events: none;
	}
	
	.anmelde-button.disabled:hover {
		background-color: #bdbdbd;
		transform: none;
	}
	
	.termin-cell {
		text-align: center;
		vertical-align: middle;
	}
	
	/* =========================================================
	VIDEO-HUB – HORIZONTALE VIDEOREIHEN
	========================================================= */
	
	.video-series-title {
	margin-top: 30px;
	margin-bottom: 12px;
	color: #2c3e50;
	font-size: 18px;
	}
	
	
	/* Horizontale Reihe */
	
	.video-scroll {
	display: flex;
	gap: 15px;
	
	overflow-x: auto;
	overflow-y: hidden;
	
	padding-top: 8px;
	padding-bottom: 12px;
	padding-left: 2px;
	
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	
	-webkit-overflow-scrolling: touch;
	}
	
	
	/* Karten innerhalb der Reihe */
	
	.video-scroll .link-card {
	flex: 0 0 420px;
	
	scroll-snap-align: start;
	
	margin: 0;
	}
	
	
	/* Scrollbar */
	
	.video-scroll::-webkit-scrollbar {
	height: 8px;
	}
	
	.video-scroll::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
	}
	
	.video-scroll::-webkit-scrollbar-thumb {
	background: #c2d6b2;
	border-radius: 4px;
	}
	
	.video-scroll::-webkit-scrollbar-thumb:hover {
	background: #a3c28c;
	}
	
	
	/* =========================================================
	MOBILE
	========================================================= */
	
	@media (max-width: 650px) {
	
	.video-series-title {
		font-size: 17px;
		margin-top: 25px;
	}
	
	.video-scroll {
		gap: 10px;
	
		scroll-snap-type: x mandatory;
	}
	
	.video-scroll .link-card {
		flex: 0 0 90%;
	
		scroll-snap-align: center;
	}
	
	}
	
	
	/* =========================================================
	SEHR KLEINE SMARTPHONES
	========================================================= */
	
	@media (max-width: 400px) {
	
	.video-scroll .link-card {
		flex: 0 0 92%;
		}
	
    }
	
	/* =========================================================
   GEOPORTALE / STATUS-FARBEN
   ========================================================= */

/* Grün = aktive Entwicklung */
a.content-link,
p.content-link {
  color: #6cb748;
  text-decoration: none;
}

/* Rot = nicht einsatzfähig / im Aufbau */
a.content-link-red,
p.content-link-red {
  color: #db2814;
  text-decoration: none;
}

/* Blau = EOL / keine Weiterentwicklung */
a.content-link-blue,
p.content-link-blue {
  color: #2980b9;
  text-decoration: none;
}


/* Hover für die Status-Links */
a.content-link:hover,
a.content-link-red:hover,
a.content-link-blue:hover {
  text-decoration: underline;
}


/* =========================================================
   LEGENDE
   ========================================================= */

.portal-status-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 25px;
  margin: 15px 0 25px 0;
}

.portal-status-legend p {
  margin: 0;
  font-size: 14px;
}


/* Kleine Farbpunkte in der Legende */

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 50%;
}

.status-active {
  background-color: #6cb748;
}

.status-development {
  background-color: #db2814;
}

.status-eol {
  background-color: #2980b9;
}


/* =========================================================
   BEREICH-SPALTE DER GEOPORTAL-TABELLE
   Nutzt bewusst den bereits vorhandenen vertical-year-Stil
   ========================================================= */

main td.vertical-year {
  writing-mode: vertical-rl;
  transform: rotate(180deg);

  vertical-align: middle !important;
  text-align: center !important;

  font-weight: bold;
  font-size: 16px;
  letter-spacing: 2px;

  padding: 10px 5px !important;
  white-space: nowrap;

  min-width: 42px;
}


/* Landkreis Ludwigslust-Parchim */
main td.vertical-year.area-lup {
  color: #6cb748 !important;
  background-color: rgba(232, 245, 227, 0.75) !important;
}


/* Landeshauptstadt Schwerin */
main td.vertical-year.area-schwerin {
  color: #2980b9 !important;
  background-color: rgba(232, 244, 253, 0.8) !important;
}


/* =========================================================
   TABELLEN-INHALT
   ========================================================= */

main table td a {
  font-weight: 500;
}


/* "-" in der Tabelle etwas dezenter */
main table td {
  color: #2c3e50;
}


/* =========================================================
   MOBILE TABELLE
   ========================================================= */

@media (max-width: 650px) {

  .portal-status-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 20px;
  }

  .portal-status-legend p {
    font-size: 13px;
  }

  .table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  main table {
    min-width: 600px;
    font-size: 13px;
  }

  main th {
    padding: 10px 12px;
  }

  main td {
    padding: 10px 12px;
  }

  main td.vertical-year {
    font-size: 14px;
    letter-spacing: 1px;
    min-width: 38px;
    padding: 8px 4px !important;
  }

}


/* =========================================================
   SEHR KLEINE SMARTPHONES
   ========================================================= */

@media (max-width: 400px) {

  main table {
    min-width: 560px;
    font-size: 12px;
  }

  main th {
    padding: 8px 10px;
  }

  main td {
    padding: 8px 10px;
  }

  main td.vertical-year {
    font-size: 13px;
    min-width: 34px;
    letter-spacing: 1px;
  }

}


/* Großes Bild: Kartenportal LUP */

.kartenportal-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.kartenportal-bild {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

 
/* =========================================================
   MASTERPORTAL-DIENSTTABELLE
   ========================================================= */

.masterportal-search-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.masterportal-search {
    width: 350px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 14px;
}

.masterportal-search:focus {
    outline: none;
    border-color: #6cb748;
    box-shadow: 0 0 0 2px rgba(108, 183, 72, 0.15);
}

.masterportal-search-count {
    color: #777;
    font-size: 13px;
}

/* Tabellencontainer: vorhandenes Liquid-Glass-Design nutzen */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}

/* Diensttabelle */
main table.masterportal-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

main table.masterportal-table th {
    background-color: rgba(108, 183, 72, 0.9);
    color: white;
    font-weight: bold;
    padding: 12px;
    border-bottom: 2px solid rgba(85, 147, 56, 0.5);
}

main table.masterportal-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(223, 232, 218, 0.7);
    color: #2c3e50;
    vertical-align: middle;
    line-height: 1.4;
}

main table.masterportal-table tbody tr:nth-child(even) {
    background-color: rgba(247, 251, 245, 0.6);
}

main table.masterportal-table tbody tr:hover {
    background-color: rgba(232, 245, 227, 0.8);
}

.masterportal-number {
    text-align: center;
    color: #888;
    font-weight: bold;
}

.masterportal-service-name {
    font-family: monospace;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.masterportal-url {
    margin-top: 5px;
    color: #777;
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* Bereichs-Badges */
.badge-region {
    display: inline-block;
    min-width: 55px;
    box-sizing: border-box;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

.badge-lup {
    background-color: #2e7d32;
}

.badge-sn {
    background-color: #b39420;
}

.badge-both {
    background-color: #555;
}

/* Aktionsbuttons */
.masterportal-button {
    display: inline-block;
    padding: 6px 9px;
    border: 1px solid #dfe8da;
    border-radius: 4px;
    background: #f7fbf5;
    color: #2c3e50;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
}

.masterportal-button:hover {
    background: #e8f5e3;
    border-color: #6cb748;
    text-decoration: none;
}

/* Keine Suchtreffer */
.masterportal-no-results {
    display: none;
    padding: 20px;
    text-align: center;
    color: #777;
    background: #f7fbf5;
    border: 1px solid #dfe8da;
    border-radius: 6px;
}

/* Kopiermeldung */
.masterportal-copy-message {
    position: fixed;
    left: 50%;
    bottom: 30px;
    z-index: 9999;
    transform: translate(-50%, 20px);
    padding: 10px 15px;
    border-radius: 5px;
    background: #333;
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}

.masterportal-copy-message.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Mobile Darstellung */
@media (max-width: 650px) {
    .masterportal-search {
        width: 100%;
    }

    .masterportal-table {
        min-width: 650px;
    }
}

.link-grid-vertical {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.portal-grid-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

.portal-card-vertical {
    display: block;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.portal-image-vertical {
    width: 100%;
    height: 100%;
}

/* Spezielle Anordnung: Kartenportal links, zwei Portale rechts */
.link-grid-vertical {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* Kartenportal links */
.link-grid-vertical .kartenportal-card {
    display: block;
    min-width: 0;
}

.link-grid-vertical .kartenportal-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


.applications-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
    width: 100%;
}

/* Großes Kartenportal links */

.application-main {
    display: block;
    min-width: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #dfe8da;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.application-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.application-main {
    border-left: 5px solid #6cb748;
    transition: transform 0.2s, box-shadow 0.2s;
}

.application-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.13);
}

/* Rechte Spalte */

.applications-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    min-width: 0;
    min-height: 0;
}

/* Einzelne Portal-Kacheln */

.application-portal {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;

    background-color: #fff;
    border: 1px solid #dfe8da;
    border-top: 5px solid #6cb748;
    border-radius: 8px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.application-portal img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.application-portal:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.13);
}

/* Mobile */

@media (max-width: 650px) {

    .applications-layout {
        grid-template-columns: 1fr;
    }

    .applications-side {
        grid-template-rows: auto auto;
    }

    .application-portal {
        min-height: 120px;
    }

}

