:root{ --blue:#234C54; --gold:#f5c768; --line:#c8d1dd; --text:#0c1320; --muted:#4a5568; }

.headline-profiledata .cv-name{margin:16px 0 4px;font:700 28px/1.2 system-ui;color:#c59c7c;text-align:center}
.headline-profiledata .cv-meta{color:#fff;margin:0 0 10px;text-align:center; font-size:19px !important;}
.cv-text{color:#2a364c}



.cv-pill i {
    position: absolute;
	top: 1px;
    left: 0px;
}


.headline-border{
	height:9px;
}

.headline-border .area {
    height: 2px;
    width: 100%;
    display: block;
    background: #234C54;
    float: left;
	margin-top:32px;
}
.cv-section{background:#fff;/*border:1px solid #e6ecf3*/;border-radius:18px;padding:24px}
.cv-title{font:700 22px/1.2 system-ui;color:var(--blue);margin:0 0 16px}

.cv-section .headline-profiledata{
	text-align:center;
	margin-bottom:65px;
}


.cv-page-content{
    font-size: 16px;
    margin-right: 30px;
    max-width: 1000px;	
}

.headline-profiledata{
	text-align:center;
	margin-bottom:50px;
}
.cv-timeline{position:relative;margin-left:14px;padding-left:28px;font-size:16px}
.cv-timeline .i-meta{
	font-weight:bold;
	font-style:italic;
}

.cv-timeline:before{content:"";position:absolute;left:0;top:5px;bottom:0;width:2px;background:var(--line)}
.cv-item{position:relative;margin:0 0 35px}
.cv-item:before{content:"";position:absolute;left:-35px;top:4px;width:12px;height:12px;border-radius:50%;
  background:#c59c7c;border:3px solid #fff;outline:2px solid var(--line)}
.cv-item h4{margin:0 0 4px;font:700 18px/1.3 system-ui;color:#1a2540}
.cv-item .i-meta{color:var(--muted);margin:0 0 6px}
.cv-btn{display:inline-block;background:var(--gold);color:#111;padding:10px 14px;border-radius:12px;font-weight:700;text-decoration:none}


/* 1) Oben keinen globalen Template-Abstand */
.page-template-page-cv-fullbleed .wp-site-blocks{
  margin-block-start: 0; /* entfernt das WP-Standard-Top-Margin */
}

/* 2) Full-bleed: an beiden Seiten bis an die Viewport-Kante */
.cv-fullbleed.alignfull{
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:0; /* kein Innenabstand */
}

/* 3) Keine horizontale Scrollleiste durch Rundungsfehler */
.page-template-page-cv-fullbleed,
.page-template-page-portfolio{
  overflow-x:hidden;
}


/* Nur auf unserer CV-Vorlage */
.page-template-page-cv-fullbleed .wp-block-columns.is-layout-flex,
.page-template-page-portfolio .wp-block-columns.is-layout-flex{
  display:flex;
  flex-wrap: nowrap;      /* Desktop: nebeneinander */
  width:100%;
  gap:24px;
  align-items: flex-start;
  margin:15px 30px;
}

.page-template-page-cv-fullbleed .wp-block-columns.is-layout-flex > .wp-block-column,
.page-template-page-portfolio .wp-block-columns.is-layout-flex > .wp-block-column{
  min-width: 0;           /* verhindert unerwünschtes Schrumpfen/Überlauf */
}

/* Breiten 36/64 fixen */
.page-template-page-cv-fullbleed .wp-block-columns.is-layout-flex > .wp-block-column:first-child;
.page-template-page-portfolio .wp-block-columns.is-layout-flex > .wp-block-column:first-child{
  flex: 0 0 36%;
}
.page-template-page-cv-fullbleed .wp-block-columns.is-layout-flex > .wp-block-column:last-child,
.page-template-page-portfolio .wp-block-columns.is-layout-flex > .wp-block-column:last-child{
  flex: 0 0 64%;
}

/* Mobil: untereinander stapeln */
@media (max-width: 900px){
  .page-template-page-cv-fullbleed .wp-block-columns.is-layout-flex{
    flex-wrap: wrap;
  }
  .page-template-page-cv-fullbleed .wp-block-columns.is-layout-flex > .wp-block-column{
    flex: 0 0 100% !important;
  }
}





/* Galerie-Container */
.portfolio-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem; /* Abstand zwischen Bildern */
  margin: 2rem 30px 2rem 0;
}

/* Galerie-Bild */
.portfolio-gallery figure {
  flex: 1 1 calc(33.333% - 1rem); /* 3 Spalten */
  max-width: calc(33.333% - 1rem);
  margin: 0;
}

.portfolio-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform .2s ease;
	border:1px solid #d1d0d0;
}

.portfolio-gallery img:hover {
  /*transform: scale(1.02);*/
}

/* Responsive: 2 Spalten auf Tablet */
@media (max-width: 900px) {
  .portfolio-gallery figure {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

/* Responsive: 1 Spalte auf Mobile */
@media (max-width: 600px) {
  .portfolio-gallery figure {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


/* CV / Portfolio Grundlayout */
.cv-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 2rem;
}


/* Rechte Spalte (Content) */
.cv-right {
  padding: 0;
  background: #fff;
}




/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 480px));
  gap: 24px; /* Abstand zwischen den Karten */
  margin-right:30px;
  justify-content: start; /* sorgt dafür, dass bei weniger Items die Boxen linksbündig stehen */
  margin-bottom:30px;
}



/* Portfolio Karte */
.portfolio-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.portfolio-item p{
	font-size:17px;	
	margin-bottom:2rem !important;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Bild */
.portfolio-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: cover;
}

/* Titel */
.portfolio-item h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #0d2a45; /* dein CV-Blau */
}

.portfolio-item h3 a {
  text-decoration: none;
  color: inherit;
  min-height:50px;
  display:inline-block;
}

.portfolio-item h3 a:hover {
  text-decoration: underline;
}

/* Beschreibung */
.portfolio-item p {
  flex-grow: 1;
  color: #444;
  margin-bottom: 1rem;
}

/* Button */
.portfolio-item .btn {
  align-self: flex-start;
  background: #0d2a45;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background .2s ease;
}

.portfolio-item .btn:hover {
  background: #174a78;
}

.portfolio-figure {
  position: relative;
  overflow: hidden;
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
}

.portfolio-figure img {
  height: 100%;
  display: block;
  border-radius: 8px;
}

.portfolio-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  transform: translateY(100%);
  transition: transform .3s ease;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.portfolio-figure:hover .portfolio-caption {
  transform: translateY(0);
}


/* --- Grundlayout der linken CV-Spalte --- */
.cv-left {
  width: 300px;
  background: #0d2c46; /* Dunkelblau */
  color: #fff;
  font-family: 'Arial', sans-serif;
  padding: 20px;
  position: relative;
}


/* Profilfoto */
.cv-photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 4px solid #c59c7c;
    display: block;
    margin: 2px auto 20px;
    object-fit: cover;
    background: white;
}

/* Abschnittsüberschriften */
.left-side-headline {
  margin: 40px 0 10px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 14px;
  border-bottom: 1px solid #c59c7c;
  padding-bottom: 4px;
  color: #c59c7c;
}

/* Über mich & Standardtexte */
.cv-text, .cv-meta {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 15px;
  color: #f0f0f0;
}

/* Kontaktbereich Pills */
.cv-pills-outer {
  margin: 10px 0 20px;
}

.cv-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cv-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-size: 16px;
	position:relative;
}

.cv-pill i {
  color: #c59c7c;
  font-size: 14px;
  width: 20px;
  text-align: center;
}

/* Skills mit Sternchen */
.cv-skills {
  margin-top: 20px;
}

.cv-skill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
  font-size: 13px;
}

.cv-skill-stars {
  color: #c59c7c; /* beige Sterne */
  font-size: 14px;
}


.btn-detail {
  display: inline-block;
  background-color: #c59c7c;
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
	text-align:center;
}

.btn-detail:hover {
  background-color: #a87f61; /* etwas dunkler für Hover-Effekt */
  transform: translateY(-2px);
}


/* Header-Balken für Seitentitel */

.cv-page-header {
  background-color: #0d2c46;
  padding: 20px 25px;
  margin:50px 0 0 -35px;
}

.cv-page-title {
  margin: 0;
  font-size: 1.6rem;        /* universelle Größe */
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;    /* leicht gestreckt */
  border-bottom: 2px solid #c59c7c;
  display: inline-block;
  padding-bottom: 4px;
  line-height: 1.3;         /* falls 2 Zeilen entstehen */
}





.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #123456; /* dein Blau */
  padding: 12px 20px;
}

.cv-title {
  color: #fff;
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.cv-nav-buttons a.cv-btn {
  background: #c59c7c; /* Beige */
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  margin-left: 10px;
  transition: background 0.3s;
}
.cv-nav-buttons a.cv-btn:hover {
  background: #a97d60; /* dunkleres Beige beim Hover */
}


/* Top-Bar mit Akzentlinie */
.cv-topbar {
  border-top: 4px solid #c59c7c; /* Beige Linie oben */
  position:relative;
  z-index:10;
}

.cv-topbar-inner {
    display: flex;
    justify-content: flex-end;
    padding: 0px 20px 0;
    position: absolute;
    right: 0;
    top: -3px;
}

/* Buttons */
.cv-nav-buttons a.cv-btn {
  background: #c59c7c;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  margin-left: 10px;
  transition: background 0.3s;
}

.cv-nav-buttons a.cv-btn:hover {
  background: #a97d60; /* dunkleres Beige beim Hover */
	box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Header */
.cv-header {
  background: #123456; /* Blau */
  color: #fff;
  padding: 12px 20px;
}
.cv-header h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 1px;
}



/* Tablet hochkant & kleiner */
@media (max-width: 768px) {
  .cv-topbar-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .cv-btn {
    font-size: 14px;
    padding: 6px 12px;
  }
}





.projekt-description {
  margin: 2rem 0;
}

.projekt-description h2 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: #c59c7c;
  border-left: 4px solid #c59c7c;
  padding-left: 10px;
}

.projekt-description p {
  font-size: 1rem;  /* etwas kleiner */
  line-height: 1.6; /* bessere Lesbarkeit */
  margin-bottom: 1rem;
}


.projekt-features {
  margin: 4rem 0;
}

.portfolio-description{
    margin-right:30px;	
}

.projekt-features h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #c59c7c; /* Beige */
  border-left: 4px solid #c59c7c;
  padding-left: 10px;
}

.projekt-features ul {
  list-style: none; /* Standard-Bullets entfernen */
  margin: 0;
  padding: 0;
}

.projekt-features li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Individuelle Bulletpoints */
.projekt-features li::before {
  content: "★"; /* alternativ: "\f00c" für FontAwesome-Check */
  font-family: Arial, sans-serif;
  position: absolute;
  left: 0;
  color: #c59c7c; /* Beige */
  font-size: 1rem;
  line-height: 1.2;
}


.projekt-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.projekt-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.projekt-info {
  background: #f9f9f9;
  border-left: 4px solid #c59c7c;
  padding: 1rem 1.5rem;
  border-radius: 6px;
}

.projekt-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #c59c7c;
}

.projekt-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.projekt-info li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.projekt-info a.btn {
  display: inline-block;
  margin-top: 0.5rem;
  background: #c59c7c;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.projekt-info a.btn:hover {
  background: #a57e63;
}


.projekt-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;   /* Abstand nach oben */
  margin-bottom: 2rem;
}

/* Rechte Spalte (Projektinfos) */
.projekt-info {
  background: #f9f9f9;
  border-left: 4px solid #c59c7c; /* Beige-Akzent */
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 6px;
}

.projekt-info h2 {
  font-size: 1.25rem;   /* größer für klare Hierarchie */
  font-weight: 600;
  margin-bottom: 1rem;
  color: #c59c7c;
}

.projekt-info dl {
  display: grid;
  grid-template-columns: 140px 1fr; /* Labels fix, Werte flexibel */
  row-gap: .6rem;
}

.projekt-info dt {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;   /* bündig rechts für aufgeräumten Look */
  padding-right: .5rem;
  color: #222;
}

.projekt-info dd {
  font-size: 0.95rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid #d8c4b2;
	line-height: 1.4;
	margin:0;
}
.projekt-info dt:last-of-type,
.projekt-info dd:last-of-type {
  border-bottom: none; /* letzten Eintrag ohne Linie */
}



.projekt-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.projekt-info li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}



/* Allgemeine Listen */
.cv-platforms ul,
.cv-skills ul,
.cv-languages ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
}

.cv-platforms li,
.cv-skills li,
.cv-languages li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

/* Name links */
.skill-name {
  flex: 1;
}

/* Sterne rechts */
.skill-stars {
  flex-shrink: 0;
  margin-left: 10px;
}

.skill-stars i {
  font-size: 0.85rem; /* kleinere Sterne */
  color: #ccc; /* Basisfarbe für leere Sterne */
  margin-left: 2px;
}

/* volle Sterne beige */
.skill-stars .fa-solid {
  color: #c9a77d;
}


/* Desktop: Sidebar sichtbar */
.sidebar {
  width: 260px;
  background: #0b2c48; /* dein Blau */
  padding: 20px;
  transition: transform 0.3s ease;
}

/* Toggle-Button standardmäßig verstecken */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  background: #c9a47a; /* dein Beige */
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  z-index: 1001;
}

.cv-title-mobile {
  display: none;
}


/* Persönliche Daten */
.cv-personal {
  margin-bottom: 2rem;
  font-size: 14px; /* gleiche Grundgröße wie Sidebar-Texte */
  line-height: 1.5;
}

.cv-personal ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cv-personal li {
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.cv-personal strong {
  color: #c59c7c; /* Beige-Farbe für Labels */
  font-weight: 600;
  margin-right: 8px;
  min-width: 120px; /* sorgt für sauberes Alignment */
  display: inline-block;
}


.cv-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cv-contact li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.cv-contact .contact-label {
  font-weight: 600;
  color: #c59c7c; /* gleiche Farbe wie "Persönliche Daten" Labels */
}

.cv-contact .contact-value {
  text-align: right;
  color: #fff; /* gleiche Farbe wie deine Sidebar-Schrift */
}


/* Einheitliche Höhe für Portfolio-Thumbnails */
.portfolio-grid img {
  width: 100%;
  height: 250px; /* Höhe der Vorschau-Bilder */
  object-fit: cover; /* Bild wird zugeschnitten statt verzerrt */
  border-radius: 6px; /* optional, abgerundete Ecken */
}


.site-footer {
  background: #f5f5f5; /* leicht grauer Hintergrund */
  padding: 15px 20px;
  text-align: center;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #ddd;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}




/* Mobile Ansichten */

/* Bei max 1400px runter: */
@media (max-width: 1400px) {
	.page-template-page-portfolio .portfolio-grid{
		grid-template-columns:repeat(auto-fit, minmax(300px, 48%));
	}
}

/* Ab 1199px runter: Projektinfos wandern nach unten */
@media (max-width: 1199px) {
  .projekt-layout {
    display: block; /* statt grid/flex, beide Spalten übereinander */
  }

  .projekt-main {
    width: 100%;   /* Beschreibung nimmt volle Breite */
    margin-right: 0;
  }

  .projekt-info {
    width: calc(100% - 80px);   /* Projektinfos auch volle Breite */
    margin-top: 2rem; /* Abstand nach oben */
  }

  .cv-page-title {
    font-size: 1.5rem; /* etwas kleinerer Titel */
  }
	
  .projekt-grid {
    grid-template-columns: 1fr; /* einspaltig */
  }

  .projekt-info {
    border-left: none;
    border-top: 4px solid #c59c7c;
    margin-top: 1.5rem;
  }	
}


@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 1000;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: block;
  }

  /* Content rutscht unter die Sidebar */
  .content {
    margin-left: 0;
  }
	
  .cv-page-title {
    font-size: 1.2rem; /* etwas kleinerer Titel */
  }
	
	.page-template-page-portfolio .portfolio-grid{
		grid-template-columns:repeat(auto-fit, minmax(300px, 100%));
	}	
	
}


/* Für kleine Screens (Stack-Ansicht) */
@media (max-width: 900px) {
  .cv-title-mobile {
    display: block;
    text-align: center;
    margin: 40px 0;
  }

  /* Haupttitel im Content ausblenden, damit er nicht doppelt steht */
  main .cv-page-header {
    display: none;
  }
	
  .cv-grid {
    grid-template-columns: 1fr;
  }

  .cv-left {
    position: relative;
    height: auto;
    border-radius: 0;
	width:calc(100% - 40px);
  }
	
  .cv-page-header {
	 margin-left:0; 
  }
	
  .portfolio-description,
  .projekt-features,
  .projekt-info,
  .portfolio-gallery{
		margin-left:30px;
  }
	
  .projekt-info{
	width:calc(100% - 110px);   
  }
	
  .cv-left img.cv-photo {
    margin-top: 45px;
  }	
	
	.page-template-page-portfolio .portfolio-grid{
		margin-right:0;	
	}
	
	.page-template-page-portfolio .portfolio-group{
		margin-left:30px;
	    margin-right:30px;
	}
}

