/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

.cpt-post-grid {
    column-gap: 20px;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    row-gap: 20px;
    margin-bottom: 20px;
}

.cpt-grid-item {
	text-align: center;
  background-color: white;
  padding: 7px;
}


.cpt-grid-image {
  display: block;
  height: auto;
  margin-bottom: 7px;
  max-width: 100%;
}

.cpt-grid-title {
	font-size: 1.2rem;
	margin: 0;
  white-space: nowrap; /* Verhindert den Zeilenumbruch */
  overflow: hidden;    /* Versteckt den überstehenden Text */
  margin-bottom: 5px;
}

.cpt-grid-title a { /* Notiz: Standard accent-Farbe war #1e73be, jetzt #fcb401 */
	text-decoration: none;
  font-size: larger;
}

.cpt-grid-title a:hover {
	text-decoration: underline;
}

@media (max-width: 900px) {
	.cpt-post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.cpt-post-grid {
		grid-template-columns: 1fr;
	}
}

/* Animation mit 110% Zoom */
.cpt-post-grid .cpt-grid-image {
    transition: transform .2s; 
}
.zoom:hover, .cpt-post-grid .cpt-grid-image:hover {
    transform: scale(1.05); 
}

.sidebar h2 {
    font-size: 25px;
    margin-bottom: 20px;
    line-height: 1.2em;
    font-weight: 400;
    text-transform: none;
}

.featured-image .wp-caption-text, .gp-two-column-image .wp-caption-text {
    padding: 10px;
    max-width: 770px;
    margin: auto;
    line-height: 1.4em;
    text-align: center;    
}

.text-small{
  font-size: 13px;
}

/* Spalten innerhalb des Contents */
.gp-two-column-section {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 40px;
}
.gp-two-column-image img {
	width: 100%;
	height: auto;
	display: block;
}
.gp-two-column-text {
	font-size: 1rem;
}
@media (max-width: 768px) {
	.gp-two-column-section {
		grid-template-columns: 1fr;
	}
}

/* Contetn-Rows für mini Bild mit Text */
.content-row-column-section {
	display: grid;
	grid-template-columns: 4fr 1fr;
	gap: 40px;
}
.content-row-column-image img {
	width: 100%;
	height: auto;
	display: block;
}
.content-row-column-text {
	font-size: 1rem;
}
@media (max-width: 768px) {
	.content-row-column-section {
		grid-template-columns: 1fr;
	}
}

.site-info a{
  text-decoration: none;
  color: var(--contrast);
}

.site-footer { /* damit die Sidebar unten unten links bündig beginnt */
 /* margin-left: -40px; */
}

/* Style the category links as badges/pills */
.widget_categories ul li a {
    display: block;
    background-color: #f3f4f6; /* Light gray background */
    color: #374151; /* Dark gray text */
    padding: 6px 16px;
    text-decoration: none;
    font-size: 14px;
}

/* Hover effect */
.widget_categories ul li a:hover {
    background-color: #fbb301; /* Brand color */
    color: #ffffff;
}

.widget_categories ul li {
    margin-bottom: 3px;
}

/* Bild Widgets ohne Hintergrund und Rahmen */
.is-right-sidebar .widget_media_image {
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
}
.site-footer .widget_media_image {
    background: none;
    padding: 0;
    border: none;
}
@media (min-width: 768px) { /* Auf dem Desktop ziehen wir das Bild im Footer etwas nach oben */
	.site-footer .widget_media_image {
		  margin-top: -90px;
	}
}

/* 1. Buttons Standard-Einstellung für das Handy */
.button-group {
  display: flex;
  flex-direction: column; /* Buttons stehen untereinander */
  gap: 15px;              /* Sichtbarer Abstand zwischen den Buttons */
  width: 100%;            /* Nutzt die volle Breite auf dem Handy */
}

/* 2. Einstellung für den Desktop (Bildschirme breiter als 768px) */
@media (min-width: 768px) {
  .button-group {
    flex-direction: row;     /* Buttons stehen nebeneinander */
    width: auto;
  }
}



/* Kennzeichnung von externen Links, sieht nicht gut aus
a.clicky_log_outbound::after {
	content: " ↗";
	font-size: 0.9em;
	text-decoration: none;
	margin-left: 0.2em;
}
*/
/* Variante mit rotem Punkt 
.clicky_log_outbound {
  position: relative;
}
.clicky_log_outbound::after {
  content: "";
  position: absolute;
  top: 0px; /* Position nach oben anpassen
  right: 0px; /* Position nach rechts anpassen
  width: 3px; /* Größe des Punktes 
  height: 3px; /* Größe des Punktes 
  background-color: #ff0000; /* Rote Farbe 
  border-radius: 50%; /* Macht aus dem Quadrat einen Kreis 
}
*/