@font-face {
    font-family: 'Alja';
    src: url('AbdoLine.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
	

}


  :root {
      --primary-color: #000;
      --secondary-color: #F2D4AA;
      --accent-color: #BFA888;
      --text-light: #804A04;
      --text-dark: #000;
      --bg-overlay: rgba(255, 255, 255, 0.3);
      --card-bg: rgba(0, 0, 0, 0.5);
      --hover-bg: rgba(255, 255, 255, 0.5);
      --border-color: rgba(255, 255, 255, 0.5);
      --mobile-breakpoint: 768px;
      --tablet-breakpoint: 992px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      font-size: 16px;
    }

    body {
	font-family: 'Alja';
      line-height: 1.2;
      color: var(--text-light);
      background: url(BG.jpg) no-repeat center center fixed; 
      -webkit-background-size: cover;
      -moz-background-size: cover;
      -o-background-size: cover;
      background-size: cover;
      min-height: 100vh;
      padding: 10px;
    }
	
	.back {
	  color: #503D26;
	  font-size: 11px;
	  font-weight: bold;
	  Font-Family: Calibri;
	  height: 40px;
	  width: 65px;
	  position: absolute;
	  bottom: 5px;
	  left: 5px;
	  border: 2px ridge #BC9A71;	
	  background: linear-gradient(#F6D592, #F0B948, #CCA049); 
	  border-radius: 10px;
	  cursor: pointer;
	  text-align: center;
	  display:table-cell;
	  vertical-align:middle;
      flex: 1;
		}
	
    .container {
      max-width: 95%;
      margin: 0 auto;
      padding: 5px;
    }

    header {
      text-align: center;
      margin-bottom: 20px;
      padding: 10px;
      background: linear-gradient(#F6D592, #F0B948, #CCA049); 
      border-radius: 20px;
      border: 4px ridge #BC9A71;	
      box-shadow: 0 4px 20px rgb(190, 155, 115);
      position: relative;
      overflow: hidden;
    }

    footer {
	  direction: rtl;
      font-weight: 500;
      color: #503D26;
	  text-align: center;
	  margin-bottom: 20px;
      padding: 10px;
      background: linear-gradient(#F6D592, #F0B948, #CCA049);  
      border-radius: 20px;
      border: 4px ridge #BC9A71;	
      box-shadow: 0 4px 20px rgb(190, 155, 115);
      position: relative;
      overflow: hidden;
    }

    .footer-links {
	 font-size: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .footer-link {
      color: var(--secondary-color);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 10px;
      transition: color 0.3s ease;
    }

    .footer-link:hover {
      color: var(--text-light);
    }
	
    .logo {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      margin-bottom: 20px;
    }

    .logo-icon {
      font-size: 3rem;
      color: var(--secondary-color);
    }

    h1 {

      color: #503D26;
      font-size: 1rem;
      font-weight: 500;
      text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  
    }

    .subtitle {
	  Font-Family: Calibri;
      color: #503D26;
      font-weight: bold;
      margin: 5px;
      text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
      line-height: 1;
    }

    .controls {
	  font-family: 'Alja';
      background: linear-gradient(#F6D592, #F0B948, #CCA049); 
	  
      color: #000;
      padding: 20px;
      border-radius: 15px;
      margin-bottom: 25px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      border: 4px ridge #BC9A71;	
	  box-shadow: 0 4px 20px rgb(190, 155, 115);
    }
    .Themes {
	  background: linear-gradient(#F6D592, #F0B948, #CCA049); 
      padding: 20px;
      border-radius: 15px;
      margin-bottom: 25px;
      border: 4px ridge #BC9A71;	
      align-items: center;
	  text-align: center;
      position: relative;
      overflow: hidden;
	}
	
	a:link {
	  text-decoration: none;
		  color: #000;

	}

	a:visited {
	  text-decoration: none;
	  color: #000;

	}
	


	.link_button {
	  font-family: Calibri;
	  margin: 10px;
      border-radius: 15px;
      cursor: pointer;	  
      transition: all 0.3s ease;
      flex: 1;
      width: 250px;
	  height: 80px;
      font-size: 1.3rem;
	  border: 3px ridge #BC9A71;	
	  background: linear-gradient(#F6D592, #F0B948, #CCA049); 
	  color: #503D26;
	  font-weight: 700;
	  text-align: center;
	  display:table-cell;
	  vertical-align:middle;
	}
	
    .search-container {

      position: relative;
      width: 100%;
    }

    .search-input {
      width: 100%;
      padding: 14px 45px 14px 15px;
      background: rgba(255, 255, 255, 0.1);
      border: 2px inset rgb(190, 155, 115);	
      border-radius: 10px;
      color: #000;
      font-size: 1rem;
      transition: all 0.3s ease;
      direction: rtl;
    }
    .search-input::placeholder {
	  font-family: 'Alja';
      color: #000;
    }
    .search-input:focus {
      outline: none;
      border-color: var(--secondary-color);
      box-shadow: 0 4px 20px rgb(190, 155, 115);
      background: rgba(255, 255, 255, 0.15);
    }

    .search-icon {
      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: #000;
    }

    .filter-buttons {
		
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
	  background: transparent;
    }

    .filter-btn {
	  font-family: 'Alja';
      padding: 5px;
      background: linear-gradient(#F6D592, #F0B948, #CCA049); 
      color: #000;
	  border: 2px ridge #BC9A71;
      border-radius: 10px;
      color: #000;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: 500;
      flex: 1;
      min-width: 80px;
      text-align: center;
      font-size: 0.95rem;
    }

    .filter-btn:hover {
      font-weight: 700;
	  color: #fff;
	  background:  #000; 
	  border: 2px ridge #fff;

    }

    .filter-btn.active {
      background: rgba(255, 255, 255, 0.5);	
      color: #000;
      border: 2px ridge #BC9A71;	
      font-weight: 700;
    }

	hr {
      width: 70%;
      margin-left: auto;
      margin-right: auto;
      }
	  
	.Text-container {
	  font-family: 'Alja';
      background: #F8F7EC;
	  color: #000;
      border-radius: 20px;
      border: 4px ridge #BC9A71;
      margin-bottom: 10px;
      width: 100%;
	  box-shadow: 0 4px 20px rgb(190, 155, 115);
	  font-size: 1rem;
	  line-height: 1.3;
	}
	
	.Text-DE {
	  font-family: 'Alja';
      background: #F8F7EC;
	  color: #000;
      border-radius: 20px;
      border: 4px ridge #BC9A71;
      margin-bottom: 10px;
      width: 100%;
	  box-shadow: 0 4px 20px rgb(190, 155, 115);
	  font-size: 0.85rem;
	}
	

    .table-container {
			
	  background:  #EFE2C7; 
      
      border-radius: 15px;
      overflow: hidden;
      border: 4px ridge #BC9A71;
      box-shadow: 0 4px 20px rgb(190, 155, 115);
      margin-bottom: 15px;
      width: 100%;
      overflow-x: auto;

    }

    table {
	  color:#000;
      width: 100%;
      border-collapse: collapse;
    }

    thead {
		font-family: 'Alja';
		color: #000;
		background: linear-gradient(#F6D592, #F0B948, #CCA049);  
    }

    /* Spaltenbreite sauber per CSS statt width="" im HTML */


    th {
      padding: 10px 10px;
      text-align: center;
      font-weight: 500;
      font-size: 1rem;
      border-bottom: 2px solid #000;
      font-family: 'Alja';
      
    }

    tbody tr {
      border: 1px solid rgb(190, 155, 115);

    }

    tbody tr:hover {
      background: #fff; 

    }

    td {
	  color: #000;
      padding: 5px;
      text-align: center;
      vertical-align: middle;
      position: relative;
    }

    .sermon-link {
		color: #000;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 10px 15px;
	  border-radius: 10px;
      text-decoration: none;

      border: 1px solid transparent;
      min-width: 80px;
      max-width: 100%;
      line-height: 1;
      word-break: break-word;
    }

    .sermon-link:hover {
      background: linear-gradient(#F6D592, #F0B948, #CCA049); 
      color: #fff;
	  border: 2px ridge #BC9A71;

      box-shadow: 0 4px 20px rgb(190, 155, 115);
      border-color: var(--secondary-color);
    }

    .sermon-link i {
      flex-shrink: 0;
    }

    .arabic-link {

	  color: #000;
      font-family: 'Alja';
      font-weight: 500;
	  word-break: break-word;
      hyphens: auto;
    }

    .german-link {

	  color: #000;
      font-family: calibri;
      font-weight: 500;
      word-break: break-word;
      hyphens: auto; /* saubere Trennung langer deutscher Titel */
    }

    .date-cell {
      font-family: calibri;
      font-weight: 500;
      color: #000;
      font-size: 1.2rem;
      
    }

    .speaker-cell {
		font-family: 'Alja';
        font-size: 1.2rem;

    }

    .language-badge {
		font-family: Calibri;
      position: absolute;
      top: 8px;
      left: 8px;
      background: linear-gradient(#F6D592, #F0B948, #CCA049); 
      color: #000;
	  border: 2px ridge #BC9A71;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 600;
      z-index: 1;
    }



    /* ====== Responsive: Smartphones ====== */
    @media (max-width: 768px) {
      body {
        padding: 8px;
		line-height: 1;
       }


      .container {
        padding: 0;
      }

      header {
        padding: 15px 10px;
        margin-bottom: 15px;
        border-radius: 12px;
      }

      h1 {
        font-size: 1.8rem;
      }
	  

	  
	  h3 {

        font-size: 0.85rem;

      }
	  
	 h2 {

        font-size: 1.2rem;

      }
	  
	  

	  
      .subtitle {
        font-size: 0.85rem;
        line-height: 1;
      }

      .controls {
        padding: 10px;
        border-radius: 10px;
        margin-bottom: 10px;
      }

      .search-input {
        padding: 10px 20px 10px 10px;
        font-size: 1rem;
      }

      .filter-btn {
        padding: 5px;
        font-size: 1rem;
        min-width: 50px;
      }

      /* ===== Tabelle -> Cards ===== */
      table,
      thead,
      tbody,
      tr, td {
        display: block;

      }
	  

	  
      thead {
        /* Kopfzeile ausblenden, Labels kommen aus td::before */
        display: none;
      }

      tbody tr {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        margin-bottom: 10px;
        padding: 5px;
		align-items: right;
        box-shadow: 0 4px 20px rgb(190, 155, 115);
        transform: none; /* sicherheitshalber */
      }

      td {
        position: relative;
        padding: 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
      }

      /* Label aus data-label anzeigen */
      td::before {
        content: attr(data-label);
        position: absolute;
        right: 10px;   /* rechtsbündig für RTL */
        top: 8px;
        
        font-weight: 700;
        color: var(--secondary-color);
        font-size: 0.85rem;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .sermon-link {

        padding: 5px;
        font-size: 1.2rem;
        flex-direction: column;
        gap: 10px;
      }
	  	  
		.arabic-link {
		font-family: 'Alja';
        font-size: 1.2rem;
		}

		.german-link {
		font-family: calibri;
        font-size: 1rem;
		word-break: break-word;
		hyphens: auto; /* saubere Trennung langer deutscher Titel */
		}
	
      .date-cell,
      .speaker-cell {
		font-family: 'Alja';
        font-size: 1.2rem;
      }

      .language-badge {
		  font-family: Calibri;
        top: 6px;
        left: 6px;
        font-size: 0.7rem;
      }

      /* Scrollbar-Styling beibehalten (nur wenn horizontaler Fallback doch greift) */
      .table-container {
        border-radius: 10px;
      }
      .table-container::-webkit-scrollbar {
        height: 8px;
      }
      .table-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
      }
      .table-container::-webkit-scrollbar-thumb {
        background: background: rgba(190, 155, 115, 0.5);
        border-radius: 4px;
      }
    }

    /* ====== Tablets ====== */
    @media (min-width: 550px) and (max-width: 992px) {
      .container {
        max-width: 90%;
      }

      .controls {
        flex-direction: row;
        flex-wrap: wrap;
      }

      .search-container {
        flex: 2;

      }

      .filter-buttons {
        flex: 1;
        justify-content: flex-start;
      }

      .sermon-link {
        min-width: 50px;
      }
    }

    /* ====== Desktop ====== */
    @media (min-width: 793px) {
      .container {
        max-width: 1200px;
        padding: 20px;
      }

      .controls {
        flex-direction: row;
        align-items: center;
      }

      .search-container {
        flex: 2;
      }

      .filter-buttons {
        flex: 1;
        justify-content: flex-end;
      }

      .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 5px;
      }
    }

    /* ====== Sehr große Screens ====== */
    @media (min-width: 1400px) {
      .container {
        max-width: 1400px;
      }

      h1 {
        font-size: 3.5rem;
      }

      .subtitle {
        font-size: 2rem;
      }
    }

    /* ====== Landscape auf kleinen Geräten ====== */
    @media (max-height: 500px) and (orientation: landscape) {
      body {
        padding: 5px;
      }

      header {
        padding: 5px;
        margin-bottom: 5px;
      }

      h1 {
        font-size: 1.2rem;
      }

      .subtitle {
        font-size: 0.65rem;
        margin: 5px 0;
      }
    }

